96dcd04353dd11789d792a0c3e74233cb5dab4d0
[gnulib.git] / ChangeLog
1 2010-01-10  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'unistr/u32-strcat'.
4         * modules/unistr/u32-strcat-tests: New file.
5         * tests/unistr/test-u32-strcat.c: New file.
6
7         Tests for module 'unistr/u16-strcat'.
8         * modules/unistr/u16-strcat-tests: New file.
9         * tests/unistr/test-u16-strcat.c: New file.
10
11         Tests for module 'unistr/u8-strcat'.
12         * modules/unistr/u8-strcat-tests: New file.
13         * tests/unistr/test-u8-strcat.c: New file.
14         * tests/unistr/test-strcat.h: New file.
15
16         Tests for module 'unistr/u32-stpncpy'.
17         * modules/unistr/u32-stpncpy-tests: New file.
18         * tests/unistr/test-u32-stpncpy.c: New file.
19
20         Tests for module 'unistr/u16-stpncpy'.
21         * modules/unistr/u16-stpncpy-tests: New file.
22         * tests/unistr/test-u16-stpncpy.c: New file.
23
24         Tests for module 'unistr/u8-stpncpy'.
25         * modules/unistr/u8-stpncpy-tests: New file.
26         * tests/unistr/test-u8-stpncpy.c: New file.
27         * tests/unistr/test-stpncpy.h: New file.
28
29         Tests for module 'unistr/u32-strncpy'.
30         * modules/unistr/u32-strncpy-tests: New file.
31         * tests/unistr/test-u32-strncpy.c: New file.
32
33         Tests for module 'unistr/u16-strncpy'.
34         * modules/unistr/u16-strncpy-tests: New file.
35         * tests/unistr/test-u16-strncpy.c: New file.
36
37         Tests for module 'unistr/u8-strncpy'.
38         * modules/unistr/u8-strncpy-tests: New file.
39         * tests/unistr/test-u8-strncpy.c: New file.
40         * tests/unistr/test-strncpy.h: New file.
41
42         Tests for module 'unistr/u32-stpcpy'.
43         * modules/unistr/u32-stpcpy-tests: New file.
44         * tests/unistr/test-u32-stpcpy.c: New file.
45
46         Tests for module 'unistr/u16-stpcpy'.
47         * modules/unistr/u16-stpcpy-tests: New file.
48         * tests/unistr/test-u16-stpcpy.c: New file.
49
50         Tests for module 'unistr/u8-stpcpy'.
51         * modules/unistr/u8-stpcpy-tests: New file.
52         * tests/unistr/test-u8-stpcpy.c: New file.
53         * tests/unistr/test-stpcpy.h: New file.
54
55         Tests for module 'unistr/u32-strcpy'.
56         * modules/unistr/u32-strcpy-tests: New file.
57         * tests/unistr/test-u32-strcpy.c: New file.
58
59         Tests for module 'unistr/u16-strcpy'.
60         * modules/unistr/u16-strcpy-tests: New file.
61         * tests/unistr/test-u16-strcpy.c: New file.
62
63         Tests for module 'unistr/u8-strcpy'.
64         * modules/unistr/u8-strcpy-tests: New file.
65         * tests/unistr/test-u8-strcpy.c: New file.
66         * tests/unistr/test-strcpy.h: New file.
67
68         Tests for module 'unistr/u32-strnlen'.
69         * modules/unistr/u32-strnlen-tests: New file.
70         * tests/unistr/test-u32-strnlen.c: New file.
71
72         Tests for module 'unistr/u16-strnlen'.
73         * modules/unistr/u16-strnlen-tests: New file.
74         * tests/unistr/test-u16-strnlen.c: New file.
75
76         Tests for module 'unistr/u8-strnlen'.
77         * modules/unistr/u8-strnlen-tests: New file.
78         * tests/unistr/test-u8-strnlen.c: New file.
79         * tests/unistr/test-strnlen.h: New file.
80
81         Tests for module 'unistr/u32-strlen'.
82         * modules/unistr/u32-strlen-tests: New file.
83         * tests/unistr/test-u32-strlen.c: New file.
84
85         Tests for module 'unistr/u16-strlen'.
86         * modules/unistr/u16-strlen-tests: New file.
87         * tests/unistr/test-u16-strlen.c: New file.
88
89         Tests for module 'unistr/u8-strlen'.
90         * modules/unistr/u8-strlen-tests: New file.
91         * tests/unistr/test-u8-strlen.c: New file.
92
93         Tests for module 'unistr/u32-prev'.
94         * modules/unistr/u32-prev-tests: New file.
95         * tests/unistr/test-u32-prev.c: New file.
96
97         Tests for module 'unistr/u16-prev'.
98         * modules/unistr/u16-prev-tests: New file.
99         * tests/unistr/test-u16-prev.c: New file.
100
101         Tests for module 'unistr/u8-prev'.
102         * modules/unistr/u8-prev-tests: New file.
103         * tests/unistr/test-u8-prev.c: New file.
104
105         Tests for module 'unistr/u32-next'.
106         * modules/unistr/u32-next-tests: New file.
107         * tests/unistr/test-u32-next.c: New file.
108
109         Tests for module 'unistr/u16-next'.
110         * modules/unistr/u16-next-tests: New file.
111         * tests/unistr/test-u16-next.c: New file.
112
113         Tests for module 'unistr/u8-next'.
114         * modules/unistr/u8-next-tests: New file.
115         * tests/unistr/test-u8-next.c: New file.
116
117         Tests for module 'unistr/u32-strmbtouc'.
118         * modules/unistr/u32-strmbtouc-tests: New file.
119         * tests/unistr/test-u32-strmbtouc.c: New file.
120
121         Tests for module 'unistr/u16-strmbtouc'.
122         * modules/unistr/u16-strmbtouc-tests: New file.
123         * tests/unistr/test-u16-strmbtouc.c: New file.
124
125         Tests for module 'unistr/u8-strmbtouc'.
126         * modules/unistr/u8-strmbtouc-tests: New file.
127         * tests/unistr/test-u8-strmbtouc.c: New file.
128
129         Tests for module 'unistr/u32-strmblen'.
130         * modules/unistr/u32-strmblen-tests: New file.
131         * tests/unistr/test-u32-strmblen.c: New file.
132
133         Tests for module 'unistr/u16-strmblen'.
134         * modules/unistr/u16-strmblen-tests: New file.
135         * tests/unistr/test-u16-strmblen.c: New file.
136
137         Tests for module 'unistr/u8-strmblen'.
138         * modules/unistr/u8-strmblen-tests: New file.
139         * tests/unistr/test-u8-strmblen.c: New file.
140
141         Tests for module 'unistr/u32-cpy-alloc'.
142         * modules/unistr/u32-cpy-alloc-tests: New file.
143         * tests/unistr/test-u32-cpy-alloc.c: New file.
144
145         Tests for module 'unistr/u16-cpy-alloc'.
146         * modules/unistr/u16-cpy-alloc-tests: New file.
147         * tests/unistr/test-u16-cpy-alloc.c: New file.
148
149         Tests for module 'unistr/u8-cpy-alloc'.
150         * modules/unistr/u8-cpy-alloc-tests: New file.
151         * tests/unistr/test-u8-cpy-alloc.c: New file.
152         * tests/unistr/test-cpy-alloc.h: New file.
153
154         Tests for module 'unistr/u32-mbsnlen'.
155         * modules/unistr/u32-mbsnlen-tests: New file.
156         * tests/unistr/test-u32-mbsnlen.c: New file.
157
158         Tests for module 'unistr/u16-mbsnlen'.
159         * modules/unistr/u16-mbsnlen-tests: New file.
160         * tests/unistr/test-u16-mbsnlen.c: New file.
161
162         Tests for module 'unistr/u8-mbsnlen'.
163         * modules/unistr/u8-mbsnlen-tests: New file.
164         * tests/unistr/test-u8-mbsnlen.c: New file.
165
166         Tests for module 'unistr/u32-chr'.
167         * modules/unistr/u32-chr-tests: New file.
168         * tests/unistr/test-u32-chr.c: New file.
169
170         Tests for module 'unistr/u16-chr'.
171         * modules/unistr/u16-chr-tests: New file.
172         * tests/unistr/test-u16-chr.c: New file.
173
174         Tests for module 'unistr/u8-chr'.
175         * modules/unistr/u8-chr-tests: New file.
176         * tests/unistr/test-u8-chr.c: New file.
177         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
178
179         Tests for module 'unistr/u32-cmp2'.
180         * modules/unistr/u32-cmp2-tests: New file.
181         * tests/unistr/test-u32-cmp2.c: New file.
182
183         Tests for module 'unistr/u16-cmp2'.
184         * modules/unistr/u16-cmp2-tests: New file.
185         * tests/unistr/test-u16-cmp2.c: New file.
186
187         Tests for module 'unistr/u8-cmp2'.
188         * modules/unistr/u8-cmp2-tests: New file.
189         * tests/unistr/test-u8-cmp2.c: New file.
190         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
191
192         Tests for module 'unistr/u32-cmp'.
193         * modules/unistr/u32-cmp-tests: New file.
194         * tests/unistr/test-u32-cmp.c: New file.
195
196         Tests for module 'unistr/u16-cmp'.
197         * modules/unistr/u16-cmp-tests: New file.
198         * tests/unistr/test-u16-cmp.c: New file.
199
200         Tests for module 'unistr/u8-cmp'.
201         * modules/unistr/u8-cmp-tests: New file.
202         * tests/unistr/test-u8-cmp.c: New file.
203         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
204
205         Tests for module 'unistr/u32-set'.
206         * modules/unistr/u32-set-tests: New file.
207         * tests/unistr/test-u32-set.c: New file.
208
209         Tests for module 'unistr/u16-set'.
210         * modules/unistr/u16-set-tests: New file.
211         * tests/unistr/test-u16-set.c: New file.
212
213         Tests for module 'unistr/u8-set'.
214         * modules/unistr/u8-set-tests: New file.
215         * tests/unistr/test-u8-set.c: New file.
216         * tests/unistr/test-set.h: New file.
217
218         Tests for module 'unistr/u32-move'.
219         * modules/unistr/u32-move-tests: New file.
220         * tests/unistr/test-u32-move.c: New file.
221
222         Tests for module 'unistr/u16-move'.
223         * modules/unistr/u16-move-tests: New file.
224         * tests/unistr/test-u16-move.c: New file.
225
226         Tests for module 'unistr/u8-move'.
227         * modules/unistr/u8-move-tests: New file.
228         * tests/unistr/test-u8-move.c: New file.
229         * tests/unistr/test-move.h: New file.
230
231         Tests for module 'unistr/u32-cpy'.
232         * modules/unistr/u32-cpy-tests: New file.
233         * tests/unistr/test-u32-cpy.c: New file.
234
235         Tests for module 'unistr/u16-cpy'.
236         * modules/unistr/u16-cpy-tests: New file.
237         * tests/unistr/test-u16-cpy.c: New file.
238
239         Tests for module 'unistr/u8-cpy'.
240         * modules/unistr/u8-cpy-tests: New file.
241         * tests/unistr/test-u8-cpy.c: New file.
242         * tests/unistr/test-cpy.h: New file.
243
244 2010-01-09  Bruno Haible  <bruno@clisp.org>
245
246         Tests for module 'unistr/u32-uctomb'.
247         * modules/unistr/u32-uctomb-tests: New file.
248         * tests/unistr/test-u32-uctomb.c: New file.
249
250         Tests for module 'unistr/u16-uctomb'.
251         * modules/unistr/u16-uctomb-tests: New file.
252         * tests/unistr/test-u16-uctomb.c: New file.
253
254         Tests for module 'unistr/u8-uctomb'.
255         * modules/unistr/u8-uctomb-tests: New file.
256         * tests/unistr/test-u8-uctomb.c: New file.
257
258         Tests for module 'unistr/u32-mbtoucr'.
259         * modules/unistr/u32-mbtoucr-tests: New file.
260         * tests/unistr/test-u32-mbtoucr.c: New file.
261
262         Tests for module 'unistr/u16-mbtoucr'.
263         * modules/unistr/u16-mbtoucr-tests: New file.
264         * tests/unistr/test-u16-mbtoucr.c: New file.
265
266         Tests for module 'unistr/u8-mbtoucr'.
267         * modules/unistr/u8-mbtoucr-tests: New file.
268         * tests/unistr/test-u8-mbtoucr.c: New file.
269
270         Tests for module 'unistr/u32-mbtouc'.
271         * modules/unistr/u32-mbtouc-tests: New file.
272         * tests/unistr/test-u32-mbtouc.c: New file.
273
274         Tests for module 'unistr/u16-mbtouc'.
275         * modules/unistr/u16-mbtouc-tests: New file.
276         * tests/unistr/test-u16-mbtouc.c: New file.
277
278         Tests for module 'unistr/u8-mbtouc'.
279         * modules/unistr/u8-mbtouc-tests: New file.
280         * tests/unistr/test-u8-mbtouc.c: New file.
281
282         Tests for module 'unistr/u32-mbtouc-unsafe'.
283         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
284         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
285         * tests/unistr/test-u32-mbtouc.h: New file.
286
287         Tests for module 'unistr/u16-mbtouc-unsafe'.
288         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
289         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
290         * tests/unistr/test-u16-mbtouc.h: New file.
291
292         Tests for module 'unistr/u8-mbtouc-unsafe'.
293         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
294         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
295         * tests/unistr/test-u8-mbtouc.h: New file.
296
297         Tests for module 'unistr/u32-mblen'.
298         * modules/unistr/u32-mblen-tests: New file.
299         * tests/unistr/test-u32-mblen.c: New file.
300
301         Tests for module 'unistr/u16-mblen'.
302         * modules/unistr/u16-mblen-tests: New file.
303         * tests/unistr/test-u16-mblen.c: New file.
304
305         Tests for module 'unistr/u8-mblen'.
306         * modules/unistr/u8-mblen-tests: New file.
307         * tests/unistr/test-u8-mblen.c: New file.
308
309         Tests for module 'unistr/u32-to-u16'.
310         * modules/unistr/u32-to-u16-tests: New file.
311         * tests/unistr/test-u32-to-u16.c: New file.
312
313         Tests for module 'unistr/u32-to-u8'.
314         * modules/unistr/u32-to-u8-tests: New file.
315         * tests/unistr/test-u32-to-u8.c: New file.
316
317         Tests for module 'unistr/u16-to-u32'.
318         * modules/unistr/u16-to-u32-tests: New file.
319         * tests/unistr/test-u16-to-u32.c: New file.
320
321         Tests for module 'unistr/u16-to-u8'.
322         * modules/unistr/u16-to-u8-tests: New file.
323         * tests/unistr/test-u16-to-u8.c: New file.
324
325         Tests for module 'unistr/u8-to-u32'.
326         * modules/unistr/u8-to-u32-tests: New file.
327         * tests/unistr/test-u8-to-u32.c: New file.
328
329         Tests for module 'unistr/u8-to-u16'.
330         * modules/unistr/u8-to-u16-tests: New file.
331         * tests/unistr/test-u8-to-u16.c: New file.
332
333         Tests for module 'unistr/u32-check'.
334         * modules/unistr/u32-check-tests: New file.
335         * tests/unistr/test-u32-check.c: New file.
336
337         Tests for module 'unistr/u16-check'.
338         * modules/unistr/u16-check-tests: New file.
339         * tests/unistr/test-u16-check.c: New file.
340
341         Tests for module 'unistr/u8-check'.
342         * modules/unistr/u8-check-tests: New file.
343         * tests/unistr/test-u8-check.c: New file.
344
345         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
346         (category_equals): New function.
347         (main): Add more tests.
348         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
349
350         * tests/unictype/test-bidi_byname.c (main): Add more tests.
351
352 2010-01-10  Bruno Haible  <bruno@clisp.org>
353
354         unistr/u*-strcoll: Try harder to distinguish different strings.
355         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
356         compare s1 and s2 to see if they are different.
357
358 2010-01-10  Bruno Haible  <bruno@clisp.org>
359
360         unistr/u*-stpncpy: Fix the return value.
361         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
362         description of the return value consistent with stpncpy in glibc.
363         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
364         written non-NUL unit.
365
366 2010-01-10  Bruno Haible  <bruno@clisp.org>
367
368         unistr/u*-next: Add missing dependencies.
369         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
370         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
371         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
372
373 2010-01-10  Bruno Haible  <bruno@clisp.org>
374
375         unistr/u8-mbsnlen: Fix return value for incomplete character.
376         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
377         u8_mblen.
378         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
379         Remove unistr/u8-mblen.
380         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
381         u16_mblen.
382         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
383         Remove unistr/u16-mblen.
384
385 2010-01-10  Bruno Haible  <bruno@clisp.org>
386
387         wchar: Fix compilation error when <wchar.h> is used from coreutils.
388         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
389         Reported by Brian Gough <bjg@gnu.org> and
390         Chris Clayton <chris2553@googlemail.com> via
391         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
392
393 2010-01-09  Bruno Haible  <bruno@clisp.org>
394
395         unistr/u16-to-u32: Reject invalid input.
396         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
397         u16_mbtouc.
398         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
399         Remove unistr/u16-mbtouc.
400
401         unistr/u16-to-u8: Reject invalid input.
402         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
403         u16_mbtouc.
404         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
405         Remove unistr/u16-mbtouc.
406
407         unistr/u8-to-u32: Reject invalid input.
408         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
409         u8_mbtouc.
410         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
411         Remove unistr/u8-mbtouc.
412
413         unistr/u8-to-u16: Reject invalid input.
414         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
415         u8_mbtouc.
416         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
417         Remove unistr/u8-mbtouc.
418
419 2010-01-09  Bruno Haible  <bruno@clisp.org>
420
421         Tests for module 'getlogin'.
422         * modules/getlogin-tests: New file.
423         * tests/test-getlogin.c: New file.
424
425         New module 'getlogin'.
426         * lib/unistd.in.h (getlogin): New declaration.
427         * lib/getlogin.c: New file.
428         * m4/getlogin.m4: New file.
429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
430         HAVE_GETLOGIN.
431         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
432         HAVE_GETLOGIN.
433         * modules/getlogin: New file.
434         * doc/posix-functions/getlogin.texi: Mention the new module.
435         Reported by John W. Eaton <jwe@gnu.org>.
436
437 2010-01-09  Bruno Haible  <bruno@clisp.org>
438
439         getlogin_r: Support for native Windows.
440         * lib/getlogin_r.c: Include <windows.h>
441         (getlogin_r): Implement for native Windows.
442         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
443         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
444         via John W. Eaton <jwe@gnu.org>.
445
446 2010-01-09  Bruno Haible  <bruno@clisp.org>
447
448         getlogin_r: Small fixes.
449         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
450         succeeds.
451         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
452         before testing whether getlogin_r is declared. No need to set
453         HAVE_DECL_GETLOGIN_R to 1.
454         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
455
456 2010-01-09  Bruno Haible  <bruno@clisp.org>
457
458         * lib/unistd.in.h (getlogin_r): Add comment.
459
460 2010-01-09  Bruno Haible  <bruno@clisp.org>
461
462         Tests for module 'getlogin_r'.
463         * modules/getlogin_r-tests: New file.
464         * tests/test-getlogin_r.c: New file.
465
466 2010-01-09  Jim Meyering  <meyering@redhat.com>
467
468         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
469         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
470         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
471
472 2010-01-08  Simon Josefsson  <simon@josefsson.org>
473
474         * lib/dup2.c (rpl_dup2): Improve comment.
475
476 2010-01-08  Eric Blake  <ebb9@byu.net>
477
478         maint.mk: allow packages to add makefile @@ exceptions
479         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
480         (sc_makefile_check): Rename...
481         (sc_makefile_at_at_check): ...to this, and use hook.
482
483         dup2: work around mingw bug
484         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
485         Reported by Simon Josefsson.
486
487 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
488
489         glob: Fix C++ compilation.
490         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
491         C++.
492
493 2010-01-07  Bruno Haible  <bruno@clisp.org>
494
495         Fix indentation of wctype.in.h, broken since 2007-01-06.
496         * lib/wctype.in.h: Fix indentation of preprocessor directives.
497
498 2010-01-07  Bruno Haible  <bruno@clisp.org>
499
500         mbslen: Avoid collision with system function.
501         * lib/string.in.h [MirBSD]: Include <wchar.h>.
502         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
503         * m4/mbslen.m4: New file.
504         * modules/mbslen (Files): Add it.
505         (configure.ac): Invoke gl_MBSLEN.
506         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
507         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
508         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
509         via Ian Beckwith <ianb@erislabs.net>.
510
511 2010-01-07  Bruno Haible  <bruno@clisp.org>
512
513         dirent: Document the last fix.
514         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
515
516 2010-01-07  Bruno Haible  <bruno@clisp.org>
517
518         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
519         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
520         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
521         va_list are defined.
522         * doc/posix-headers/stdio.texi: Document the bug of missing types.
523         Reported by Eric Blake.
524
525 2010-01-07  Bruno Haible  <bruno@clisp.org>
526
527         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
528         * modules/xlist (Depends-on): Add 'list',
529         * modules/xoset (Depends-on): Add 'oset'.
530         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
531
532 2010-01-07  Bruno Haible  <bruno@clisp.org>
533
534         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
535         * doc/posix-functions/strncasecmp.texi: Likewise.
536
537 2010-01-07  Bruno Haible  <bruno@clisp.org>
538
539         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
540
541 2010-01-07  John W. Eaton  <jwe@octave.org>
542
543         wctype: allow C++ use
544         * lib/wctype.in.h: Add extern "C" block for C++.
545
546 2010-01-06  Eric Blake  <ebb9@byu.net>
547
548         maint.mk: detect incorrect GFDL usage
549         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
550
551 2010-01-06  Jim Meyering  <meyering@redhat.com>
552         and Eric Blake  <ebb9@byu.net>
553
554         maint.mk: ignore multi-line copyright in NEWS
555         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
556
557 2010-01-06  Eric Blake  <ebb9@byu.net>
558
559         select: add missing dependency
560         * modules/select-tests (Depends-on): Move sockets dependency...
561         * modules/select (Depends-on): ...here.
562         Reported by Ian Beckwith.
563
564         doc: regenerate INSTALL
565         * doc/INSTALL: Reflect recent autoconf update.
566         * doc/INSTALL.ISO: Likewise.
567         * doc/INSTALL.UTF-8: Likewise.
568
569         pread: fix compilation on glibc
570         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
571         Reported by Ralf Wildenhues.
572
573         dirent: fix test failure
574         * lib/dirent.in.h (includes): Guarantee ino_t.
575         Reported by Ralf Wildenhues.
576
577 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
578
579         linkat, renameat: avoid bad free
580         * lib/at-func2.c (at_func2): Fix typo.
581         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
582
583 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
584
585         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
586         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
587         to avoid failure of symlink test later.
588
589 2010-01-06  Eric Blake  <ebb9@byu.net>
590
591         stdio, unistd: guarantee ssize_t
592         * lib/unistd.in.h (includes): Ensure that types required by POSIX
593         2008 are exposed when needed.
594         * lib/stdio.in.h (includes): Likewise.
595         Reported by Ralf Wildenhues.
596
597 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
598
599         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
600         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
601         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
602
603 2010-01-06  Jim Meyering  <meyering@redhat.com>
604
605         readtokens: this module *does* require xalloc.h
606         It uses only functions that were omitted by the old syntax-check rule.
607         * lib/readtokens.c: Include "xalloc.h" once again.
608         * modules/readtokens (Depends-on): Add xalloc.
609         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
610
611 2010-01-05  Eric Blake  <ebb9@byu.net>
612
613         maint: support 'make announcement' from a VPATH build
614         * top/maint.mk (announcement): Look for correct NEWS file.
615
616 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
617
618         utimens (fdutimens): ignore a negative FD, per contract
619         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
620         when we have a valid file descriptor.  Otherwise, using a brand
621         new glibc (with just-patched futimens that now fails with EBADF)
622         would cause this function to fail with ENOSYS.
623         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
624         See also http://bugzilla.redhat.com/552320.
625
626 2010-01-05  Eric Blake  <ebb9@byu.net>
627
628         strcase: document what it provides
629         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
630         gnulib module.
631         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
632         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
633
634 2010-01-05  Jim Meyering  <meyering@redhat.com>
635
636         maint: remove useless inclusions of "xalloc.h"
637         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
638         * lib/readtokens.c: Likewise.
639         * lib/same.c: Likewise.
640         * modules/getloadavg (Depends-on): Remove xalloc.
641         * modules/readtokens: Likewise.
642         * modules/same: Likewise.
643
644         maint.mk: include 4 more function names in alloca.h-checking regexp
645         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
646         regexp.  Before, we would give a false-positive (saying alloca.h
647         is included unnecessarily) when the only uses involved omitted symbols.
648
649         xalloc.h: use consistent formatting
650         * lib/xalloc.h: Move declarations to start in the first column.
651
652 2010-01-05  Eric Blake  <ebb9@byu.net>
653
654         mkdir: avoid xalloc
655         * lib/mkdir.c (includes): Drop unused header.
656         Reported by John W. Eaton.
657
658 2010-01-04  Jim Meyering  <meyering@redhat.com>
659
660         nl_langinfo: avoid configure-time syntax error
661         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
662         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
663         the empty string.  Don't let that provoke a shell syntax error.
664
665         regcomp, regexec, fnmatch: avoid array bounds read error
666         * lib/regcomp.c (build_equiv_class): From glibc:
667         Use only the low 24 bits of a findidx return value as an index
668         into the weights array.  Patch by Ulrich Drepper:
669         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
670         * lib/regexec.c (check_node_accept_bytes): Likewise.
671         * lib/fnmatch_loop.c (FCT): Likewise.
672
673         regcomp: skip collseq lookup when there are no rules
674         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
675         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
676
677         regcomp: recognize ill-formed { } expressions
678         * lib/regcomp.c (parse_dup_op): From glibc:
679         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
680
681         regcomp: fix typo in comment
682         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
683         s/satisfy/satisfies/.
684
685         regcomp: sync from glibc: remove dead store
686         * lib/regcomp.c (duplicate_node_closure): Remove useless
687         search_duplicated_node call and dead store.
688
689         regcomp: sync from glibc; always use nl_langinfo
690         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
691         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
692         * modules/regex (Depends-on): Add nl_langinfo.
693
694 2010-01-04  Eric Blake  <ebb9@byu.net>
695
696         fdopendir: fix configure test
697         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
698
699 2010-01-01  Bruno Haible  <bruno@clisp.org>
700
701         wchar: Remove unused configure check.
702         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
703
704 2010-01-01  Eric Blake  <ebb9@byu.net>
705
706         headers: make check of system header explicit
707         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
708         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
709         ourselves.
710         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
711         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
712         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
713         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
714         internals.
715         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
716         missing.
717         Suggested by Bruno Haible.
718
719 2010-01-01  Jim Meyering  <meyering@redhat.com>
720
721         ChangeLog: tweak to eliminate unnecessary copyright line
722         * ChangeLog: Remove a copyright line that was mistakenly updated
723         by today's update-copyright run.  Reported by Eric Blake.
724
725         test-update-copyright: don't let envvar setting cause test failure
726         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
727
728 2010-01-01  Bruno Haible  <bruno@clisp.org>
729
730         localename: Avoid gcc warning.
731         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
732         function if it is not used.
733
734 2010-01-01  Jim Meyering  <meyering@redhat.com>
735
736         update nearly all FSF copyright year lists to include 2010
737         Use the same procedure as for 2009, outlined in
738         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
739
740         version-etc: set COPYRIGHT_YEAR to 2010
741         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
742
743 2009-12-31  Eric Blake  <ebb9@byu.net>
744
745         doc: correct availability of cygwin 1.5.x getopt
746         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
747         variables.
748         * doc/posix-functions/opterr.texi (opterr): Likewise.
749         * doc/posix-functions/optind.texi (optind): Likewise.
750         * doc/posix-functions/optopt.texi (optopt): Likewise.
751         * doc/posix-functions/tzname.texi (tzname): Likewise.
752
753         openat: update maintainer
754         * modules/openat (Maintainer): Add myself.
755
756         utimens: avoid shadowing warning
757         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
758         buffers into one, to avoid shadowing, as well as avoiding a
759         redundant stat.
760         Reported by Jim Meyering.
761
762         test-dup2: avoid compiler warning
763         * tests/test-dup2.c (is_inheritable): Only define if used.
764
765 2010-01-01  Bruno Haible  <bruno@clisp.org>
766
767         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
768         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
769         defined, use wctomb instead of wcrtomb.
770
771 2010-01-01  Bruno Haible  <bruno@clisp.org>
772
773         iconv: Reject native Solaris iconv.
774         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
775         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
776
777 2009-12-31  Bruno Haible  <bruno@clisp.org>
778
779         * tests/test-signal.c (main): Remove test of 'SIG'.
780
781 2009-12-31  Bruno Haible  <bruno@clisp.org>
782
783         spawn: Fix incomplete fix.
784         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
785         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
786         warnings for GNULIB_POSIXCHECK again.
787         Reported by Eric Blake.
788
789 2009-12-31  Bruno Haible  <bruno@clisp.org>
790
791         Avoid namespace pollution on glibc systems.
792         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
793         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
794         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
795         glibc systems.
796
797 2009-12-31  Bruno Haible  <bruno@clisp.org>
798
799         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
800         (gl_REPLACE_WCHAR_H): Turn into a no-op.
801         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
802         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
803         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
804         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
805         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
806
807 2009-12-31  Bruno Haible  <bruno@clisp.org>
808
809         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
810         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
811         afterwards.
812
813 2009-12-31  Bruno Haible  <bruno@clisp.org>
814
815         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
816         SYS_UTSNAME_H.
817
818 2009-12-31  Bruno Haible  <bruno@clisp.org>
819
820         spawn: Fix misapplied patch.
821         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
822         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
823         warnings for GNULIB_POSIXCHECK.
824
825 2009-12-31  Bruno Haible  <bruno@clisp.org>
826
827         times: Update after sys_times changed.
828         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
829         * modules/times (Files): Add it.
830         (configure.ac): Invoke gl_FUNC_TIMES.
831
832 2009-12-31  Bruno Haible  <bruno@clisp.org>
833
834         Use AC_C_INLINE where necessary.
835         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
836         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
837         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
838         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
839         * m4/mbfile.m4 (gl_MBFILE): Likewise.
840         * m4/mbiter.m4 (gl_MBITER): Likewise.
841         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
842         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
843         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
844         * modules/u64 (configure.ac): Likewise.
845
846 2009-12-31  Bruno Haible  <bruno@clisp.org>
847
848         Use AC_C_INLINE instead of module 'inline' where possible.
849         * modules/inline (Description): Clarify purpose.
850         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
851         * modules/count-one-bits (Depends-on): Remove inline.
852         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
853         * modules/openat (Depends-on): Remove inline.
854         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
855         instead of depending on module 'inline'.
856         * modules/filevercmp (Depends-on, configure.ac): Likewise.
857         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
858         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
859         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
860         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
861         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
862         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
863         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
864         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
865         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
866         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
867         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
868         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
869         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
870         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
871         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
872         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
873         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
874         Likewise.
875         * modules/unictype/property-ascii-hex-digit (Depends-on,
876         configure.ac): Likewise.
877         * modules/unictype/property-bidi-arabic-digit (Depends-on,
878         configure.ac): Likewise.
879         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
880         configure.ac): Likewise.
881         * modules/unictype/property-bidi-block-separator (Depends-on,
882         configure.ac): Likewise.
883         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
884         configure.ac): Likewise.
885         * modules/unictype/property-bidi-common-separator (Depends-on,
886         configure.ac): Likewise.
887         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
888         Likewise.
889         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
890         configure.ac): Likewise.
891         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
892         configure.ac): Likewise.
893         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
894         configure.ac): Likewise.
895         * modules/unictype/property-bidi-european-digit (Depends-on,
896         configure.ac): Likewise.
897         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
898         configure.ac): Likewise.
899         * modules/unictype/property-bidi-left-to-right (Depends-on,
900         configure.ac): Likewise.
901         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
902         configure.ac): Likewise.
903         * modules/unictype/property-bidi-other-neutral (Depends-on,
904         configure.ac): Likewise.
905         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
906         Likewise.
907         * modules/unictype/property-bidi-segment-separator (Depends-on,
908         configure.ac): Likewise.
909         * modules/unictype/property-bidi-whitespace (Depends-on,
910         configure.ac): Likewise.
911         * modules/unictype/property-combining (Depends-on, configure.ac):
912         Likewise.
913         * modules/unictype/property-composite (Depends-on, configure.ac):
914         Likewise.
915         * modules/unictype/property-currency-symbol (Depends-on,
916         configure.ac): Likewise.
917         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
918         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
919         Likewise.
920         * modules/unictype/property-default-ignorable-code-point (Depends-on,
921         configure.ac): Likewise.
922         * modules/unictype/property-deprecated (Depends-on, configure.ac):
923         Likewise.
924         * modules/unictype/property-diacritic (Depends-on, configure.ac):
925         Likewise.
926         * modules/unictype/property-extender (Depends-on, configure.ac):
927         Likewise.
928         * modules/unictype/property-format-control (Depends-on, configure.ac):
929         Likewise.
930         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
931         Likewise.
932         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
933         Likewise.
934         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
935         Likewise.
936         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
937         Likewise.
938         * modules/unictype/property-hyphen (Depends-on, configure.ac):
939         Likewise.
940         * modules/unictype/property-id-continue (Depends-on, configure.ac):
941         Likewise.
942         * modules/unictype/property-id-start (Depends-on, configure.ac):
943         Likewise.
944         * modules/unictype/property-ideographic (Depends-on, configure.ac):
945         Likewise.
946         * modules/unictype/property-ids-binary-operator (Depends-on,
947         configure.ac): Likewise.
948         * modules/unictype/property-ids-trinary-operator (Depends-on,
949         configure.ac): Likewise.
950         * modules/unictype/property-ignorable-control (Depends-on,
951         configure.ac): Likewise.
952         * modules/unictype/property-iso-control (Depends-on, configure.ac):
953         Likewise.
954         * modules/unictype/property-join-control (Depends-on, configure.ac):
955         Likewise.
956         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
957         Likewise.
958         * modules/unictype/property-line-separator (Depends-on, configure.ac):
959         Likewise.
960         * modules/unictype/property-logical-order-exception (Depends-on,
961         configure.ac): Likewise.
962         * modules/unictype/property-lowercase (Depends-on, configure.ac):
963         Likewise.
964         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
965         * modules/unictype/property-non-break (Depends-on, configure.ac):
966         Likewise.
967         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
968         Likewise.
969         * modules/unictype/property-numeric (Depends-on, configure.ac):
970         Likewise.
971         * modules/unictype/property-other-alphabetic (Depends-on,
972         configure.ac): Likewise.
973         * modules/unictype/property-other-default-ignorable-code-point
974         (Depends-on, configure.ac): Likewise.
975         * modules/unictype/property-other-grapheme-extend (Depends-on,
976         configure.ac): Likewise.
977         * modules/unictype/property-other-id-continue (Depends-on,
978         configure.ac): Likewise.
979         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
980         Likewise.
981         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
982         Likewise.
983         * modules/unictype/property-other-math (Depends-on, configure.ac):
984         Likewise.
985         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
986         Likewise.
987         * modules/unictype/property-paired-punctuation (Depends-on,
988         configure.ac): Likewise.
989         * modules/unictype/property-paragraph-separator (Depends-on,
990         configure.ac): Likewise.
991         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
992         Likewise.
993         * modules/unictype/property-pattern-white-space (Depends-on,
994         configure.ac): Likewise.
995         * modules/unictype/property-private-use (Depends-on, configure.ac):
996         Likewise.
997         * modules/unictype/property-punctuation (Depends-on, configure.ac):
998         Likewise.
999         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
1000         Likewise.
1001         * modules/unictype/property-radical (Depends-on, configure.ac):
1002         Likewise.
1003         * modules/unictype/property-sentence-terminal (Depends-on,
1004         configure.ac): Likewise.
1005         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
1006         Likewise.
1007         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
1008         * modules/unictype/property-terminal-punctuation (Depends-on,
1009         configure.ac): Likewise.
1010         * modules/unictype/property-titlecase (Depends-on, configure.ac):
1011         Likewise.
1012         * modules/unictype/property-unassigned-code-value (Depends-on,
1013         configure.ac): Likewise.
1014         * modules/unictype/property-unified-ideograph (Depends-on,
1015         configure.ac): Likewise.
1016         * modules/unictype/property-uppercase (Depends-on, configure.ac):
1017         Likewise.
1018         * modules/unictype/property-variation-selector (Depends-on,
1019         configure.ac): Likewise.
1020         * modules/unictype/property-white-space (Depends-on, configure.ac):
1021         Likewise.
1022         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
1023         Likewise.
1024         * modules/unictype/property-xid-start (Depends-on, configure.ac):
1025         Likewise.
1026         * modules/unictype/property-zero-width (Depends-on, configure.ac):
1027         Likewise.
1028         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
1029         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
1030         Likewise.
1031
1032 2009-12-31  Bruno Haible  <bruno@clisp.org>
1033
1034         Remove unnecessary AC_C_INLINE invocation.
1035         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
1036         since 2009-08-21.
1037
1038 2009-12-31  Jim Meyering  <meyering@redhat.com>
1039
1040         maint.mk: don't require explicit gpg_key_ID in cfg.mk
1041         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
1042         With this change, we can all remove the gpg_key_ID = ... definition
1043         from our respective cfg.mk files.
1044
1045         maint.mk: create announcement template in ~/, not in /tmp
1046         * top/maint.mk (emit_upload_commands): Adjust.
1047         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
1048         Remove temporary file, .ci-msg.
1049
1050 2009-12-31  Eric Blake  <ebb9@byu.net>
1051
1052         link-warning: always build headers with link warnings
1053         * modules/arpa_inet (Makefile.am): Always build replacement
1054         header.
1055         * modules/ctype (Makefile.am): Likewise.
1056         * modules/dirent (Makefile.am): Likewise.
1057         * modules/inttypes (Makefile.am): Likewise.
1058         * modules/langinfo (Makefile.am): Likewise.
1059         * modules/locale (Makefile.am): Likewise.
1060         * modules/spawn (Makefile.am): Likewise.
1061         * modules/sys_file (Makefile.am): Likewise.
1062         * modules/sys_ioctl (Makefile.am): Likewise.
1063         * modules/sys_select (Makefile.am): Likewise.
1064         * modules/sys_socket (Makefile.am): Likewise.
1065         * modules/sys_times (Makefile.am): Likewise.
1066         * modules/sys_utsname (Makefile.am): Likewise.
1067         * modules/sys_wait (Makefile.am): Likewise.
1068         * modules/wchar (Makefile.am): Likewise.
1069         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
1070         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
1071         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
1072         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
1073         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
1074         Likewise.
1075         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1076         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1077         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
1078         Likewise.
1079         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
1080         Likewise.
1081         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
1082         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
1083         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
1084         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1085         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1086         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
1087         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
1088         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
1089         (gl_WCHAR_H_DEFAULTS): Likewise.
1090
1091 2009-12-31  Eric Blake  <ebb9@byu.net>
1092
1093         signal, spawn: use link warnings
1094         * lib/signal.in.h (sigset_t): Make unconditional.
1095         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
1096         (sigpending, sigprocmask, sigaction): Add link warnings.
1097         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
1098         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
1099         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
1100         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
1101         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
1102         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
1103         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
1104         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
1105         (posix_spawn_file_actions_destroy)
1106         (posix_spawn_file_actions_addopen)
1107         (posix_spawn_file_actions_addclose)
1108         (posix_spawwn_file_actions_adddup2): Likewise.
1109         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
1110         * tests/test-signal.c (main): Enhance test.
1111
1112         spawn: improve wrapper support
1113         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
1114         (gl_SPAWN_H_DEFAULTS): New defaults.
1115         * modules/spawn (Makefile.am): Substitute them.
1116         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
1117         Only declare if missing or broken.
1118
1119         sys_times, sys_utsname: use include_next
1120         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
1121         header.
1122         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
1123         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
1124         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
1125         * modules/sys_times (Depends-on): Add include_next.
1126         (Makefile.am): Substitute additional values.
1127         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1128         * lib/sys_times.in.h (includes): Include native header, if
1129         available.
1130         * lib/sys_utsname.in.h (includes): Likewise.
1131         * tests/test-sys_times.c (main): Enhance test.
1132
1133         fdutimensat: revert prior patch
1134         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
1135         utimens.h.
1136         Reported by Bruno Haible.
1137
1138 2009-12-30  Eric Blake  <ebb9@byu.net>
1139
1140         sys_wait: drop link-warning dependency
1141         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
1142         link-warning efforts.
1143         * lib/sys_wait.in.h: Likewise.
1144
1145         fdutimensat: remove bogus dependency
1146         * modules/fdutimensat (Depends-on): Drop inline.
1147
1148         unistd: fix typo
1149         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
1150
1151 2009-12-30  Bruno Haible  <bruno@clisp.org>
1152
1153         Fix compilation error with Solaris cc.
1154         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
1155         * lib/unicase/u16-is-invariant.c: Likewise.
1156         * lib/unicase/u32-is-invariant.c: Likewise.
1157         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
1158
1159 2009-12-30  Bruno Haible  <bruno@clisp.org>
1160
1161         Fix test crash.
1162         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
1163         locales.
1164         Reported by Simon Josefsson <simon@josefsson.org>.
1165
1166 2009-12-30  Bruno Haible  <bruno@clisp.org>
1167
1168         Fix compilation error on most platforms.
1169         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
1170         Reported by Simon Josefsson <simon@josefsson.org>
1171         and Nelson H. F. Beebe <beebe@math.utah.edu>.
1172
1173 2009-12-30  Eric Blake  <ebb9@byu.net>
1174
1175         futimens, utimensat: work around ntfs-3g bug
1176         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
1177         a ctime bug is present, and expand workaround to cover ntfs-3g.
1178         * lib/utimens.c (fdutimens, lutimens): Likewise.
1179         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
1180         (validate_timespec): Adjust return value.
1181         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
1182         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
1183         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
1184
1185 2009-12-29  Eric Blake  <ebb9@byu.net>
1186
1187         link-warning: make usage consistent
1188         * modules/ctype (Depends-on): Add link-warning.
1189         (Makefile.am): Update rules accordingly.
1190         * modules/langinfo (Depends-on, Makefile.am): Likewise.
1191         * modules/locale (Depends-on, Makefile.am): Likewise.
1192         * modules/sys_file (Makefile.am): Likewise.
1193         * modules/getopt-posix (Makefile.am): Delete unused link warning
1194         efforts.
1195         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
1196         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
1197         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
1198         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
1199
1200         stdio: remove unused variables
1201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
1202         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
1203         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1204
1205         tests: test more substitute headers
1206         * modules/ctype-tests: New file.
1207         * modules/dirent-tests: Likewise.
1208         * modules/spawn-tests: Likewise.
1209         * modules/sys_file-tests: Likewise.
1210         * modules/sys_ioctl-tests: Likewise.
1211         * modules/sys_wait-tests: Likewise.
1212         * tests/test-ctype.c: Likewise.
1213         * tests/test-dirent.c: Likewise.
1214         * tests/test-spawn.c: Likewise.
1215         * tests/test-sys_file.c: Likewise.
1216         * tests/test-sys_ioctl.c: Likewise.
1217         * tests/test-sys_wait.c: Likewise.
1218         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
1219         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
1220         whether or not flock is in use.
1221
1222         tests: remove License section from module
1223         * modules/arpa_inet-tests: Remove unneeded section.
1224         * modules/byteswap-tests: Likewise.
1225         * modules/ceilf-tests: Likewise.
1226         * modules/ceill-tests: Likewise.
1227         * modules/crypto/des-tests: Likewise.
1228         * modules/crypto/gc-arcfour-tests: Likewise.
1229         * modules/crypto/gc-arctwo-tests: Likewise.
1230         * modules/crypto/gc-des-tests: Likewise.
1231         * modules/crypto/gc-hmac-md5-tests: Likewise.
1232         * modules/crypto/gc-hmac-sha1-tests: Likewise.
1233         * modules/crypto/gc-md2-tests: Likewise.
1234         * modules/crypto/gc-md4-tests: Likewise.
1235         * modules/crypto/gc-md5-tests: Likewise.
1236         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
1237         * modules/crypto/gc-rijndael-tests: Likewise.
1238         * modules/crypto/gc-sha1-tests: Likewise.
1239         * modules/crypto/gc-tests: Likewise.
1240         * modules/crypto/md2-tests: Likewise.
1241         * modules/crypto/md4-tests: Likewise.
1242         * modules/fcntl-h-tests: Likewise.
1243         * modules/floorf-tests: Likewise.
1244         * modules/floorl-tests: Likewise.
1245         * modules/frexp-nolibm-tests: Likewise.
1246         * modules/frexp-tests: Likewise.
1247         * modules/frexpl-nolibm-tests: Likewise.
1248         * modules/frexpl-tests: Likewise.
1249         * modules/getaddrinfo-tests: Likewise.
1250         * modules/inttypes-tests: Likewise.
1251         * modules/isfinite-tests: Likewise.
1252         * modules/isinf-tests: Likewise.
1253         * modules/ldexpl-tests: Likewise.
1254         * modules/locale-tests: Likewise.
1255         * modules/math-tests: Likewise.
1256         * modules/netdb-tests: Likewise.
1257         * modules/netinet_in-tests: Likewise.
1258         * modules/printf-frexp-tests: Likewise.
1259         * modules/printf-frexpl-tests: Likewise.
1260         * modules/priv-set-tests: Likewise.
1261         * modules/random_r-tests: Likewise.
1262         * modules/round-tests: Likewise.
1263         * modules/roundf-tests: Likewise.
1264         * modules/roundl-tests: Likewise.
1265         * modules/search-tests: Likewise.
1266         * modules/select-tests: Likewise.
1267         * modules/signal-tests: Likewise.
1268         * modules/stdbool-tests: Likewise.
1269         * modules/stddef-tests: Likewise.
1270         * modules/stdint-tests: Likewise.
1271         * modules/stdio-tests: Likewise.
1272         * modules/stdlib-tests: Likewise.
1273         * modules/string-tests: Likewise.
1274         * modules/strings-tests: Likewise.
1275         * modules/sys_select-tests: Likewise.
1276         * modules/sys_socket-tests: Likewise.
1277         * modules/sys_stat-tests: Likewise.
1278         * modules/sys_time-tests: Likewise.
1279         * modules/sys_utsname-tests: Likewise.
1280         * modules/sysexits-tests: Likewise.
1281         * modules/time-tests: Likewise.
1282         * modules/trunc-tests: Likewise.
1283         * modules/truncf-tests: Likewise.
1284         * modules/truncl-tests: Likewise.
1285         * modules/tsearch-tests: Likewise.
1286         * modules/unistd-tests: Likewise.
1287         * modules/wchar-tests: Likewise.
1288         * modules/wctype-tests: Likewise.
1289
1290         tests: fix license on several tests
1291         * tests/test-des.c: Update to GPLv3+.
1292         * tests/test-flock.c: Likewise.
1293         * tests/test-fsync.c: Likewise.
1294         * tests/test-futimens.h: Likewise.
1295         * tests/test-gc-arcfour.c: Likewise.
1296         * tests/test-gc-arctwo.c: Likewise.
1297         * tests/test-gc-des.c: Likewise.
1298         * tests/test-gc-hmac-md5.c: Likewise.
1299         * tests/test-gc-hmac-sha1.c: Likewise.
1300         * tests/test-gc-md2.c: Likewise.
1301         * tests/test-gc-md4.c: Likewise.
1302         * tests/test-gc-md5.c: Likewise.
1303         * tests/test-gc-pbkdf2-sha1.c: Likewise.
1304         * tests/test-gc-rijndael.c: Likewise.
1305         * tests/test-gc-sha1.c: Likewise.
1306         * tests/test-gc.c: Likewise.
1307         * tests/test-getcwd.c: Likewise.
1308         * tests/test-link.c: Likewise.
1309         * tests/test-link.h: Likewise.
1310         * tests/test-lutimens.h: Likewise.
1311         * tests/test-md2.c: Likewise.
1312         * tests/test-md4.c: Likewise.
1313         * tests/test-mkdir.h: Likewise.
1314         * tests/test-rename.c: Likewise.
1315         * tests/test-rename.h: Likewise.
1316         * tests/test-safe-alloc.c: Likewise.
1317         * tests/test-utimens-common.h: Likewise.
1318         * tests/test-utimens.h: Likewise.
1319
1320         maint: sync license texts
1321         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
1322         * doc/gpl-3.0.texi: Revert copyright year update.
1323         * doc/lgpl-3.0.texi: Likewise.
1324
1325 2009-12-29  Jim Meyering  <meyering@redhat.com>
1326
1327         update nearly all FSF copyright year lists to include 2009
1328         The files named by the following are exempted:
1329             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
1330               test -f "$dst" && { echo "$dst"; continue; }
1331               test -d "$dst" || continue
1332               echo "$dst"/$(basename "$src")
1333             done > exempt
1334             git ls-files tests/unictype >> exempt
1335         In the remaining files, convert to all-interval notation if
1336         - there is already at least one year interval like 2000-2003
1337         - the file is maintained by me
1338         - the file is in lib/uni*/, where that style already prevails
1339         Otherwise, use update-copyright's default.
1340
1341 2009-12-29  Simon Josefsson  <simon@josefsson.org>
1342         and Eric Blake  <ebb9@byu.net>
1343
1344         tests: don't require debug system() to pass
1345         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
1346         * tests/test-rmdir.h (test_rmdir_func): Likewise.
1347         * tests/test-unlink.h (test_unlink_func): Likewise.
1348         * tests/test-fstatat.c (main): ...into callers.
1349         * tests/test-lstat.c (main): Likewise.
1350         * tests/test-rmdir.c (main): Likewise.
1351         * tests/test-unlink.c (main): Likewise.
1352         * tests/test-unlinkat.c (main): Likewise.
1353         * tests/test-areadlink-with-size.c (main): Don't require a
1354         debug-only system call to pass, aiding cross-testing to mingw.
1355         * tests/test-areadlink.c (main): Likewise.
1356         * tests/test-areadlinkat-with-size.c (main): Likewise.
1357         * tests/test-areadlinkat.c (main): Likewise.
1358         * tests/test-canonicalize-lgpl.c (main): Likewise.
1359         * tests/test-canonicalize.c (main): Likewise.
1360         * tests/test-chown.c (main): Likewise.
1361         * tests/test-fchownat.c (main): Likewise.
1362         * tests/test-lchown.c (main): Likewise.
1363         * tests/test-fdutimensat.c (main): Likewise.
1364         * tests/test-futimens.c (main): Likewise.
1365         * tests/test-link.c (main): Likewise.
1366         * tests/test-linkat.c (main): Likewise.
1367         * tests/test-mkdir.c (main): Likewise.
1368         * tests/test-mkdirat.c (main): Likewise.
1369         * tests/test-mkfifo.c (main): Likewise.
1370         * tests/test-mkfifoat.c (main): Likewise.
1371         * tests/test-mknod.c (main): Likewise.
1372         * tests/test-readlink.c (main): Likewise.
1373         * tests/test-remove.c (main): Likewise.
1374         * tests/test-rename.c (main): Likewise.
1375         * tests/test-renameat.c (main): Likewise.
1376         * tests/test-symlink.c (main): Likewise.
1377         * tests/test-symlinkat.c (main): Likewise.
1378         * tests/test-utimens.c (main): Likewise.
1379         * tests/test-utimensat.c (main): Likewise.
1380
1381 2009-12-29  Simon Josefsson  <simon@josefsson.org>
1382
1383         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
1384         on $(UNUSED_PARAMETER_H) to avoid build failure.
1385
1386 2009-12-28  Jim Meyering  <meyering@redhat.com>
1387
1388         update-copyright: you may specify a max. line length other than 72
1389         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
1390
1391         maint: use consistent FSF copyright line syntax
1392         * lib/posixtm.c: Add missing comma in FSF copyright line.
1393         * lib/posixtm.h: Likewise.
1394         * lib/getugroups.c: Add missing ", Inc.".
1395
1396         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
1397         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
1398         FSF copyright line.  Remove trailing blanks.
1399
1400 2009-12-28  Eric Blake  <ebb9@byu.net>
1401
1402         test-dup2: reduce dependencies
1403         * modules/cloexec (Configure.ac): Set witness.
1404         * modules/dup2-tests (Depends-on): Drop cloexec.
1405         * tests/test-dup2.c (main): Skip portion of test if cloexec module
1406         not present.
1407         Suggested by Bruno Haible.
1408
1409 2009-12-26  Bruno Haible  <bruno@clisp.org>
1410
1411         Remove an unneeded dependency.
1412         * modules/fseterr (Depends-on): Remove dup2.
1413
1414 2009-12-26  Eric Blake  <ebb9@byu.net>
1415
1416         tests: use macros.h in more places
1417         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
1418         (ASSERT_STREAM): Provide default of stderr.
1419         * tests/test-dirent-safer.c: Include macros.h, using alternate
1420         stream for assertions.
1421         * tests/test-dup-safer.c: Likewise.
1422         * tests/test-freopen-safer.c: Likewise.
1423         * tests/test-getopt.c: Likewise.
1424         * tests/test-openat-safer.c: Likewise.
1425         * tests/test-pipe.c: Likewise.
1426         * tests/test-popen-safer.c: Likewise.
1427         * modules/dirent-safer-tests (Files): Include macros.h.
1428         * modules/unistd-safer-tests (Files): Likewise.
1429         * modules/freopen-safer-tests (Files): Likewise.
1430         * modules/getopt-posix-tests (Files): Likewise.
1431         * modules/openat-safer-tests (Files): Likewise.
1432         * modules/pipe-tests (Files): Likewise.
1433
1434 2009-12-26  Bruno Haible  <bruno@clisp.org>
1435
1436         javacomp: Portability fix.
1437         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
1438         that it also works on Solaris.
1439
1440 2009-12-26  Bruno Haible  <bruno@clisp.org>
1441
1442         localename: Fix storage allocation of gl_locale_name_thread's result.
1443         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
1444         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
1445         all platforms that have 'uselocale'.
1446         (gl_locale_name_thread_unsafe): New function, extracted from
1447         gl_locale_name_thread.
1448         (gl_locale_name_thread): Call struniq on all platforms that have
1449         'uselocale'.
1450         * tests/test-localename.c (test_locale_name_thread): Check that the
1451         resulting strings are permanently allocated.
1452         * modules/localename-tests (Depends-on): Add strdup.
1453
1454 2009-12-26  Bruno Haible  <bruno@clisp.org>
1455
1456         * tests/test-localename.c (categories): Fill in the strings.
1457
1458 2009-12-26  Jim Meyering  <meyering@redhat.com>
1459
1460         isdir: complete the removal of m4/isdir.m4
1461         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
1462
1463         isdir: clean up, since at least grep still uses it
1464         * lib/isdir.c: Include "isdir.h".
1465         (S_ISDIR): Remove now-unneeded definition.
1466         * modules/isdir (Files): Add lib/isdir.h.
1467         * lib/isdir.h: New file, with declaration.
1468         * m4/isdir.m4: Remove file -- unneeded.
1469
1470 2009-12-25  Bruno Haible  <bruno@clisp.org>
1471
1472         selinux-h: Make generated .h files standalone.
1473         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
1474         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
1475         * lib/se-selinux.in.h: Likewise.
1476         * modules/selinux-h (Depends-on): Add unused-parameter.
1477         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
1478         selinux/selinux.h and selinux/context.h.
1479         Suggested by Eric Blake.
1480
1481 2009-12-25  Bruno Haible  <bruno@clisp.org>
1482
1483         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
1484         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
1485         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
1486         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
1487         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
1488
1489 2009-12-24  Bruno Haible  <bruno@clisp.org>
1490
1491         openat: Fix warning.
1492         * lib/openat-proc.c: Include <unistd.h>.
1493
1494 2009-12-24  Bruno Haible  <bruno@clisp.org>
1495
1496         New module 'unused-parameter'.
1497         * build-aux/unused-parameter.h: New file, extracted from earlier
1498         gnulib-common.m4.
1499         * modules/unused-parameter: New file.
1500         * lib/unistr.h: Include unused-parameter.h.
1501         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
1502         _GL_UNUSED.
1503         * modules/unistr/base (Depends-on): Add unused-parameter.
1504
1505 2009-12-24  Bruno Haible  <bruno@clisp.org>
1506
1507         Add missing dependencies to 'extensions' module.
1508         * m4/extensions.m4: Add comment.
1509         * modules/accept4 (Depends-on): Add extensions.
1510         * modules/dup3 (Depends-on): Likewise.
1511         * modules/fcntl (Depends-on): Likewise.
1512         * modules/futimens (Depends-on): Likewise.
1513         * modules/mknod (Depends-on): Likewise.
1514         * modules/pipe2 (Depends-on): Likewise.
1515         * modules/stat-time (Depends-on): Likewise.
1516         * modules/strcasestr-simple (Depends-on): Likewise.
1517         * modules/strsignal (Depends-on): Likewise.
1518         * modules/utimensat (Depends-on): Likewise.
1519         * modules/localcharset (Depends-on): Likewise. Needed because of
1520         gl_FCNTL_O_FLAGS.
1521         * modules/wcrtomb (Depends-on): Likewise. Needed because of
1522         AC_TYPE_MBSTATE_T.
1523         * modules/wcsnrtombs (Depends-on): Likewise.
1524         * modules/wcsrtombs (Depends-on): Likewise.
1525
1526 2009-12-24  Bruno Haible  <bruno@clisp.org>
1527
1528         binary-io: Avoid gcc warning due to SET_BINARY.
1529         * lib/binary-io.h (SET_BINARY): Cast the result to void.
1530         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
1531
1532 2009-12-24  Bruno Haible  <bruno@clisp.org>
1533
1534         Avoid future namespace pollution on glibc systems.
1535         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
1536         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
1537         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
1538         glibc systems.
1539
1540 2009-12-24  Bruno Haible  <bruno@clisp.org>
1541
1542         Refactor common macros used in tests.
1543         * tests/macros.h: New file.
1544         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
1545         and/or <stdlib.h>, if appropriate.
1546         (ASSERT, SIZEOF): Remove macros.
1547         * tests/test-areadlink-with-size.c: Likewise.
1548         * tests/test-areadlinkat.c: Likewise.
1549         * tests/test-areadlinkat-with-size.c: Likewise.
1550         * tests/test-argmatch.c: Likewise.
1551         * tests/test-argv-iter.c: Likewise.
1552         * tests/test-array-mergesort.c: Likewise.
1553         * tests/test-array_list.c: Likewise.
1554         * tests/test-array_oset.c: Likewise.
1555         * tests/test-avltree_list.c: Likewise.
1556         * tests/test-avltree_oset.c: Likewise.
1557         * tests/test-avltreehash_list.c: Likewise.
1558         * tests/test-base64.c: Likewise.
1559         * tests/test-binary-io.c: Likewise.
1560         * tests/test-bitrotate.c: Likewise.
1561         * tests/test-btowc.c: Likewise.
1562         * tests/test-byteswap.c: Likewise.
1563         * tests/test-c-ctype.c: Likewise.
1564         * tests/test-c-stack.c: Likewise.
1565         * tests/test-c-strcasecmp.c: Likewise.
1566         * tests/test-c-strcasestr.c: Likewise.
1567         * tests/test-c-strncasecmp.c: Likewise.
1568         * tests/test-c-strstr.c: Likewise.
1569         * tests/test-canonicalize-lgpl.c: Likewise.
1570         * tests/test-canonicalize.c: Likewise.
1571         * tests/test-carray_list.c: Likewise.
1572         * tests/test-ceilf1.c: Likewise.
1573         * tests/test-ceilf2.c: Likewise.
1574         * tests/test-ceill.c: Likewise.
1575         * tests/test-chown.c: Likewise.
1576         * tests/test-cloexec.c: Likewise.
1577         * tests/test-copy-acl.c: Likewise.
1578         * tests/test-copy-file.c: Likewise.
1579         * tests/test-count-one-bits.c: Likewise.
1580         * tests/test-dprintf-posix.c: Likewise.
1581         * tests/test-dup2.c: Likewise.
1582         * tests/test-dup3.c: Likewise.
1583         * tests/test-duplocale.c: Likewise.
1584         * tests/test-fbufmode.c: Likewise.
1585         * tests/test-fchdir.c: Likewise.
1586         * tests/test-fchownat.c: Likewise.
1587         * tests/test-fcntl-safer.c: Likewise.
1588         * tests/test-fcntl.c: Likewise.
1589         * tests/test-fdopendir.c: Likewise.
1590         * tests/test-fdutimensat.c: Likewise.
1591         * tests/test-fflush2.c: Likewise.
1592         * tests/test-file-has-acl.c: Likewise.
1593         * tests/test-filevercmp.c: Likewise.
1594         * tests/test-flock.c: Likewise.
1595         * tests/test-floorf1.c: Likewise.
1596         * tests/test-floorf2.c: Likewise.
1597         * tests/test-floorl.c: Likewise.
1598         * tests/test-fnmatch.c: Likewise.
1599         * tests/test-fopen.h: Likewise.
1600         * tests/test-fpending.c: Likewise.
1601         * tests/test-fprintf-posix.c: Likewise.
1602         * tests/test-fpurge.c: Likewise.
1603         * tests/test-freadable.c: Likewise.
1604         * tests/test-freadahead.c: Likewise.
1605         * tests/test-freading.c: Likewise.
1606         * tests/test-freadptr.c: Likewise.
1607         * tests/test-freadptr2.c: Likewise.
1608         * tests/test-freadseek.c: Likewise.
1609         * tests/test-freopen.c: Likewise.
1610         * tests/test-frexp.c: Likewise.
1611         * tests/test-frexpl.c: Likewise.
1612         * tests/test-fseek.c: Likewise.
1613         * tests/test-fseeko.c: Likewise.
1614         * tests/test-fstatat.c: Likewise.
1615         * tests/test-fstrcmp.c: Likewise.
1616         * tests/test-fsync.c: Likewise.
1617         * tests/test-ftell.c: Likewise.
1618         * tests/test-ftello.c: Likewise.
1619         * tests/test-func.c: Likewise.
1620         * tests/test-futimens.c: Likewise.
1621         * tests/test-fwritable.c: Likewise.
1622         * tests/test-fwriting.c: Likewise.
1623         * tests/test-getcwd.c: Likewise.
1624         * tests/test-getdate.c: Likewise.
1625         * tests/test-getdelim.c: Likewise.
1626         * tests/test-getdtablesize.c: Likewise.
1627         * tests/test-getgroups.c: Likewise.
1628         * tests/test-getline.c: Likewise.
1629         * tests/test-getndelim2.c: Likewise.
1630         * tests/test-glob.c: Likewise.
1631         * tests/test-hash.c: Likewise.
1632         * tests/test-i-ring.c: Likewise.
1633         * tests/test-iconv-utf.c: Likewise.
1634         * tests/test-iconv.c: Likewise.
1635         * tests/test-idpriv-drop.c: Likewise.
1636         * tests/test-idpriv-droptemp.c: Likewise.
1637         * tests/test-inet_ntop.c: Likewise.
1638         * tests/test-inet_pton.c: Likewise.
1639         * tests/test-isblank.c: Likewise.
1640         * tests/test-isfinite.c: Likewise.
1641         * tests/test-isinf.c: Likewise.
1642         * tests/test-isnan.c: Likewise.
1643         * tests/test-isnand.h: Likewise.
1644         * tests/test-isnanf.h: Likewise.
1645         * tests/test-isnanl.h: Likewise.
1646         * tests/test-lchown.c: Likewise.
1647         * tests/test-ldexpl.c: Likewise.
1648         * tests/test-link.c: Likewise.
1649         * tests/test-linkat.c: Likewise.
1650         * tests/test-linked_list.c: Likewise.
1651         * tests/test-linkedhash_list.c: Likewise.
1652         * tests/test-localename.c: Likewise.
1653         * tests/test-lseek.c: Likewise.
1654         * tests/test-lstat.c: Likewise.
1655         * tests/test-mbmemcasecmp.c: Likewise.
1656         * tests/test-mbmemcasecoll.c: Likewise.
1657         * tests/test-mbrtowc.c: Likewise.
1658         * tests/test-mbscasecmp.c: Likewise.
1659         * tests/test-mbscasestr1.c: Likewise.
1660         * tests/test-mbscasestr2.c: Likewise.
1661         * tests/test-mbscasestr3.c: Likewise.
1662         * tests/test-mbscasestr4.c: Likewise.
1663         * tests/test-mbschr.c: Likewise.
1664         * tests/test-mbscspn.c: Likewise.
1665         * tests/test-mbsinit.c: Likewise.
1666         * tests/test-mbsncasecmp.c: Likewise.
1667         * tests/test-mbsnrtowcs.c: Likewise.
1668         * tests/test-mbspbrk.c: Likewise.
1669         * tests/test-mbspcasecmp.c: Likewise.
1670         * tests/test-mbsrchr.c: Likewise.
1671         * tests/test-mbsrtowcs.c: Likewise.
1672         * tests/test-mbsspn.c: Likewise.
1673         * tests/test-mbsstr1.c: Likewise.
1674         * tests/test-mbsstr2.c: Likewise.
1675         * tests/test-mbsstr3.c: Likewise.
1676         * tests/test-memchr.c: Likewise.
1677         * tests/test-memchr2.c: Likewise.
1678         * tests/test-memcmp.c: Likewise.
1679         * tests/test-memmem.c: Likewise.
1680         * tests/test-memrchr.c: Likewise.
1681         * tests/test-mkdir.c: Likewise.
1682         * tests/test-mkdirat.c: Likewise.
1683         * tests/test-mkfifo.c: Likewise.
1684         * tests/test-mkfifoat.c: Likewise.
1685         * tests/test-mknod.c: Likewise.
1686         * tests/test-nanosleep.c: Likewise.
1687         * tests/test-nl_langinfo.c: Likewise.
1688         * tests/test-obstack-printf.c: Likewise.
1689         * tests/test-open.c: Likewise.
1690         * tests/test-openat.c: Likewise.
1691         * tests/test-pipe-filter-gi1.c: Likewise.
1692         * tests/test-pipe-filter-gi2-main.c: Likewise.
1693         * tests/test-pipe-filter-ii1.c: Likewise.
1694         * tests/test-pipe-filter-ii2-main.c: Likewise.
1695         * tests/test-pipe2.c: Likewise.
1696         * tests/test-popen.h: Likewise.
1697         * tests/test-posixtm.c: Likewise.
1698         * tests/test-pread.c: Likewise.
1699         * tests/test-printf-frexp.c: Likewise.
1700         * tests/test-printf-frexpl.c: Likewise.
1701         * tests/test-printf-posix.c: Likewise.
1702         * tests/test-priv-set.c: Likewise.
1703         * tests/test-quotearg.c: Likewise.
1704         * tests/test-random_r.c: Likewise.
1705         * tests/test-rawmemchr.c: Likewise.
1706         * tests/test-rbtree_list.c: Likewise.
1707         * tests/test-rbtree_oset.c: Likewise.
1708         * tests/test-rbtreehash_list.c: Likewise.
1709         * tests/test-readlink.c: Likewise.
1710         * tests/test-remove.c: Likewise.
1711         * tests/test-rename.c: Likewise.
1712         * tests/test-renameat.c: Likewise.
1713         * tests/test-rmdir.c: Likewise.
1714         * tests/test-round1.c: Likewise.
1715         * tests/test-roundf1.c: Likewise.
1716         * tests/test-roundl.c: Likewise.
1717         * tests/test-safe-alloc.c: Likewise.
1718         * tests/test-sameacls.c: Likewise.
1719         * tests/test-set-mode-acl.c: Likewise.
1720         * tests/test-setenv.c: Likewise.
1721         * tests/test-sigaction.c: Likewise.
1722         * tests/test-signbit.c: Likewise.
1723         * tests/test-sleep.c: Likewise.
1724         * tests/test-snprintf-posix.c: Likewise.
1725         * tests/test-snprintf.c: Likewise.
1726         * tests/test-sprintf-posix.c: Likewise.
1727         * tests/test-stat-time.c: Likewise.
1728         * tests/test-stat.c: Likewise.
1729         * tests/test-strcasestr.c: Likewise.
1730         * tests/test-strchrnul.c: Likewise.
1731         * tests/test-strerror.c: Likewise.
1732         * tests/test-striconv.c: Likewise.
1733         * tests/test-striconveh.c: Likewise.
1734         * tests/test-striconveha.c: Likewise.
1735         * tests/test-strsignal.c: Likewise.
1736         * tests/test-strstr.c: Likewise.
1737         * tests/test-strtod.c: Likewise.
1738         * tests/test-strverscmp.c: Likewise.
1739         * tests/test-symlink.c: Likewise.
1740         * tests/test-symlinkat.c: Likewise.
1741         * tests/test-trunc1.c: Likewise.
1742         * tests/test-trunc2.c: Likewise.
1743         * tests/test-truncf1.c: Likewise.
1744         * tests/test-truncf2.c: Likewise.
1745         * tests/test-truncl.c: Likewise.
1746         * tests/test-uname.c: Likewise.
1747         * tests/test-unlink.c: Likewise.
1748         * tests/test-unlinkat.c: Likewise.
1749         * tests/test-unsetenv.c: Likewise.
1750         * tests/test-usleep.c: Likewise.
1751         * tests/test-utimens.c: Likewise.
1752         * tests/test-utimensat.c: Likewise.
1753         * tests/test-vasnprintf-posix.c: Likewise.
1754         * tests/test-vasnprintf-posix2.c: Likewise.
1755         * tests/test-vasnprintf.c: Likewise.
1756         * tests/test-vasprintf-posix.c: Likewise.
1757         * tests/test-vasprintf.c: Likewise.
1758         * tests/test-vdprintf-posix.c: Likewise.
1759         * tests/test-vfprintf-posix.c: Likewise.
1760         * tests/test-vprintf-posix.c: Likewise.
1761         * tests/test-vsnprintf-posix.c: Likewise.
1762         * tests/test-vsnprintf.c: Likewise.
1763         * tests/test-vsprintf-posix.c: Likewise.
1764         * tests/test-wcrtomb.c: Likewise.
1765         * tests/test-wcsnrtombs.c: Likewise.
1766         * tests/test-wcsrtombs.c: Likewise.
1767         * tests/test-wctype.c: Likewise.
1768         * tests/test-wcwidth.c: Likewise.
1769         * tests/test-xfprintf-posix.c: Likewise.
1770         * tests/test-xmemdup0.c: Likewise.
1771         * tests/test-xprintf-posix.c: Likewise.
1772         * tests/test-xvasprintf.c: Likewise.
1773         * tests/unicase/test-locale-language.c: Likewise.
1774         * tests/unicase/test-mapping-part1.h: Likewise.
1775         * tests/unicase/test-predicate-part1.h: Likewise.
1776         * tests/unicase/test-u8-casecmp.c: Likewise.
1777         * tests/unicase/test-u8-casecoll.c: Likewise.
1778         * tests/unicase/test-u8-casefold.c: Likewise.
1779         * tests/unicase/test-u8-is-cased.c: Likewise.
1780         * tests/unicase/test-u8-is-casefolded.c: Likewise.
1781         * tests/unicase/test-u8-is-lowercase.c: Likewise.
1782         * tests/unicase/test-u8-is-titlecase.c: Likewise.
1783         * tests/unicase/test-u8-is-uppercase.c: Likewise.
1784         * tests/unicase/test-u8-tolower.c: Likewise.
1785         * tests/unicase/test-u8-totitle.c: Likewise.
1786         * tests/unicase/test-u8-toupper.c: Likewise.
1787         * tests/unicase/test-u16-casecmp.c: Likewise.
1788         * tests/unicase/test-u16-casecoll.c: Likewise.
1789         * tests/unicase/test-u16-casefold.c: Likewise.
1790         * tests/unicase/test-u16-is-cased.c: Likewise.
1791         * tests/unicase/test-u16-is-casefolded.c: Likewise.
1792         * tests/unicase/test-u16-is-lowercase.c: Likewise.
1793         * tests/unicase/test-u16-is-titlecase.c: Likewise.
1794         * tests/unicase/test-u16-is-uppercase.c: Likewise.
1795         * tests/unicase/test-u16-tolower.c: Likewise.
1796         * tests/unicase/test-u16-totitle.c: Likewise.
1797         * tests/unicase/test-u16-toupper.c: Likewise.
1798         * tests/unicase/test-u32-casecmp.c: Likewise.
1799         * tests/unicase/test-u32-casecoll.c: Likewise.
1800         * tests/unicase/test-u32-casefold.c: Likewise.
1801         * tests/unicase/test-u32-is-cased.c: Likewise.
1802         * tests/unicase/test-u32-is-casefolded.c: Likewise.
1803         * tests/unicase/test-u32-is-lowercase.c: Likewise.
1804         * tests/unicase/test-u32-is-titlecase.c: Likewise.
1805         * tests/unicase/test-u32-is-uppercase.c: Likewise.
1806         * tests/unicase/test-u32-tolower.c: Likewise.
1807         * tests/unicase/test-u32-totitle.c: Likewise.
1808         * tests/unicase/test-u32-toupper.c: Likewise.
1809         * tests/unicase/test-ulc-casecmp.c: Likewise.
1810         * tests/unicase/test-ulc-casecoll.c: Likewise.
1811         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
1812         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
1813         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
1814         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
1815         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
1816         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
1817         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
1818         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
1819         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
1820         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
1821         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
1822         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
1823         * tests/unictype/test-bidi_byname.c: Likewise.
1824         * tests/unictype/test-bidi_name.c: Likewise.
1825         * tests/unictype/test-bidi_of.c: Likewise.
1826         * tests/unictype/test-bidi_test.c: Likewise.
1827         * tests/unictype/test-block_list.c: Likewise.
1828         * tests/unictype/test-block_of.c: Likewise.
1829         * tests/unictype/test-block_test.c: Likewise.
1830         * tests/unictype/test-categ_and.c: Likewise.
1831         * tests/unictype/test-categ_and_not.c: Likewise.
1832         * tests/unictype/test-categ_byname.c: Likewise.
1833         * tests/unictype/test-categ_name.c: Likewise.
1834         * tests/unictype/test-categ_none.c: Likewise.
1835         * tests/unictype/test-categ_of.c: Likewise.
1836         * tests/unictype/test-categ_or.c: Likewise.
1837         * tests/unictype/test-categ_test_withtable.c: Likewise.
1838         * tests/unictype/test-combining.c: Likewise.
1839         * tests/unictype/test-decdigit.c: Likewise.
1840         * tests/unictype/test-digit.c: Likewise.
1841         * tests/unictype/test-mirror.c: Likewise.
1842         * tests/unictype/test-numeric.c: Likewise.
1843         * tests/unictype/test-pr_byname.c: Likewise.
1844         * tests/unictype/test-pr_test.c: Likewise.
1845         * tests/unictype/test-predicate-part1.h: Likewise.
1846         * tests/unictype/test-scripts.c: Likewise.
1847         * tests/unictype/test-sy_c_ident.c: Likewise.
1848         * tests/unictype/test-sy_java_ident.c: Likewise.
1849         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
1850         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
1851         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
1852         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
1853         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
1854         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
1855         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
1856         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
1857         * tests/uninorm/test-canonical-decomposition.c: Likewise.
1858         * tests/uninorm/test-compat-decomposition.c: Likewise.
1859         * tests/uninorm/test-composition.c: Likewise.
1860         * tests/uninorm/test-decomposing-form.c: Likewise.
1861         * tests/uninorm/test-decomposition.c: Likewise.
1862         * tests/uninorm/test-u8-nfc.c: Likewise.
1863         * tests/uninorm/test-u8-nfd.c: Likewise.
1864         * tests/uninorm/test-u8-nfkc.c: Likewise.
1865         * tests/uninorm/test-u8-nfkd.c: Likewise.
1866         * tests/uninorm/test-u8-normcmp.c: Likewise.
1867         * tests/uninorm/test-u8-normcoll.c: Likewise.
1868         * tests/uninorm/test-u16-nfc.c: Likewise.
1869         * tests/uninorm/test-u16-nfd.c: Likewise.
1870         * tests/uninorm/test-u16-nfkc.c: Likewise.
1871         * tests/uninorm/test-u16-nfkd.c: Likewise.
1872         * tests/uninorm/test-u16-normcmp.c: Likewise.
1873         * tests/uninorm/test-u16-normcoll.c: Likewise.
1874         * tests/uninorm/test-u32-nfc.c: Likewise.
1875         * tests/uninorm/test-u32-nfd.c: Likewise.
1876         * tests/uninorm/test-u32-nfkc.c: Likewise.
1877         * tests/uninorm/test-u32-nfkd.c: Likewise.
1878         * tests/uninorm/test-u32-normalize-big.c: Likewise.
1879         * tests/uninorm/test-u32-normcmp.c: Likewise.
1880         * tests/uninorm/test-u32-normcoll.c: Likewise.
1881         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
1882         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
1883         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
1884         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
1885         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
1886         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
1887         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
1888         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
1889         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
1890         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
1891         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
1892         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
1893         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
1894         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
1895         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
1896         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
1897         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
1898         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
1899         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
1900         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
1901         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
1902         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
1903         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
1904         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
1905         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
1906         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
1907         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
1908         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
1909         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
1910         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
1911         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
1912         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
1913         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
1914         * tests/uniwidth/test-u8-strwidth.c: Likewise.
1915         * tests/uniwidth/test-u8-width.c: Likewise.
1916         * tests/uniwidth/test-u16-strwidth.c: Likewise.
1917         * tests/uniwidth/test-u16-width.c: Likewise.
1918         * tests/uniwidth/test-u32-strwidth.c: Likewise.
1919         * tests/uniwidth/test-u32-width.c: Likewise.
1920         * tests/uniwidth/test-uc_width.c: Likewise.
1921         * tests/uniwidth/test-uc_width2.c: Likewise.
1922         * modules/acl-tests (Files): Add tests/macros.h.
1923         * modules/areadlink-tests (Files): Likewise.
1924         * modules/areadlink-with-size-tests (Files): Likewise.
1925         * modules/areadlinkat-tests (Files): Likewise.
1926         * modules/areadlinkat-with-size-tests (Files): Likewise.
1927         * modules/argmatch-tests (Files): Likewise.
1928         * modules/argv-iter-tests (Files): Likewise.
1929         * modules/array-list-tests (Files): Likewise.
1930         * modules/array-mergesort-tests (Files): Likewise.
1931         * modules/array-oset-tests (Files): Likewise.
1932         * modules/avltree-list-tests (Files): Likewise.
1933         * modules/avltree-oset-tests (Files): Likewise.
1934         * modules/avltreehash-list-tests (Files): Likewise.
1935         * modules/base64-tests (Files): Likewise.
1936         * modules/binary-io-tests (Files): Likewise.
1937         * modules/bitrotate-tests (Files): Likewise.
1938         * modules/btowc-tests (Files): Likewise.
1939         * modules/byteswap-tests (Files): Likewise.
1940         * modules/c-ctype-tests (Files): Likewise.
1941         * modules/c-stack-tests (Files): Likewise.
1942         * modules/c-strcase-tests (Files): Likewise.
1943         * modules/c-strcasestr-tests (Files): Likewise.
1944         * modules/c-strstr-tests (Files): Likewise.
1945         * modules/canonicalize-lgpl-tests (Files): Likewise.
1946         * modules/canonicalize-tests (Files): Likewise.
1947         * modules/carray-list-tests (Files): Likewise.
1948         * modules/ceilf-tests (Files): Likewise.
1949         * modules/ceill-tests (Files): Likewise.
1950         * modules/chown-tests (Files): Likewise.
1951         * modules/cloexec-tests (Files): Likewise.
1952         * modules/copy-file-tests (Files): Likewise.
1953         * modules/count-one-bits-tests (Files): Likewise.
1954         * modules/dprintf-posix-tests (Files): Likewise.
1955         * modules/dup2-tests (Files): Likewise.
1956         * modules/dup3-tests (Files): Likewise.
1957         * modules/duplocale-tests (Files): Likewise.
1958         * modules/fbufmode-tests (Files): Likewise.
1959         * modules/fchdir-tests (Files): Likewise.
1960         * modules/fcntl-safer-tests (Files): Likewise.
1961         * modules/fcntl-tests (Files): Likewise.
1962         * modules/fdopendir-tests (Files): Likewise.
1963         * modules/fdutimensat-tests (Files): Likewise.
1964         * modules/fflush-tests (Files): Likewise.
1965         * modules/filevercmp-tests (Files): Likewise.
1966         * modules/flock-tests (Files): Likewise.
1967         * modules/floorf-tests (Files): Likewise.
1968         * modules/floorl-tests (Files): Likewise.
1969         * modules/fnmatch-tests (Files): Likewise.
1970         * modules/fopen-safer-tests (Files): Likewise.
1971         * modules/fopen-tests (Files): Likewise.
1972         * modules/fpending-tests (Files): Likewise.
1973         * modules/fprintf-posix-tests (Files): Likewise.
1974         * modules/fpurge-tests (Files): Likewise.
1975         * modules/freadable-tests (Files): Likewise.
1976         * modules/freadahead-tests (Files): Likewise.
1977         * modules/freading-tests (Files): Likewise.
1978         * modules/freadptr-tests (Files): Likewise.
1979         * modules/freadseek-tests (Files): Likewise.
1980         * modules/freopen-tests (Files): Likewise.
1981         * modules/frexp-nolibm-tests (Files): Likewise.
1982         * modules/frexp-tests (Files): Likewise.
1983         * modules/frexpl-nolibm-tests (Files): Likewise.
1984         * modules/frexpl-tests (Files): Likewise.
1985         * modules/fseek-tests (Files): Likewise.
1986         * modules/fseeko-tests (Files): Likewise.
1987         * modules/fstrcmp-tests (Files): Likewise.
1988         * modules/fsync-tests (Files): Likewise.
1989         * modules/ftell-tests (Files): Likewise.
1990         * modules/ftello-tests (Files): Likewise.
1991         * modules/func-tests (Files): Likewise.
1992         * modules/futimens-tests (Files): Likewise.
1993         * modules/fwritable-tests (Files): Likewise.
1994         * modules/fwriting-tests (Files): Likewise.
1995         * modules/getcwd-tests (Files): Likewise.
1996         * modules/getdate-tests (Files): Likewise.
1997         * modules/getdelim-tests (Files): Likewise.
1998         * modules/getdtablesize-tests (Files): Likewise.
1999         * modules/getgroups-tests (Files): Likewise.
2000         * modules/getline-tests (Files): Likewise.
2001         * modules/getndelim2-tests (Files): Likewise.
2002         * modules/glob-tests (Files): Likewise.
2003         * modules/hash-tests (Files): Likewise.
2004         * modules/i-ring-tests (Files): Likewise.
2005         * modules/iconv-tests (Files): Likewise.
2006         * modules/iconv_open-utf-tests (Files): Likewise.
2007         * modules/idpriv-drop-tests (Files): Likewise.
2008         * modules/idpriv-droptemp-tests (Files): Likewise.
2009         * modules/inet_ntop-tests (Files): Likewise.
2010         * modules/inet_pton-tests (Files): Likewise.
2011         * modules/isblank-tests (Files): Likewise.
2012         * modules/isfinite-tests (Files): Likewise.
2013         * modules/isinf-tests (Files): Likewise.
2014         * modules/isnan-tests (Files): Likewise.
2015         * modules/isnand-nolibm-tests (Files): Likewise.
2016         * modules/isnand-tests (Files): Likewise.
2017         * modules/isnanf-nolibm-tests (Files): Likewise.
2018         * modules/isnanf-tests (Files): Likewise.
2019         * modules/isnanl-nolibm-tests (Files): Likewise.
2020         * modules/isnanl-tests (Files): Likewise.
2021         * modules/lchown-tests (Files): Likewise.
2022         * modules/ldexpl-tests (Files): Likewise.
2023         * modules/link-tests (Files): Likewise.
2024         * modules/linkat-tests (Files): Likewise.
2025         * modules/linked-list-tests (Files): Likewise.
2026         * modules/linkedhash-list-tests (Files): Likewise.
2027         * modules/localename-tests (Files): Likewise.
2028         * modules/lseek-tests (Files): Likewise.
2029         * modules/lstat-tests (Files): Likewise.
2030         * modules/mbmemcasecmp-tests (Files): Likewise.
2031         * modules/mbmemcasecoll-tests (Files): Likewise.
2032         * modules/mbrtowc-tests (Files): Likewise.
2033         * modules/mbscasecmp-tests (Files): Likewise.
2034         * modules/mbscasestr-tests (Files): Likewise.
2035         * modules/mbschr-tests (Files): Likewise.
2036         * modules/mbscspn-tests (Files): Likewise.
2037         * modules/mbsinit-tests (Files): Likewise.
2038         * modules/mbsncasecmp-tests (Files): Likewise.
2039         * modules/mbsnrtowcs-tests (Files): Likewise.
2040         * modules/mbspbrk-tests (Files): Likewise.
2041         * modules/mbspcasecmp-tests (Files): Likewise.
2042         * modules/mbsrchr-tests (Files): Likewise.
2043         * modules/mbsrtowcs-tests (Files): Likewise.
2044         * modules/mbsspn-tests (Files): Likewise.
2045         * modules/mbsstr-tests (Files): Likewise.
2046         * modules/memchr-tests (Files): Likewise.
2047         * modules/memchr2-tests (Files): Likewise.
2048         * modules/memcmp-tests (Files): Likewise.
2049         * modules/memmem-tests (Files): Likewise.
2050         * modules/memrchr-tests (Files): Likewise.
2051         * modules/mkdir-tests (Files): Likewise.
2052         * modules/mkfifo-tests (Files): Likewise.
2053         * modules/mkfifoat-tests (Files): Likewise.
2054         * modules/mknod-tests (Files): Likewise.
2055         * modules/nanosleep-tests (Files): Likewise.
2056         * modules/nl_langinfo-tests (Files): Likewise.
2057         * modules/obstack-printf-tests (Files): Likewise.
2058         * modules/open-tests (Files): Likewise.
2059         * modules/openat-tests (Files): Likewise.
2060         * modules/pipe-filter-gi-tests (Files): Likewise.
2061         * modules/pipe-filter-ii-tests (Files): Likewise.
2062         * modules/pipe2-tests (Files): Likewise.
2063         * modules/popen-safer-tests (Files): Likewise.
2064         * modules/popen-tests (Files): Likewise.
2065         * modules/posixtm-tests (Files): Likewise.
2066         * modules/pread-tests (Files): Likewise.
2067         * modules/printf-frexp-tests (Files): Likewise.
2068         * modules/printf-frexpl-tests (Files): Likewise.
2069         * modules/printf-posix-tests (Files): Likewise.
2070         * modules/priv-set-tests (Files): Likewise.
2071         * modules/quotearg-tests (Files): Likewise.
2072         * modules/random_r-tests (Files): Likewise.
2073         * modules/rawmemchr-tests (Files): Likewise.
2074         * modules/rbtree-list-tests (Files): Likewise.
2075         * modules/rbtree-oset-tests (Files): Likewise.
2076         * modules/rbtreehash-list-tests (Files): Likewise.
2077         * modules/readlink-tests (Files): Likewise.
2078         * modules/remove-tests (Files): Likewise.
2079         * modules/rename-tests (Files): Likewise.
2080         * modules/renameat-tests (Files): Likewise.
2081         * modules/rmdir-tests (Files): Likewise.
2082         * modules/round-tests (Files): Likewise.
2083         * modules/roundf-tests (Files): Likewise.
2084         * modules/roundl-tests (Files): Likewise.
2085         * modules/safe-alloc-tests (Files): Likewise.
2086         * modules/setenv-tests (Files): Likewise.
2087         * modules/sigaction-tests (Files): Likewise.
2088         * modules/signbit-tests (Files): Likewise.
2089         * modules/sleep-tests (Files): Likewise.
2090         * modules/snprintf-posix-tests (Files): Likewise.
2091         * modules/snprintf-tests (Files): Likewise.
2092         * modules/sprintf-posix-tests (Files): Likewise.
2093         * modules/stat-tests (Files): Likewise.
2094         * modules/stat-time-tests (Files): Likewise.
2095         * modules/strcasestr-tests (Files): Likewise.
2096         * modules/strchrnul-tests (Files): Likewise.
2097         * modules/strerror-tests (Files): Likewise.
2098         * modules/striconv-tests (Files): Likewise.
2099         * modules/striconveh-tests (Files): Likewise.
2100         * modules/striconveha-tests (Files): Likewise.
2101         * modules/strsignal-tests (Files): Likewise.
2102         * modules/strstr-tests (Files): Likewise.
2103         * modules/strtod-tests (Files): Likewise.
2104         * modules/strverscmp-tests (Files): Likewise.
2105         * modules/symlink-tests (Files): Likewise.
2106         * modules/symlinkat-tests (Files): Likewise.
2107         * modules/trunc-tests (Files): Likewise.
2108         * modules/truncf-tests (Files): Likewise.
2109         * modules/truncl-tests (Files): Likewise.
2110         * modules/uname-tests (Files): Likewise.
2111         * modules/unicase/cased-tests (Files): Likewise.
2112         * modules/unicase/ignorable-tests (Files): Likewise.
2113         * modules/unicase/locale-language-tests (Files): Likewise.
2114         * modules/unicase/tolower-tests (Files): Likewise.
2115         * modules/unicase/totitle-tests (Files): Likewise.
2116         * modules/unicase/toupper-tests (Files): Likewise.
2117         * modules/unicase/u8-casecmp-tests (Files): Likewise.
2118         * modules/unicase/u8-casecoll-tests (Files): Likewise.
2119         * modules/unicase/u8-casefold-tests (Files): Likewise.
2120         * modules/unicase/u8-is-cased-tests (Files): Likewise.
2121         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
2122         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
2123         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
2124         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
2125         * modules/unicase/u8-tolower-tests (Files): Likewise.
2126         * modules/unicase/u8-totitle-tests (Files): Likewise.
2127         * modules/unicase/u8-toupper-tests (Files): Likewise.
2128         * modules/unicase/u16-casecmp-tests (Files): Likewise.
2129         * modules/unicase/u16-casecoll-tests (Files): Likewise.
2130         * modules/unicase/u16-casefold-tests (Files): Likewise.
2131         * modules/unicase/u16-is-cased-tests (Files): Likewise.
2132         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
2133         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
2134         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
2135         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
2136         * modules/unicase/u16-tolower-tests (Files): Likewise.
2137         * modules/unicase/u16-totitle-tests (Files): Likewise.
2138         * modules/unicase/u16-toupper-tests (Files): Likewise.
2139         * modules/unicase/u32-casecmp-tests (Files): Likewise.
2140         * modules/unicase/u32-casecoll-tests (Files): Likewise.
2141         * modules/unicase/u32-casefold-tests (Files): Likewise.
2142         * modules/unicase/u32-is-cased-tests (Files): Likewise.
2143         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
2144         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
2145         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
2146         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
2147         * modules/unicase/u32-tolower-tests (Files): Likewise.
2148         * modules/unicase/u32-totitle-tests (Files): Likewise.
2149         * modules/unicase/u32-toupper-tests (Files): Likewise.
2150         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
2151         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
2152         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
2153         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
2154         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
2155         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
2156         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
2157         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
2158         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
2159         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
2160         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
2161         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
2162         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
2163         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
2164         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
2165         * modules/unictype/bidicategory-name-tests (Files): Likewise.
2166         * modules/unictype/bidicategory-of-tests (Files): Likewise.
2167         * modules/unictype/bidicategory-test-tests (Files): Likewise.
2168         * modules/unictype/block-list-tests (Files): Likewise.
2169         * modules/unictype/block-of-tests (Files): Likewise.
2170         * modules/unictype/block-test-tests (Files): Likewise.
2171         * modules/unictype/category-C-tests (Files): Likewise.
2172         * modules/unictype/category-Cc-tests (Files): Likewise.
2173         * modules/unictype/category-Cf-tests (Files): Likewise.
2174         * modules/unictype/category-Cn-tests (Files): Likewise.
2175         * modules/unictype/category-Co-tests (Files): Likewise.
2176         * modules/unictype/category-Cs-tests (Files): Likewise.
2177         * modules/unictype/category-L-tests (Files): Likewise.
2178         * modules/unictype/category-Ll-tests (Files): Likewise.
2179         * modules/unictype/category-Lm-tests (Files): Likewise.
2180         * modules/unictype/category-Lo-tests (Files): Likewise.
2181         * modules/unictype/category-Lt-tests (Files): Likewise.
2182         * modules/unictype/category-Lu-tests (Files): Likewise.
2183         * modules/unictype/category-M-tests (Files): Likewise.
2184         * modules/unictype/category-Mc-tests (Files): Likewise.
2185         * modules/unictype/category-Me-tests (Files): Likewise.
2186         * modules/unictype/category-Mn-tests (Files): Likewise.
2187         * modules/unictype/category-N-tests (Files): Likewise.
2188         * modules/unictype/category-Nd-tests (Files): Likewise.
2189         * modules/unictype/category-Nl-tests (Files): Likewise.
2190         * modules/unictype/category-No-tests (Files): Likewise.
2191         * modules/unictype/category-P-tests (Files): Likewise.
2192         * modules/unictype/category-Pc-tests (Files): Likewise.
2193         * modules/unictype/category-Pd-tests (Files): Likewise.
2194         * modules/unictype/category-Pe-tests (Files): Likewise.
2195         * modules/unictype/category-Pf-tests (Files): Likewise.
2196         * modules/unictype/category-Pi-tests (Files): Likewise.
2197         * modules/unictype/category-Po-tests (Files): Likewise.
2198         * modules/unictype/category-Ps-tests (Files): Likewise.
2199         * modules/unictype/category-S-tests (Files): Likewise.
2200         * modules/unictype/category-Sc-tests (Files): Likewise.
2201         * modules/unictype/category-Sk-tests (Files): Likewise.
2202         * modules/unictype/category-Sm-tests (Files): Likewise.
2203         * modules/unictype/category-So-tests (Files): Likewise.
2204         * modules/unictype/category-Z-tests (Files): Likewise.
2205         * modules/unictype/category-Zl-tests (Files): Likewise.
2206         * modules/unictype/category-Zp-tests (Files): Likewise.
2207         * modules/unictype/category-Zs-tests (Files): Likewise.
2208         * modules/unictype/category-and-not-tests (Files): Likewise.
2209         * modules/unictype/category-and-tests (Files): Likewise.
2210         * modules/unictype/category-byname-tests (Files): Likewise.
2211         * modules/unictype/category-name-tests (Files): Likewise.
2212         * modules/unictype/category-none-tests (Files): Likewise.
2213         * modules/unictype/category-of-tests (Files): Likewise.
2214         * modules/unictype/category-or-tests (Files): Likewise.
2215         * modules/unictype/category-test-withtable-tests (Files): Likewise.
2216         * modules/unictype/combining-class-tests (Files): Likewise.
2217         * modules/unictype/ctype-alnum-tests (Files): Likewise.
2218         * modules/unictype/ctype-alpha-tests (Files): Likewise.
2219         * modules/unictype/ctype-blank-tests (Files): Likewise.
2220         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
2221         * modules/unictype/ctype-digit-tests (Files): Likewise.
2222         * modules/unictype/ctype-graph-tests (Files): Likewise.
2223         * modules/unictype/ctype-lower-tests (Files): Likewise.
2224         * modules/unictype/ctype-print-tests (Files): Likewise.
2225         * modules/unictype/ctype-punct-tests (Files): Likewise.
2226         * modules/unictype/ctype-space-tests (Files): Likewise.
2227         * modules/unictype/ctype-upper-tests (Files): Likewise.
2228         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
2229         * modules/unictype/decimal-digit-tests (Files): Likewise.
2230         * modules/unictype/digit-tests (Files): Likewise.
2231         * modules/unictype/mirror-tests (Files): Likewise.
2232         * modules/unictype/numeric-tests (Files): Likewise.
2233         * modules/unictype/property-alphabetic-tests (Files): Likewise.
2234         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
2235         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
2236         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
2237         Likewise.
2238         * modules/unictype/property-bidi-block-separator-tests (Files):
2239         Likewise.
2240         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
2241         Likewise.
2242         * modules/unictype/property-bidi-common-separator-tests (Files):
2243         Likewise.
2244         * modules/unictype/property-bidi-control-tests (Files): Likewise.
2245         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
2246         Likewise.
2247         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
2248         Likewise.
2249         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
2250         Likewise.
2251         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
2252         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
2253         Likewise.
2254         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
2255         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
2256         Likewise.
2257         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
2258         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
2259         * modules/unictype/property-bidi-segment-separator-tests (Files):
2260         Likewise.
2261         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
2262         * modules/unictype/property-byname-tests (Files): Likewise.
2263         * modules/unictype/property-combining-tests (Files): Likewise.
2264         * modules/unictype/property-composite-tests (Files): Likewise.
2265         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
2266         * modules/unictype/property-dash-tests (Files): Likewise.
2267         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
2268         * modules/unictype/property-default-ignorable-code-point-tests (Files):
2269         Likewise.
2270         * modules/unictype/property-deprecated-tests (Files): Likewise.
2271         * modules/unictype/property-diacritic-tests (Files): Likewise.
2272         * modules/unictype/property-extender-tests (Files): Likewise.
2273         * modules/unictype/property-format-control-tests (Files): Likewise.
2274         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
2275         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
2276         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
2277         * modules/unictype/property-hex-digit-tests (Files): Likewise.
2278         * modules/unictype/property-hyphen-tests (Files): Likewise.
2279         * modules/unictype/property-id-continue-tests (Files): Likewise.
2280         * modules/unictype/property-id-start-tests (Files): Likewise.
2281         * modules/unictype/property-ideographic-tests (Files): Likewise.
2282         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
2283         * modules/unictype/property-ids-trinary-operator-tests (Files):
2284         Likewise.
2285         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
2286         * modules/unictype/property-iso-control-tests (Files): Likewise.
2287         * modules/unictype/property-join-control-tests (Files): Likewise.
2288         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
2289         * modules/unictype/property-line-separator-tests (Files): Likewise.
2290         * modules/unictype/property-logical-order-exception-tests (Files):
2291         Likewise.
2292         * modules/unictype/property-lowercase-tests (Files): Likewise.
2293         * modules/unictype/property-math-tests (Files): Likewise.
2294         * modules/unictype/property-non-break-tests (Files): Likewise.
2295         * modules/unictype/property-not-a-character-tests (Files): Likewise.
2296         * modules/unictype/property-numeric-tests (Files): Likewise.
2297         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
2298         * modules/unictype/property-other-default-ignorable-code-point-tests
2299         (Files): Likewise.
2300         * modules/unictype/property-other-grapheme-extend-tests (Files):
2301         Likewise.
2302         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
2303         * modules/unictype/property-other-id-start-tests (Files): Likewise.
2304         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
2305         * modules/unictype/property-other-math-tests (Files): Likewise.
2306         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
2307         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
2308         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
2309         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
2310         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
2311         * modules/unictype/property-private-use-tests (Files): Likewise.
2312         * modules/unictype/property-punctuation-tests (Files): Likewise.
2313         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
2314         * modules/unictype/property-radical-tests (Files): Likewise.
2315         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
2316         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
2317         * modules/unictype/property-space-tests (Files): Likewise.
2318         * modules/unictype/property-terminal-punctuation-tests (Files):
2319         Likewise.
2320         * modules/unictype/property-test-tests (Files): Likewise.
2321         * modules/unictype/property-titlecase-tests (Files): Likewise.
2322         * modules/unictype/property-unassigned-code-value-tests (Files):
2323         Likewise.
2324         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
2325         * modules/unictype/property-uppercase-tests (Files): Likewise.
2326         * modules/unictype/property-variation-selector-tests (Files): Likewise.
2327         * modules/unictype/property-white-space-tests (Files): Likewise.
2328         * modules/unictype/property-xid-continue-tests (Files): Likewise.
2329         * modules/unictype/property-xid-start-tests (Files): Likewise.
2330         * modules/unictype/property-zero-width-tests (Files): Likewise.
2331         * modules/unictype/scripts-tests (Files): Likewise.
2332         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
2333         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
2334         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
2335         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
2336         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
2337         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
2338         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
2339         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
2340         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
2341         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
2342         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
2343         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
2344         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
2345         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
2346         * modules/uninorm/composition-tests (Files): Likewise.
2347         * modules/uninorm/decomposing-form-tests (Files): Likewise.
2348         * modules/uninorm/decomposition-tests (Files): Likewise.
2349         * modules/uninorm/filter-tests (Files): Likewise.
2350         * modules/uninorm/nfc-tests (Files): Likewise.
2351         * modules/uninorm/nfd-tests (Files): Likewise.
2352         * modules/uninorm/nfkc-tests (Files): Likewise.
2353         * modules/uninorm/nfkd-tests (Files): Likewise.
2354         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
2355         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
2356         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
2357         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
2358         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
2359         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
2360         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
2361         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
2362         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
2363         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
2364         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
2365         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
2366         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
2367         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
2368         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
2369         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
2370         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
2371         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
2372         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
2373         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
2374         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
2375         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
2376         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
2377         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
2378         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
2379         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
2380         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
2381         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
2382         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
2383         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
2384         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
2385         * modules/uniwidth/u8-width-tests (Files): Likewise.
2386         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
2387         * modules/uniwidth/u16-width-tests (Files): Likewise.
2388         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
2389         * modules/uniwidth/u32-width-tests (Files): Likewise.
2390         * modules/uniwidth/width-tests (Files): Likewise.
2391         * modules/unlink-tests (Files): Likewise.
2392         * modules/unsetenv-tests (Files): Likewise.
2393         * modules/usleep-tests (Files): Likewise.
2394         * modules/utimens-tests (Files): Likewise.
2395         * modules/utimensat-tests (Files): Likewise.
2396         * modules/vasnprintf-posix-tests (Files): Likewise.
2397         * modules/vasnprintf-tests (Files): Likewise.
2398         * modules/vasprintf-posix-tests (Files): Likewise.
2399         * modules/vasprintf-tests (Files): Likewise.
2400         * modules/vdprintf-posix-tests (Files): Likewise.
2401         * modules/vfprintf-posix-tests (Files): Likewise.
2402         * modules/vprintf-posix-tests (Files): Likewise.
2403         * modules/vsnprintf-posix-tests (Files): Likewise.
2404         * modules/vsnprintf-tests (Files): Likewise.
2405         * modules/vsprintf-posix-tests (Files): Likewise.
2406         * modules/wcrtomb-tests (Files): Likewise.
2407         * modules/wcsnrtombs-tests (Files): Likewise.
2408         * modules/wcsrtombs-tests (Files): Likewise.
2409         * modules/wctype-tests (Files): Likewise.
2410         * modules/wcwidth-tests (Files): Likewise.
2411         * modules/xmemdup0-tests (Files): Likewise.
2412         * modules/xprintf-posix-tests (Files): Likewise.
2413         * modules/xvasprintf-tests (Files): Likewise.
2414
2415 2009-12-24  Eric Blake  <ebb9@byu.net>
2416
2417         test-nanosleep: fix typo
2418         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
2419         patch.
2420         Reported by Bruno Haible.
2421
2422 2009-12-24  Bruno Haible  <bruno@clisp.org>
2423
2424         Reduce namespace pollution on glibc systems.
2425         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
2426         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
2427         systems.
2428         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
2429         <getopt.h> on glibc systems.
2430         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
2431         systems.
2432         * lib/fcntl.c: Include <unistd.h> here instead.
2433
2434 2009-12-24  Bruno Haible  <bruno@clisp.org>
2435
2436         * lib/stdlib.in.h (includes): Fix typo in today's commit.
2437
2438 2009-12-24  Eric Blake  <ebb9@byu.net>
2439
2440         tests: add signature checks
2441         * tests/signature.h (SIGNATURE_CHECK): New file.
2442         * modules/atexit-tests (Files): Use it.
2443         * modules/btowc-tests (Files): Likewise.
2444         * modules/canonicalize-lgpl-tests (Files): Likewise.
2445         * modules/ceilf-tests (Files): Likewise.
2446         * modules/ceill-tests (Files): Likewise.
2447         * modules/chown-tests (Files): Likewise.
2448         * modules/dprintf-posix-tests (Files): Likewise.
2449         * modules/dup2-tests (Files): Likewise.
2450         * modules/dup3-tests (Files): Likewise.
2451         * modules/duplocale-tests (Files): Likewise.
2452         * modules/fchdir-tests (Files): Likewise.
2453         * modules/fcntl-tests (Files): Likewise.
2454         * modules/fdopendir-tests (Files): Likewise.
2455         * modules/fflush-tests (Files): Likewise.
2456         * modules/flock-tests (Files): Likewise.
2457         * modules/floorf-tests (Files): Likewise.
2458         * modules/floorl-tests (Files): Likewise.
2459         * modules/fnmatch-tests (Files): Likewise.
2460         * modules/fopen-tests (Files): Likewise.
2461         * modules/fprintf-posix-tests (Files): Likewise.
2462         * modules/freopen-tests (Files): Likewise.
2463         * modules/frexp-nolibm-tests (Files): Likewise.
2464         * modules/frexp-tests (Files): Likewise.
2465         * modules/frexpl-nolibm-tests (Files): Likewise.
2466         * modules/frexpl-tests (Files): Likewise.
2467         * modules/fseek-tests (Files): Likewise.
2468         * modules/fseeko-tests (Files): Likewise.
2469         * modules/fsync-tests (Files): Likewise.
2470         * modules/ftell-tests (Files): Likewise.
2471         * modules/ftello-tests (Files): Likewise.
2472         * modules/futimens-tests (Files): Likewise.
2473         * modules/getaddrinfo-tests (Files): Likewise.
2474         * modules/getcwd-tests (Files): Likewise.
2475         * modules/getdelim-tests (Files): Likewise.
2476         * modules/getdtablesize-tests (Files): Likewise.
2477         * modules/getgroups-tests (Files): Likewise.
2478         * modules/gethostname-tests (Files): Likewise.
2479         * modules/getline-tests (Files): Likewise.
2480         * modules/getopt-posix-tests (Files): Likewise.
2481         * modules/gettimeofday-tests (Files): Likewise.
2482         * modules/glob-tests (Files): Likewise.
2483         * modules/iconv-tests (Files): Likewise.
2484         * modules/inet_ntop-tests (Files): Likewise.
2485         * modules/inet_pton-tests (Files): Likewise.
2486         * modules/isblank-tests (Files): Likewise.
2487         * modules/lchown-tests (Files): Likewise.
2488         * modules/ldexpl-tests (Files): Likewise.
2489         * modules/link-tests (Files): Likewise.
2490         * modules/linkat-tests (Files): Likewise.
2491         * modules/lseek-tests (Files): Likewise.
2492         * modules/lstat-tests (Files): Likewise.
2493         * modules/mbrtowc-tests (Files): Likewise.
2494         * modules/mbsinit-tests (Files): Likewise.
2495         * modules/mbsnrtowcs-tests (Files): Likewise.
2496         * modules/mbsrtowcs-tests (Files): Likewise.
2497         * modules/memchr-tests (Files): Likewise.
2498         * modules/memcmp-tests (Files): Likewise.
2499         * modules/memmem-tests (Files): Likewise.
2500         * modules/memrchr-tests (Files): Likewise.
2501         * modules/mkdir-tests (Files): Likewise.
2502         * modules/mkfifo-tests (Files): Likewise.
2503         * modules/mkfifoat-tests (Files): Likewise.
2504         * modules/mknod-tests (Files): Likewise.
2505         * modules/nanosleep-tests (Files): Likewise.
2506         * modules/nl_langinfo-tests (Files): Likewise.
2507         * modules/obstack-printf-tests (Files): Likewise.
2508         * modules/open-tests (Files): Likewise.
2509         * modules/openat-tests (Files): Likewise.
2510         * modules/perror-tests (Files): Likewise.
2511         * modules/pipe2-tests (Files): Likewise.
2512         * modules/poll-tests (Files): Likewise.
2513         * modules/popen-tests (Files): Likewise.
2514         * modules/posix_spawn-tests (Files): Likewise.
2515         * modules/posix_spawnp-tests (Files): Likewise.
2516         * modules/pread-tests (Files): Likewise.
2517         * modules/printf-posix-tests (Files): Likewise.
2518         * modules/pty-tests (Files): Likewise.
2519         * modules/random_r-tests (Files): Likewise.
2520         * modules/rawmemchr-tests (Files): Likewise.
2521         * modules/readlink-tests (Files): Likewise.
2522         * modules/remove-tests (Files): Likewise.
2523         * modules/rename-tests (Files): Likewise.
2524         * modules/renameat-tests (Files): Likewise.
2525         * modules/rmdir-tests (Files): Likewise.
2526         * modules/round-tests (Files): Likewise.
2527         * modules/roundf-tests (Files): Likewise.
2528         * modules/roundl-tests (Files): Likewise.
2529         * modules/select-tests (Files): Likewise.
2530         * modules/setenv-tests (Files): Likewise.
2531         * modules/sigaction-tests (Files): Likewise.
2532         * modules/sleep-tests (Files): Likewise.
2533         * modules/snprintf-posix-tests (Files): Likewise.
2534         * modules/snprintf-tests (Files): Likewise.
2535         * modules/sprintf-posix-tests (Files): Likewise.
2536         * modules/stat-tests (Files): Likewise.
2537         * modules/strcasestr-tests (Files): Likewise.
2538         * modules/strchrnul-tests (Files): Likewise.
2539         * modules/strerror-tests (Files): Likewise.
2540         * modules/strsignal-tests (Files): Likewise.
2541         * modules/strstr-tests (Files): Likewise.
2542         * modules/strtod-tests (Files): Likewise.
2543         * modules/strverscmp-tests (Files): Likewise.
2544         * modules/symlink-tests (Files): Likewise.
2545         * modules/symlinkat-tests (Files): Likewise.
2546         * modules/times-tests (Files): Likewise.
2547         * modules/trunc-tests (Files): Likewise.
2548         * modules/truncf-tests (Files): Likewise.
2549         * modules/truncl-tests (Files): Likewise.
2550         * modules/tsearch-tests (Files): Likewise.
2551         * modules/uname-tests (Files): Likewise.
2552         * modules/unlink-tests (Files): Likewise.
2553         * modules/unsetenv-tests (Files): Likewise.
2554         * modules/usleep-tests (Files): Likewise.
2555         * modules/utimensat-tests (Files): Likewise.
2556         * modules/vasprintf-tests (Files): Likewise.
2557         * modules/vdprintf-posix-tests (Files): Likewise.
2558         * modules/vfprintf-posix-tests (Files): Likewise.
2559         * modules/vprintf-posix-tests (Files): Likewise.
2560         * modules/vsnprintf-posix-tests (Files): Likewise.
2561         * modules/vsnprintf-tests (Files): Likewise.
2562         * modules/vsprintf-posix-tests (Files): Likewise.
2563         * modules/wcrtomb-tests (Files): Likewise.
2564         * modules/wcsnrtombs-tests (Files): Likewise.
2565         * modules/wcsrtombs-tests (Files): Likewise.
2566         * modules/wcwidth-tests (Files): Likewise.
2567         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
2568         * tests/test-isinf.c (isinf): Likewise.
2569         * tests/test-isnan.c (isnan): Likewise.
2570         * tests/test-signbit.c (signbit): Likewise.
2571         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
2572         declaration, either as macro or with correct signature.
2573         (select): Ensure function under test is declared with correct
2574         signature in correct header.
2575         * tests/test-atexit.c (atexit): Likewise.
2576         * tests/test-btowc.c (btowc): Likewise.
2577         * tests/test-canonicalize-lgpl.c (realpath)
2578         (canonicalize_file_name): Likewise.
2579         * tests/test-ceilf1.c (ceilf): Likewise.
2580         * tests/test-ceill.c (ceill): Likewise.
2581         * tests/test-chown.c (chown): Likewise.
2582         * tests/test-dprintf-posix.c (dprintf): Likewise.
2583         * tests/test-dup2.c (dup2): Likewise.
2584         * tests/test-dup3.c (dup3): Likewise.
2585         * tests/test-duplocale.c (duplocale): Likewise.
2586         * tests/test-fchdir.c (fchdir): Likewise.
2587         * tests/test-fchownat.c (fchownat): Likewise.
2588         * tests/test-fcntl.c (fcntl): Likewise.
2589         * tests/test-fdopendir.c (fdopendir): Likewise.
2590         * tests/test-fflush.c (fflush): Likewise.
2591         * tests/test-flock.c (flock): Likewise.
2592         * tests/test-floorf1.c (floorf): Likewise.
2593         * tests/test-floorl.c (floorl): Likewise.
2594         * tests/test-fnmatch.c (fnmatch): Likewise.
2595         * tests/test-fopen.c (fopen): Likewise.
2596         * tests/test-fprintf-posix.c (fprintf): Likewise.
2597         * tests/test-freopen.c (freopen): Likewise.
2598         * tests/test-frexp.c (frexp): Likewise.
2599         * tests/test-frexpl.c (frexpl): Likewise.
2600         * tests/test-fseek.c (fseek): Likewise.
2601         * tests/test-fseeko.c (fseeko): Likewise.
2602         * tests/test-fstatat.c (fstatat): Likewise.
2603         * tests/test-fsync.c (fsync): Likewise.
2604         * tests/test-ftell.c (ftell): Likewise.
2605         * tests/test-ftello.c (ftello): Likewise.
2606         * tests/test-futimens.c (futimens): Likewise.
2607         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
2608         (gai_strerror): Likewise.
2609         * tests/test-getcwd.c (getcwd): Likewise.
2610         * tests/test-getdelim.c (getdelim): Likewise.
2611         * tests/test-getdtablesize.c (getdtablesize): Likewise.
2612         * tests/test-getgroups.c (getgroups): Likewise.
2613         * tests/test-gethostname.c (gethostname): Likewise.
2614         * tests/test-getline.c (getline): Likewise.
2615         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
2616         Likewise.
2617         * tests/test-gettimeofday.c (gettimeofday): Likewise.
2618         * tests/test-glob.c (glob, globfree): Likewise.
2619         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
2620         * tests/test-inet_ntop.c (inet_ntop): Likewise.
2621         * tests/test-inet_pton.c (inet_pton): Likewise.
2622         * tests/test-isblank.c (isblank): Likewise.
2623         * tests/test-lchown.c (lchown): Likewise.
2624         * tests/test-ldexpl.c (ldexpl): Likewise.
2625         * tests/test-link.c (link): Likewise.
2626         * tests/test-linkat.c (linkat): Likewise.
2627         * tests/test-lseek.c (lseek): Likewise.
2628         * tests/test-lstat.c (lstat): Likewise.
2629         * tests/test-mbrtowc.c (mbrtowc): Likewise.
2630         * tests/test-mbsinit.c (mbsinit): Likewise.
2631         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
2632         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
2633         * tests/test-memchr.c (memchr): Likewise.
2634         * tests/test-memcmp.c (memcmp): Likewise.
2635         * tests/test-memmem.c (memmem): Likewise.
2636         * tests/test-memrchr.c (memrchr): Likewise.
2637         * tests/test-mkdir.c (mkdir): Likewise.
2638         * tests/test-mkdirat.c (mkdirat): Likewise.
2639         * tests/test-mkfifo.c (mkfifo): Likewise.
2640         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
2641         * tests/test-mknod.c (mknod): Likewise.
2642         * tests/test-nanosleep.c (nanosleep): Likewise.
2643         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
2644         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
2645         Likewise.
2646         * tests/test-open.c (open): Likewise.
2647         * tests/test-openat.c (openat): Likewise.
2648         * tests/test-perror.c (perror): Likewise.
2649         * tests/test-pipe2.c (pipe2): Likewise.
2650         * tests/test-poll.c (poll): Likewise.
2651         * tests/test-popen.c (popen, pclose): Likewise.
2652         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
2653         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
2654         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
2655         (posix_spawn_file_actions_destroy)
2656         (posix_spawn_file_actions_addclose)
2657         (posix_spawn_file_actions_addopen)
2658         (posix_spawn_file_actions_adddup2): Likewise.
2659         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
2660         * tests/test-pread.c (pread): Likewise.
2661         * tests/test-printf-posix.c (printf): Likewise.
2662         * tests/test-pty.c (openpty, forkpty): Likewise.
2663         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
2664         (random_r): Likewise.
2665         * tests/test-rawmemchr.c (rawmemchr): Likewise.
2666         * tests/test-readlink.c (readlink): Likewise.
2667         * tests/test-remove.c (remove): Likewise.
2668         * tests/test-rename.c (rename): Likewise.
2669         * tests/test-renameat.c (renameat): Likewise.
2670         * tests/test-rmdir.c (rmdir): Likewise.
2671         * tests/test-round1.c (round): Likewise.
2672         * tests/test-roundf1.c (roundf): Likewise.
2673         * tests/test-roundl.c (roundl): Likewise.
2674         * tests/test-setenv.c (setenv): Likewise.
2675         * tests/test-sigaction.c (sigaction): Likewise.
2676         * tests/test-sleep.c (sleep): Likewise.
2677         * tests/test-snprintf.c (snprintf): Likewise.
2678         * tests/test-sprintf-posix.c (sprintf): Likewise.
2679         * tests/test-stat.c (stat): Likewise.
2680         * tests/test-stpncpy.c (stpncpy): Likewise.
2681         * tests/test-strcasestr.c (strcasestr): Likewise.
2682         * tests/test-strchrnul.c (strchrnul): Likewise.
2683         * tests/test-strerror.c (strerror): Likewise.
2684         * tests/test-strsignal.c (strsignal): Likewise.
2685         * tests/test-strstr.c (strstr): Likewise.
2686         * tests/test-strtod.c (strtod): Likewise.
2687         * tests/test-strverscmp.c (strverscmp): Likewise.
2688         * tests/test-symlink.c (symlink): Likewise.
2689         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
2690         * tests/test-times.c (times): Likewise.
2691         * tests/test-trunc1.c (trunc): Likewise.
2692         * tests/test-truncf1.c (truncf): Likewise.
2693         * tests/test-truncl.c (truncl): Likewise.
2694         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
2695         Likewise.
2696         * tests/test-uname.c (uname): Likewise.
2697         * tests/test-unlink.c (unlink): Likewise.
2698         * tests/test-unlinkat.c (unlinkat): Likewise.
2699         * tests/test-unsetenv.c (unsetenv): Likewise.
2700         * tests/test-usleep.c (usleep): Likewise.
2701         * tests/test-utimensat.c (utimensat): Likewise.
2702         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
2703         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
2704         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
2705         * tests/test-vprintf-posix.c (vprintf): Likewise.
2706         * tests/test-vsnprintf.c (vsnprintf): Likewise.
2707         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
2708         * tests/test-wcrtomb.c (wcrtomb): Likewise.
2709         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
2710         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
2711         * tests/test-wcwidth.c (wcwidth): Likewise.
2712
2713         build: pull in conditional headers during GNULIB_POSIXCHECK
2714         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
2715         definitions from any conditionally-included headers.
2716         * lib/stdlib.in.h (includes): Likewise.
2717         * lib/unistd.in.h (includes): Likewise.
2718
2719 2009-12-24  Bruno Haible  <bruno@clisp.org>
2720
2721         * tests/test-argv-iter.c: Include header file being tested immediately
2722         after config.h.
2723         * tests/test-base64.c: Likewise.
2724         * tests/test-flock.c: Likewise.
2725         * tests/test-fsync.c: Likewise.
2726         * tests/test-getdate.c: Likewise.
2727         * tests/test-getndelim2.c: Likewise.
2728         * tests/test-isfinite.c: Likewise.
2729         * tests/test-isinf.c: Likewise.
2730         * tests/test-strerror.c: Likewise.
2731         * tests/test-strsignal.c: Likewise.
2732
2733 2009-12-23  Eric Blake  <ebb9@byu.net>
2734
2735         unistd: work around cygwin bug
2736         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
2737         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
2738         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
2739
2740 2009-12-23  Bruno Haible  <bruno@clisp.org>
2741
2742         localename: More tests.
2743         * tests/test-localename.c (SIZEOF): New macro.
2744         (categories): New variable.
2745         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
2746         test_locale_name_default): Add test w.r.t. thread locale.
2747         (test_locale_name_thread): New function.
2748         (main): Invoke it.
2749
2750         localename: Make aware of thread locale.
2751         * lib/localename.h (gl_locale_name_thread): New declaration.
2752         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
2753         behaviour with respect to thread locale.
2754         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
2755         <langinfo.h>, glthread/lock.h.
2756         (SIZE_BITS): New macro.
2757         (string_hash): New function.
2758         (struct hash_node): New type.
2759         (HASH_TABLE_SIZE): New macro.
2760         (struniq_hash_table, struniq_lock): New variables.
2761         (struniq): New function.
2762         (gl_locale_name_thread): New function.
2763         (gl_locale_name): Invoke it.
2764         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
2765         * modules/localename (Depends-on): Add lock.
2766         Reported by Mike Gran <spk121@yahoo.com>.
2767
2768 2009-12-23  Eric Blake  <ebb9@byu.net>
2769
2770         va-args: new module
2771         * modules/va-args: New file.
2772         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
2773         * MODULES.html.sh (Core language properties): Mention it.
2774
2775         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
2776         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
2777         named alias for __attribute__((__unused__)).
2778         * lib/chown.c: Update client.
2779         * lib/fchmodat.c: Likewise.
2780         * lib/fts.c: Likewise.
2781         * lib/getdate.y: Likewise.
2782         * lib/getgroups.c: Likewise.
2783         * lib/getopt.c: Likewise.
2784         * lib/getugroups.c: Likewise.
2785         * lib/mkdir.c: Likewise.
2786         * lib/mkfifo.c: Likewise.
2787         * lib/mkfifoat.c: Likewise.
2788         * lib/mknod.c: Likewise.
2789         * lib/mknodat.c: Likewise.
2790         * lib/readlink.c: Likewise.
2791         * lib/se-context.in.h: Likewise.
2792         * lib/se-selinux.in.h: Likewise.
2793         * lib/sockets.c: Likewise.
2794         * lib/symlink.c: Likewise.
2795         * lib/symlinkat.c: Likewise.
2796         * lib/unicodeio.c: Likewise.
2797         * lib/unistr.h: Likewise.
2798         * tests/test-areadlink.c: Likewise.
2799         * tests/test-areadlinkat.c: Likewise.
2800         * tests/test-filenamecat.c: Likewise.
2801         * tests/test-fseeko.c: Likewise.
2802         * tests/test-ftello.c: Likewise.
2803         * tests/test-getdate.c: Likewise.
2804         * tests/test-getgroups.c: Likewise.
2805         * tests/test-gethostname.c: Likewise.
2806         * tests/test-quotearg.c: Likewise.
2807         * tests/test-version-etc.c: Likewise.
2808         * tests/test-xalloc-die.c: Likewise.
2809         * tests/test-xfprintf-posix.c: Likewise.
2810         * tests/test-xprintf-posix.c: Likewise.
2811         * tests/test-xvasprintf.c: Likewise.
2812
2813         tests: avoid compiler warnings
2814         * tests/test-fcntl.c (main): Delete unused parameters.
2815         * tests/test-freopen-safer.c (main): Likewise.
2816         * tests/test-xalloc-die.c (main): Mark unused parameters.
2817         * tests/test-fseeko.c (main): Likewise.
2818         * tests/test-ftello.c (main): Likewise.
2819         * tests/test-nanosleep.c (main): Avoid declaration warning.
2820         * tests/test-sleep.c (main): Likewise.
2821         * tests/test-unsetenv.c (main): Silence warning about string
2822         literal.
2823         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2824
2825 2009-12-23  Bruno Haible  <bruno@clisp.org>
2826
2827         * tests/test-localename.c (test_locale_name): New function, extracted
2828         from main. Also test mixed situations.
2829         (test_locale_name_posix, test_locale_name_environ,
2830         test_locale_name_default): New functions.
2831         (main): Invoke them all.
2832         * modules/localename-tests (configure.ac): Test for newlocale.
2833
2834 2009-12-23  Bruno Haible  <bruno@clisp.org>
2835
2836         unistd: Ensure getcwd gets declared before being overridden.
2837         * lib/unistd.in.h: Conditionally include <io.h>.
2838
2839 2009-12-22  Bruno Haible  <bruno@clisp.org>
2840
2841         wchar: Diagnose broken combination of glibc and gcc versions and flags.
2842         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
2843         (gl_WCHAR_H): Invoke it.
2844         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
2845         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
2846         Reported by Karl Berry <karl@freefriends.org>.
2847
2848 2009-12-22  Eric Blake  <ebb9@byu.net>
2849
2850         math, unistd: avoid redundant includes
2851         * lib/math.in.h (isnan): No need to re-include <math.h>.
2852         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
2853
2854         getsubopt: work around cygwin bug
2855         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
2856         avoid conflicting with system getsubopt.
2857         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
2858         bug.
2859
2860         getopt: synchronize from glibc
2861         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
2862         parameter order.  Adjust all callers.
2863         (_getopt_internal_r, main): Adjust quoting in error messages.
2864         Drop considerations for outdated POSIX 1003.2 error message.
2865         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
2866         callers.
2867         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
2868
2869         test-getopt: test stderr behavior
2870         * modules/getopt-posix-tests (Depends-on): Add dup2.
2871         * tests/test-getopt.c (ASSERT): Avoid stderr.
2872         (main): Move stderr to a temporary file.
2873         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
2874         Instead, add parameter to inform caller if output occurred.
2875         (test_getopt): Adjust all existing tests to expect silence, and
2876         add new tests of leading ":".
2877         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
2878         glibc shortcomings with leading "-:" or "+:" in optstring.
2879         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2880         Likewise.
2881         * doc/posix-functions/getopt.texi (getopt): Likewise.
2882
2883         test-getopt: enhance test
2884         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
2885         supports optind=0.
2886         * tests/test-getopt.c (OPTIND_MIN): Move...
2887         * tests/test-getopt.h (OPTIND_MIN): ...here.
2888         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
2889         Require that optind=0 works, since modern BSD supports it in
2890         addition to optreset, and since coreutils expects it.
2891         (test_getopt_long_only): New test.
2892         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
2893         glibc shortcomings with 'W;', and enforcement of optind=0.
2894         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2895         Likewise.
2896
2897 2009-12-21  Bruno Haible  <bruno@clisp.org>
2898
2899         localename: Improvements for MacOS X and Cygwin.
2900         * lib/localename.h (gl_locale_name_environ): New declaration.
2901         * lib/localename.c (gl_locale_name_environ): New function, extracted from
2902         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
2903         (gl_locale_name_posix): Invoke it.
2904         (gl_locale_name_default): Add comments. Use Windows native API also on
2905         Cygwin.
2906
2907 2009-12-21  Bruno Haible  <bruno@clisp.org>
2908
2909         Update list of Win32 locale ids.
2910         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
2911         (LANG_SAMI): Renamed from LANG_SAAMI.
2912         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
2913         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
2914         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
2915         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
2916         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
2917         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
2918         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
2919         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
2920         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
2921         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
2922         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
2923         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
2924         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
2925         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
2926         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
2927         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
2928         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
2929         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
2930         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
2931         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
2932         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
2933         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
2934         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
2935         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
2936         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
2937         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
2938         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
2939         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
2940         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
2941         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
2942         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
2943         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
2944         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
2945         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
2946         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
2947         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
2948         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
2949         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
2950         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
2951         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
2952         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
2953         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
2954         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
2955         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
2956         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
2957         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
2958         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
2959         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
2960         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
2961         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
2962         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
2963         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
2964         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
2965         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
2966         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
2967         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
2968         Add more languages and countries for Sami, Sorbian. Add more countries
2969         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
2970         for Pashto. Change country for Syriac, Tswana.
2971
2972 2009-12-21  Eric Blake  <ebb9@byu.net>
2973
2974         test-utimens: avoid spurious failure
2975         * tests/test-chown.h (nap): Factor...
2976         * tests/nap.h: ...into new file.
2977         * tests/test-lchown.h (nap): Avoid duplication.
2978         * tests/test-utimens-common.h (nap): Use shared implementation,
2979         necessary on file systems with 1-second resolution.
2980         * modules/chown-tests (Files): Include new file.
2981         * modules/fdutimensat-tests (Files): Likewise.
2982         * modules/futimens-tests (Files): Likewise.
2983         * modules/lchown-tests (Files): Likewise.
2984         * modules/openat-tests (Files): Likewise.
2985         * modules/utimens-tests (Files): Likewise.
2986         * modules/utimensat-tests (Files): Likewise.
2987
2988 2009-12-19  Eric Blake  <ebb9@byu.net>
2989
2990         futimens, utimensat: work around Linux bug
2991         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
2992         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2993         * lib/utimensat.c (rpl_utimensat): Work around it.
2994         * lib/futimens.c (rpl_futimens): Adjust comment.
2995
2996         utimens: work around Linux ctime bug
2997         * lib/utimens.c (detect_ctime_bug): New helper function.
2998         (update_timespec): Differentiate between workaround needed for
2999         this bug vs. what is needed for systems that lack utimensat.
3000         (fdutimens, lutimens): Work around bug.
3001
3002         utimens: check for ctime update
3003         * tests/test-utimens-common.h (check_ctime): Define.
3004         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
3005         * tests/test-futimens.h (test_futimens): Likewise.
3006         * tests/test-lutimens.h (test_lutimens): Likewise.
3007         * doc/posix-functions/futimens.texi (futimens): Document the bug.
3008         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
3009
3010 2009-12-19  Bruno Haible  <bruno@clisp.org>
3011
3012         dprintf-posix: Check against memory leak fixed on 2009-12-15.
3013         * tests/test-dprintf-posix2.sh: New file.
3014         * tests/test-dprintf-posix2.c: New file.
3015         * modules/dprintf-posix-tests (Files): Add them.
3016         (configure.ac): Check for getrlimit and setrlimit.
3017         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
3018
3019 2009-12-19  Bruno Haible  <bruno@clisp.org>
3020
3021         fprintf-posix: Check against memory leak fixed on 2009-12-15.
3022         * tests/test-fprintf-posix3.sh: New file.
3023         * tests/test-fprintf-posix3.c: New file.
3024         * modules/fprintf-posix-tests (Files): Add them.
3025         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
3026
3027 2009-12-19  Eric Blake  <ebb9@byu.net>
3028
3029         dirfd: fix prototype
3030         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
3031         * lib/dirfd.c (dirfd): Likewise.
3032
3033         canonicalize: reduce memory usage
3034         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
3035         allocation to size.
3036         Reported by Solar Designer <solar@openwall.com>.
3037
3038 2009-12-19  Bruno Haible  <bruno@clisp.org>
3039
3040         New module attribute 'Applicability'.
3041         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
3042         * gnulib-tool: New option --extract-applicability.
3043         (func_usage): Document it.
3044         (sed_extract_prog): Recognize it.
3045         (func_get_applicability): New function.
3046         (func_import): Generalize handling of 'link-warning' module.
3047         * modules/link-warning (Applicability): New section.
3048         * modules/arg-nonnull (Applicability): New section.
3049         Repoted by Simon Josefsson <simon@josefsson.org>.
3050
3051 2009-12-19  Bruno Haible  <bruno@clisp.org>
3052
3053         fflush: tweak
3054         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
3055         * lib/fseeko.c (rpl_fseeko): Likewise.
3056
3057 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
3058
3059         * lib/gl_list.h: Fix typo in comment.
3060
3061 2009-12-16  Eric Blake  <ebb9@byu.net>
3062
3063         fcntl: use to simplify other modules
3064         * modules/cloexec (Depends-on): Add fcntl.
3065         * modules/fchdir (Depends-on): Likewise.
3066         * modules/fd-safer-flag (Depends-on): Likewise.
3067         * modules/unistd-safer (Depends-on): Likewise.
3068         * modules/dup3 (configure.ac): Set module indicator.
3069         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
3070         missing.
3071         * lib/fchdir.c (_gl_register_dup): Fix comment.
3072         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
3073         * lib/dup-safer.c (dup_safer): Likewise.
3074         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
3075         * lib/dup3.c (dup3): Likewise.
3076         * tests/test-fchdir.c (main): Enhance test.
3077         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
3078
3079         fcntl: port portions of fcntl to mingw
3080         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
3081         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
3082         replacement for mingw.
3083         * modules/fcntl (Description): Update.
3084         (Depends-on): Add dup2.
3085         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
3086         * modules/fcntl-h (Makefile.am): Substitute it.
3087         * lib/fcntl.in.h (fcntl): Update declaration.
3088         (F_DUPFD, F_GETFD): New macros, when needed.
3089         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
3090         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
3091         * tests/test-fcntl.c (check_flags, main): Enhance test for items
3092         we now guarantee.
3093
3094         fcntl: work around cygwin bug in F_DUPFD
3095         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
3096         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
3097         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
3098         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
3099         * doc/posix-functions/fcntl.texi (fcntl): Document it.
3100
3101         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
3102         * modules/fcntl (Files): List new files.
3103         (configure.ac): Run a test.
3104         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
3105         * lib/fcntl.c (rpl_fcntl): Likewise.
3106         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
3107         (gl_FCNTL_H): Always replace fcntl.h.
3108         * modules/fcntl-h (Makefile.am): Substitute witnesses.
3109         * lib/fcntl.in.h (fcntl): Declare replacement.
3110         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
3111         needed, plus a witness.
3112         * doc/posix-functions/fcntl.texi (fcntl): Document this.
3113         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
3114         * tests/test-fcntl.c: New file.
3115         * modules/fcntl-tests: Likewise.
3116
3117         binary-io: avoid potential compilation warning
3118         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
3119         directives.
3120
3121         fflush: avoid compilation error on NetBSD
3122         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
3123         between off_t and fpos_t, since the latter is sometimes a struct.
3124         * lib/fseeko.c (rpl_fseeko): Likewise.
3125         Reported by Alexander Nasonov <alnsn@yandex.ru>.
3126
3127 2009-12-15  Eric Blake  <ebb9@byu.net>
3128
3129         fcntl-h, stdio, sys_ioctl: fix declarations
3130         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
3131         function must not take arguments.
3132         * lib/sys_ioctl.in.h (ioctl): Likewise.
3133         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
3134         (open): Add a link warning.
3135
3136 2009-12-15  Jim Meyering  <meyering@redhat.com>
3137
3138         areadlink, areadlink-with-size: relax license to LGPLv2+
3139         * modules/areadlink (License): Relax to LGPLv2+.
3140         * modules/areadlink-with-size (License): Likewise.
3141
3142 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
3143             Bruno Haible  <bruno@clisp.org>
3144
3145         *printf: Fix memory leak.
3146         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
3147         * lib/vfprintf.c (vfprintf): Likewise.
3148         * lib/dprintf.c (dprintf): Likewise.
3149         * lib/vdprintf.c (vdprintf): Likewise.
3150
3151 2009-12-14  Eric Blake  <ebb9@byu.net>
3152
3153         accept4: adjust module dependencies
3154         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
3155
3156         utimens: one more try at avoiding compiler warning
3157         * lib/utimens.c (lutimens): Lower scope of result.
3158
3159 2009-12-13  Bruno Haible  <bruno@clisp.org>
3160
3161         Move the malloc checking from module 'list' to new module 'xlist'.
3162         * modules/xlist: New file.
3163         * lib/gl_xlist.h: New file.
3164         * lib/gl_xlist.c: New file.
3165         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
3166         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
3167         gl_list_add_last, gl_list_add_before, gl_list_add_after,
3168         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
3169         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
3170         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
3171         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
3172         gl_sortedlist_nx_add): New declarations.
3173         (struct gl_list_implementation): Rename and change methods accordingly.
3174         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
3175         (gl_list_nx_create): Renamed from gl_list_create.
3176         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
3177         (gl_list_nx_set_at): Renamed from gl_list_set_at.
3178         (gl_list_nx_add_first): Renamed from gl_list_add_first.
3179         (gl_list_nx_add_last): Renamed from gl_list_add_last.
3180         (gl_list_nx_add_before): Renamed from gl_list_add_before.
3181         (gl_list_nx_add_after): Renamed from gl_list_add_after.
3182         (gl_list_nx_add_at): Renamed from gl_list_add_at.
3183         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
3184         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
3185         gl_list_create_empty.
3186         (gl_list_nx_create): Renamed from gl_list_create.
3187         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
3188         (gl_list_nx_set_at): Renamed from gl_list_set_at.
3189         (gl_list_nx_add_first): Renamed from gl_list_add_first.
3190         (gl_list_nx_add_last): Renamed from gl_list_add_last.
3191         (gl_list_nx_add_before): Renamed from gl_list_add_before.
3192         (gl_list_nx_add_after): Renamed from gl_list_add_after.
3193         (gl_list_nx_add_at): Renamed from gl_list_add_at.
3194         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
3195         * lib/gl_array_list.c: Don't include xalloc.h.
3196         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
3197         NULL upon out-of-memory.
3198         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
3199         out-of-memory.
3200         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
3201         Change return type to 'int'.
3202         (gl_array_nx_set_at): Renamed from gl_array_set_at.
3203         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
3204         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
3205         upon out-of-memory.
3206         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
3207         upon out-of-memory.
3208         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
3209         upon out-of-memory.
3210         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
3211         upon out-of-memory.
3212         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
3213         out-of-memory.
3214         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
3215         Update.
3216         (gl_array_list_implementation): Update.
3217         * lib/gl_carray_list.c: Don't include xalloc.h.
3218         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
3219         Return NULL upon out-of-memory.
3220         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
3221         out-of-memory.
3222         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
3223         Change return type to 'int'.
3224         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
3225         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
3226         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
3227         upon out-of-memory.
3228         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
3229         upon out-of-memory.
3230         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
3231         out-of-memory.
3232         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
3233         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
3234         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
3235         Update.
3236         (gl_carray_list_implementation): Update.
3237         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
3238         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
3239         gl_linked_create_empty. Return NULL upon out-of-memory.
3240         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
3241         out-of-memory.
3242         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
3243         Change return type to 'int'. Return -1 upon out-of-memory.
3244         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
3245         out-of-memory.
3246         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
3247         upon out-of-memory.
3248         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
3249         upon out-of-memory.
3250         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
3251         NULL upon out-of-memory.
3252         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
3253         upon out-of-memory.
3254         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
3255         out-of-memory.
3256         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
3257         Update.
3258         * lib/gl_linked_list.c: Don't include xalloc.h.
3259         (gl_linked_list_implementation): Update.
3260         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
3261         (add_to_bucket): Change return type to 'int'.
3262         (gl_linkedhash_list_implementation): Update.
3263         * lib/gl_anytree_list1.h (free_subtree): New function.
3264         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
3265         gl_tree_create_empty. Return NULL upon out-of-memory.
3266         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
3267         Change return type to 'int'. Return -1 upon out-of-memory.
3268         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
3269         out-of-memory.
3270         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
3271         (gl_tree_remove_node): New function, moved here from
3272         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
3273         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
3274         Update.
3275         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
3276         malloc, not xmalloc. Return NULL upon out-of-memory.
3277         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
3278         out-of-memory.
3279         (gl_tree_remove_node_from_tree): New function, extracted from
3280         gl_tree_remove_node.
3281         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
3282         upon out-of-memory.
3283         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
3284         out-of-memory.
3285         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
3286         upon out-of-memory.
3287         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
3288         upon out-of-memory.
3289         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
3290         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
3291         not xmalloc. Return NULL upon out-of-memory.
3292         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
3293         out-of-memory.
3294         (gl_tree_remove_node_from_tree): New function, extracted from
3295         gl_tree_remove_node.
3296         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
3297         upon out-of-memory.
3298         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
3299         out-of-memory.
3300         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
3301         upon out-of-memory.
3302         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
3303         upon out-of-memory.
3304         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
3305         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
3306         gl_anytree_list1.h before gl_anyavltree_list2.h.
3307         (gl_avltree_list_implementation): Update.
3308         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
3309         gl_anytree_list1.h before gl_anyavltree_list2.h.
3310         (gl_rbtree_list_implementation): Update.
3311         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
3312         Change return type to 'int'. Return -1 upon out-of-memory. Use
3313         __builtin_expect.
3314         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
3315         (gl_avltreehash_list_implementation): Update.
3316         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
3317         (gl_rbtreehash_list_implementation): Update.
3318         * modules/array-list (Depends-on): Remove xalloc.
3319         * modules/carray-list (Depends-on): Likewise.
3320         * modules/linked-list (Depends-on): Likewise.
3321         * modules/linkedhash-list (Depends-on): Likewise.
3322         * modules/avltree-list (Depends-on): Likewise.
3323         * modules/rbtree-list (Depends-on): Likewise.
3324         * modules/avltreehash-list (Depends-on): Likewise.
3325         * modules/rbtreehash-list (Depends-on): Likewise.
3326
3327         * modules/xsublist: New file.
3328         * lib/gl_xsublist.h: New file.
3329         * lib/gl_xsublist.c: New file.
3330         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
3331         (gl_sublist_nx_create): New declaration.
3332         * lib/gl_sublist.c: Don't include xalloc.h.
3333         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
3334         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
3335         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
3336         Change return type to 'int'. Return -1 upon out-of-memory.
3337         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
3338         upon out-of-memory.
3339         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
3340         NULL upon out-of-memory.
3341         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
3342         upon out-of-memory.
3343         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
3344         NULL upon out-of-memory.
3345         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
3346         NULL upon out-of-memory.
3347         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
3348         upon out-of-memory.
3349         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
3350         (gl_sublist_list_implementation): Update.
3351         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
3352         upon out-of-memory.
3353         * modules/sublist (Depends-on): Remove xalloc.
3354
3355         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
3356         * tests/test-carray_list.c: Likewise.
3357         * tests/test-linked_list.c: Likewise.
3358         * tests/test-linkedhash_list.c: Likewise.
3359         * tests/test-avltree_list.c: Likewise.
3360         * tests/test-rbtree_list.c: Likewise.
3361         * tests/test-avltreehash_list.c: Likewise.
3362         * tests/test-rbtreehash_list.c: Likewise.
3363         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
3364         * modules/carray-list-tests (Makefile.am): Likewise.
3365         * modules/linked-list-tests (Makefile.am): Likewise.
3366         * modules/linkedhash-list-tests (Makefile.am): Likewise.
3367         * modules/avltree-list-tests (Makefile.am): Likewise.
3368         * modules/rbtree-list-tests (Makefile.am): Likewise.
3369         * modules/avltreehash-list-tests (Makefile.am): Likewise.
3370         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
3371
3372         * NEWS: Mention the changes.
3373
3374         * lib/clean-temp.c: Include gl_xlist.h.
3375         * modules/clean-temp (Depends-on): Add xlist.
3376
3377         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
3378         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
3379
3380         * tests/test-array_oset.c: Include gl_xlist.h.
3381         * modules/array-oset-tests (Depends-on): Add xlist.
3382
3383         Reported by José E. Marchesi <jemarch@gnu.org>.
3384
3385 2009-12-13  Bruno Haible  <bruno@clisp.org>
3386
3387         Move the malloc checking from module 'oset' to new module 'xoset'.
3388         * modules/xoset: New file.
3389         * lib/gl_xoset.h: New file.
3390         * lib/gl_xoset.c: New file.
3391         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
3392         declarations.
3393         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
3394         (struct gl_oset_implementation): Rename and change methods accordingly.
3395         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
3396         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
3397         'int'. Mark as __warn_unused_result__.
3398         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
3399         gl_oset_create_empty.
3400         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
3401         'int'.
3402         * lib/gl_array_oset.c: Don't include xalloc.h.
3403         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
3404         malloc, not xmalloc.
3405         (grow): Change return type to 'int'. Don't call xalloc_die.
3406         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
3407         to 'int'.
3408         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
3409         'int'.
3410         (gl_array_oset_implementation): Update.
3411         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
3412         gl_tree_create_empty.
3413         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
3414         'int'.
3415         * lib/gl_avltree_oset.c: Don't include xalloc.h.
3416         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
3417         xmalloc.
3418         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
3419         not xmalloc.
3420         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
3421         xmalloc.
3422         (gl_avltree_oset_implementation): Update.
3423         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
3424         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
3425         xmalloc.
3426         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
3427         not xmalloc.
3428         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
3429         xmalloc.
3430         (gl_rbtree_oset_implementation): Update.
3431         * modules/array-oset (Depends-on): Remove xalloc.
3432         * modules/avltree-oset (Depends-on): Likewise.
3433         * modules/rbtree-oset (Depends-on): Likewise.
3434         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
3435         * tests/test-avltree_oset.c: Likewise.
3436         * tests/test-rbtree_oset.c: Likewise.
3437         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
3438         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
3439         * modules/rbtree-oset-tests (Makefile.am): Likewise.
3440         * NEWS: Mention the change.
3441
3442 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
3443
3444         maint.mk: allow a project to override release-prep commands
3445         * top/maint.mk (alpha, beta, stable): Move release-preparatory
3446         commands into a new rule.
3447         (release-prep): New rule.
3448         (release-prep-hook): New overridable variable.
3449
3450 2009-12-13  Bruno Haible  <bruno@clisp.org>
3451
3452         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
3453
3454 2009-12-13  Jim Meyering  <meyering@redhat.com>
3455
3456         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
3457         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
3458
3459 2009-12-12  Bruno Haible  <bruno@clisp.org>
3460
3461         duplocale: Tweak.
3462         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
3463
3464 2009-12-12  Karl Berry  <karl@gnu.org>
3465
3466         * config/srclist.txt (strtoll.c): tab changes, no more sync.
3467
3468 2009-12-12  Bruno Haible  <bruno@clisp.org>
3469
3470         * m4/po.m4: Undo incorrect untabification.
3471
3472 2009-12-12  Bruno Haible  <bruno@clisp.org>
3473
3474         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
3475         * modules/c-strtod (Depends-on): Add locale.
3476         * modules/c-strtold (Depends-on): Likewise.
3477
3478 2009-12-12  Bruno Haible  <bruno@clisp.org>
3479
3480         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
3481
3482 2009-12-11  Eric Blake  <ebb9@byu.net>
3483
3484         setenv: relax requirement in light of POSIX ruling
3485         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
3486         not NULL.
3487         * tests/test-setenv.c (main): Relax test.
3488         * tests/test-unsetenv.c (main): Likewise.
3489         * doc/posix-functions/setenv.texi (setenv): Document this.
3490         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
3491
3492 2009-12-11  Bruno Haible  <bruno@clisp.org>
3493
3494         New module 'fd-safer-flag'.
3495         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
3496         * lib/dup-safer.c (dup_safer_flag): Remove function.
3497         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
3498         * lib/fd-safer.c (fd_safer_flag): Remove function.
3499         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
3500         * modules/cloexec (configure.ac): Drop indicator macro.
3501         * modules/fd-safer-flag: New file.
3502         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
3503         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
3504         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
3505
3506 2009-12-11  Bruno Haible  <bruno@clisp.org>
3507
3508         Tests for module 'nl_langinfo'.
3509         * modules/nl_langinfo-tests: New file.
3510         * tests/test-nl_langinfo.sh: New file.
3511         * tests/test-nl_langinfo.c: New file.
3512
3513         New module 'nl_langinfo'.
3514         * lib/nl_langinfo.c: New file.
3515         * m4/nl_langinfo.m4: New file.
3516         * modules/nl_langinfo: New file.
3517         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
3518
3519 2009-12-11  Bruno Haible  <bruno@clisp.org>
3520
3521         Tests for module 'langinfo'.
3522         * modules/langinfo-tests: New file.
3523         * tests/test-langinfo.c: New file.
3524
3525         New module 'langinfo'.
3526         * lib/langinfo.in.h: New file.
3527         * m4/langinfo_h.m4: New file.
3528         * modules/langinfo: New file.
3529         * doc/posix-headers/langinfo.texi: Mention the new module.
3530
3531 2009-12-11  Bruno Haible  <bruno@clisp.org>
3532
3533         * lib/config.charset: Untabify.
3534
3535 2009-12-11  Bruno Haible  <bruno@clisp.org>
3536
3537         * modules/unistd-safer (configure.ac): Drop indicator macro.
3538
3539 2009-12-11  Bruno Haible  <bruno@clisp.org>
3540
3541         Move pipe2-safer code to its own file.
3542         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
3543         * lib/pipe-safer.c (pipe2_safer): Remove function.
3544         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
3545         (Makefile.am): Add it to lib_SOURCES.
3546
3547 2009-12-10  Bruno Haible  <bruno@clisp.org>
3548
3549         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
3550
3551 2009-12-10  Bruno Haible  <bruno@clisp.org>
3552
3553         Declare which arguments expect non-NULL values, for GCC and clang.
3554         * build-aux/arg-nonnull.h: New file.
3555         * modules/arg-nonnull: New file.
3556         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
3557         (inet_ntop, inet_pton): Use it.
3558         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
3559         (closedir, dirfd, opendir, scandir, alphasort): Use it.
3560         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
3561         (open, openat): Use it.
3562         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
3563         (fnmatch): Use it.
3564         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
3565         (getopt, getopt_long, getopt_long_only): Use it.
3566         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
3567         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
3568         Use it.
3569         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
3570         (iconv_open): Use it.
3571         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
3572         (strtoimax, strtoumax): Use it.
3573         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
3574         (duplocale): Use it.
3575         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
3576         (frexp, frexpl): Use it.
3577         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
3578         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
3579         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
3580         (tsearch, tfind, tdelete, twalk): Use it.
3581         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
3582         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
3583         sigpending): Use it.
3584         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
3585         (posix_spawn, posix_spawnp, posix_spawnattr_init,
3586         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
3587         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
3588         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
3589         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
3590         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
3591         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
3592         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
3593         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
3594         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
3595         Use it.
3596         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
3597         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
3598         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
3599         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
3600         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
3601         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
3602         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
3603         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
3604         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
3605         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
3606         strtoull, unsetenv): Use it.
3607         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
3608         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
3609         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
3610         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3611         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3612         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
3613         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
3614         (strcasecmp, strncasecmp): Use it.
3615         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
3616         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
3617         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
3618         rpl_setsockopt): Use it.
3619         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
3620         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
3621         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
3622         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
3623         (gettimeofday): Use it.
3624         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
3625         (times): Use it.
3626         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
3627         (uname): Use it.
3628         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
3629         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
3630         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
3631         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
3632         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
3633         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
3634         unlinkat, write): Use it.
3635         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
3636         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
3637         * lib/argv-iter.h: Include arg-nonnull.h.
3638         (_ATTRIBUTE_NONNULL_): Remove macro.
3639         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
3640         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
3641         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
3642         optimization.
3643         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
3644         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
3645         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
3646         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
3647         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
3648         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
3649         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
3650         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
3651         * modules/arpa_inet (Depends-on): Add arg-nonnull.
3652         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
3653         * modules/dirent (Depends-on): Add arg-nonnull.
3654         (Makefile.am): Insert arg-nonnull.h into dirent.h.
3655         * modules/fcntl-h (Depends-on): Add arg-nonnull.
3656         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
3657         * modules/fnmatch (Depends-on): Add arg-nonnull.
3658         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
3659         * modules/getopt-posix (Depends-on): Add arg-nonnull.
3660         (Makefile.am): Insert arg-nonnull.h into getopt.h.
3661         * modules/glob (Depends-on): Add arg-nonnull.
3662         (Makefile.am): Insert arg-nonnull.h into glob.h.
3663         * modules/iconv_open (Depends-on): Add arg-nonnull.
3664         (Makefile.am): Insert arg-nonnull.h into iconv.h.
3665         * modules/inttypes (Depends-on): Add arg-nonnull.
3666         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
3667         * modules/locale (Depends-on): Add arg-nonnull.
3668         (Makefile.am): Insert arg-nonnull.h into locale.h.
3669         * modules/math (Depends-on): Add arg-nonnull.
3670         (Makefile.am): Insert arg-nonnull.h into math.h.
3671         * modules/netdb (Depends-on): Add arg-nonnull.
3672         (Makefile.am): Insert arg-nonnull.h into netdb.h.
3673         * modules/search (Depends-on): Add arg-nonnull.
3674         (Makefile.am): Insert arg-nonnull.h into search.h.
3675         * modules/signal (Depends-on): Add arg-nonnull.
3676         (Makefile.am): Insert arg-nonnull.h into signal.h.
3677         * modules/spawn (Depends-on): Add arg-nonnull.
3678         (Makefile.am): Insert arg-nonnull.h into spawn.h.
3679         * modules/stdio (Depends-on): Add arg-nonnull.
3680         (Makefile.am): Insert arg-nonnull.h into stdio.h.
3681         * modules/stdlib (Depends-on): Add arg-nonnull.
3682         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
3683         * modules/string (Depends-on): Add arg-nonnull.
3684         (Makefile.am): Insert arg-nonnull.h into string.h.
3685         * modules/strings (Depends-on): Add arg-nonnull.
3686         (Makefile.am): Insert arg-nonnull.h into strings.h.
3687         * modules/sys_socket (Depends-on): Add arg-nonnull.
3688         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
3689         * modules/sys_stat (Depends-on): Add arg-nonnull.
3690         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
3691         * modules/sys_time (Depends-on): Add arg-nonnull.
3692         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
3693         * modules/sys_times (Depends-on): Add arg-nonnull.
3694         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
3695         * modules/sys_utsname (Depends-on): Add arg-nonnull.
3696         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
3697         * modules/time (Depends-on): Add arg-nonnull.
3698         (Makefile.am): Insert arg-nonnull.h into time.h.
3699         * modules/unistd (Depends-on): Add arg-nonnull.
3700         (Makefile.am): Insert arg-nonnull.h into unistd.h.
3701         * modules/wchar (Depends-on): Add arg-nonnull.
3702         (Makefile.am): Insert arg-nonnull.h into wchar.h.
3703         * modules/argv-iter (Depends-on): Add arg-nonnull.
3704         * tests/test-canonicalize.c (null_ptr): New function.
3705         (main): Use it.
3706         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
3707         (main): Use it.
3708         * tests/test-memmem.c (null_ptr): New function.
3709         (main): Use it.
3710         Reported by Jim Meyering.
3711
3712 2009-12-10  Bruno Haible  <bruno@clisp.org>
3713
3714         Use spaces for indentation, not tabs.
3715         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
3716         * m4/*.m4: Untabify.
3717         * build-aux/*.h: Untabify.
3718         * tests/**/*.[hc]: Untabify.
3719         * README: New section "Indent with spaces, not TABs", based on
3720         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
3721         * NEWS: Mention the change.
3722
3723 2009-12-10  Bruno Haible  <bruno@clisp.org>
3724
3725         pty test: Fix link error.
3726         * modules/pty-tests (Makefile.am): Add the default LDADD value to
3727         test_pty_LDADD.
3728
3729 2009-12-07  Simon Josefsson  <simon@josefsson.org>
3730
3731         * modules/pty: New file.
3732         * modules/pty-tests: New file.
3733         * m4/pty.m4: New file.
3734         * tests/test-pty.c: New file.
3735         * doc/glibc-headers/pty.texi: Modified.
3736         * doc/glibc-functions/forkpty.texi: Modified.
3737         * doc/glibc-functions/openpty.texi: Modified.
3738
3739 2009-12-10  Bruno Haible  <bruno@clisp.org>
3740
3741         Avoid syntax error in C++ mode.
3742         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
3743
3744 2009-12-10  Bruno Haible  <bruno@clisp.org>
3745
3746         Use sed with option -e.
3747         * gnulib-tool (func_version, func_emit_copyright_notice,
3748         func_emit_initmacro_end, func_import, func_create_testdir): Pass
3749         option -e to sed.
3750         * modules/link-warning (Makefile.am): Likewise.
3751
3752 2009-12-10  Jim Meyering  <meyering@redhat.com>
3753
3754         mgetgroups: do not write bytes beyond end of malloc'd buffer
3755         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
3756         username, we call getgroups with a one-element-shorter buffer,
3757         but still told it the length was original, max_n_groups.
3758
3759 2009-12-09  Eric Blake  <ebb9@byu.net>
3760
3761         cloexec: relax license
3762         * modules/cloexec (Maintainer): Add myself.
3763         (License): Use LGPL, not GPL.
3764
3765         link-warning: optimize generation
3766         * modules/link-warning (Makefile.am): Reduce process usage.
3767
3768 2009-12-09  Bruno Haible  <bruno@clisp.org>
3769
3770         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
3771         workaround was added on 2009-11-17.
3772
3773 2009-12-09  Jim Meyering  <meyering@redhat.com>
3774             Bruno Haible  <bruno@clisp.org>
3775
3776         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
3777         * modules/link-warning (Makefile.am): Make the comment-removing sed
3778         command more robust in the face of bootstrap-prepended comment lines.
3779
3780 2009-12-09  Bruno Haible  <bruno@clisp.org>
3781
3782         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
3783         most one group.
3784
3785 2009-12-09  Simon Josefsson <simon@josefsson.org>
3786             Bruno Haible  <bruno@clisp.org>
3787
3788         * build-aux/link-warning.h: Add copyright notice.
3789         * modules/link-warning (Makefile.am): Generate link-warning.h from
3790         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
3791         * NEWS: Mention change in link-warning module.
3792         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
3793         * modules/dirent (Makefile.am): Add dependency to dirent.h.
3794         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
3795         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
3796         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
3797         * modules/math (Makefile.am): Add dependency to math.h.
3798         * modules/search (Makefile.am): Add dependency to search.h.
3799         * modules/signal (Makefile.am): Add dependency to signal.h.
3800         * modules/spawn (Makefile.am): Add dependency to spawn.h.
3801         * modules/stdio (Makefile.am): Add dependency to stdio.h.
3802         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
3803         * modules/string (Makefile.am): Add dependency to string.h.
3804         * modules/strings (Makefile.am): Add dependency to strings.h.
3805         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
3806         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
3807         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
3808         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
3809         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
3810         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
3811         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
3812         * modules/unistd (Makefile.am): Add dependency to unistd.h.
3813         * modules/wchar (Makefile.am): Add dependency to wchar.h.
3814
3815 2009-12-09  Bruno Haible  <bruno@clisp.org>
3816
3817         fchdir: Optimize away rpl_fstat when possible.
3818         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
3819         REPLACE_OPEN_DIRECTORY.
3820         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
3821
3822 2009-12-09  Bruno Haible  <bruno@clisp.org>
3823
3824         * lib/fchdir.c: Update comment.
3825
3826 2009-12-09  Bruno Haible  <bruno@clisp.org>
3827
3828         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
3829
3830 2009-12-08  Eric Blake  <ebb9@byu.net>
3831
3832         fchdir: avoid memory leak on re-registration.
3833         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
3834
3835 2009-12-08  Jim Meyering  <meyering@redhat.com>
3836
3837         init.sh: avoid Solaris 10 /bin/sh portability problem
3838         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
3839         sourced script:
3840           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
3841           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
3842           bar
3843         tests/init.sh relied on that, accepting a --set-path=DIR argument,
3844         and two tests used that idiom.
3845         * tests/init.sh: Update suggested usage comments.
3846         (path_prepend_): New function, to be used in place
3847         of the --src-path=DIR option.
3848         (setup_): Move PATH-prepending code into path_prepend_.
3849         * tests/test-pread.sh: Adapt to new usage.
3850         * tests/test-xalloc-die.sh: Likewise.
3851
3852 2009-12-08  Simon Josefsson  <simon@josefsson.org>
3853
3854         * doc/gnulib.texi (Glibc pty.h): Add.
3855         * doc/glibc-functions/forkpty.texi: Add.
3856         * doc/glibc-functions/openpty.texi: Add.
3857         Suggested by Bruno Haible.
3858
3859 2009-12-08  Eric Blake  <ebb9@byu.net>
3860
3861         fchdir: fix logic bugs
3862         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
3863         * tests/test-fchdir.c (main): Enhance test.
3864         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
3865         is in use.
3866
3867         dup2: fix logic bugs
3868         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
3869         REPLACE_DUP2 to decide when rpl_dup2 is needed.
3870         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
3871         exists.
3872         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
3873
3874 2009-12-07  Eric Blake  <ebb9@byu.net>
3875
3876         unlink: fix m4 detection
3877         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
3878
3879         unistd-safer: add unit test
3880         * modules/unistd-safer-tests: New file.
3881         * tests/test-dup-safer.c: Likewise.
3882         * tests/test-cloexec.c (setmode): Avoid compiler warning.
3883         * tests/test-dup2.c (setmode): Likewise.
3884         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
3885
3886         cloexec: preserve text vs. binary across dup_cloexec
3887         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
3888         mode.
3889         * modules/dup2-tests (Depends-on): Add binary-io.
3890         * modules/cloexec-tests (Depends-on): Likewise.
3891         * tests/test-dup2.c (setmode, is_mode): New helpers.
3892         (main): Add tests that translation mode is preserved.
3893         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
3894         Reported by Bruno Haible.
3895
3896         mgetgroups: reduce duplicate listings
3897         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
3898         resulting array.
3899         * tests/test-chown.h (test_chown): Simplify client.
3900         * tests/test-lchown.h (test_lchown): Likewise.
3901
3902 2009-12-06  Bruno Haible  <bruno@clisp.org>
3903
3904         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
3905         value.
3906
3907 2009-12-06  Bruno Haible  <bruno@clisp.org>
3908
3909         * lib/progname.c: Include stdio.h, stdlib.h.
3910         (set_program_name): Reject a NULL argument.
3911
3912 2009-12-05  Eric Blake  <ebb9@byu.net>
3913
3914         pipe2-safer: new module
3915         * modules/pipe2-safer: New file.
3916         * lib/unistd-safer.h (pipe2_safer): New prototype.
3917         * lib/unistd--.h (pipe2): New wrapper.
3918         * lib/pipe-safer.c (pipe2_safer): New function.
3919         * modules/pipe (Depends-on): Add pipe2-safer.
3920         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
3921
3922         stdlib-safer: preserve cloexec flag for mkostemp[s]
3923         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
3924         fd_safer_flag.
3925
3926         unistd-safer: allow preservation of cloexec status via flag
3927         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
3928         prototypes.
3929         * lib/dup-safer.c (dup_safer_flag): New function.
3930         * lib/fd-safer.c (fd_safer_flag): Likewise.
3931         * modules/cloexec (configure.ac): Set witness.
3932
3933         test-dup2: enhance test
3934         * modules/dup2-tests (Depends-on): Add cloexec.
3935         * tests/test-dup2.c (main): Enhance test.
3936
3937         cloexec: add dup_cloexec
3938         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
3939         header and comments.
3940         * lib/cloexec.c (set_cloexec_flag): Add comments.
3941         (dup_cloexec): New function, with mingw implementation borrowed
3942         from...
3943         * lib/w32spawn.h (dup_noinherit): ...here.
3944         * modules/execute (Depends-on): Add cloexec.
3945         * modules/pipe (Depends-on): Likewise.
3946         * modules/cloexec (Depends-on): Add dup2.
3947         * modules/cloexec-tests (Files): New file.
3948         * tests/test-cloexec.c: Likewise.
3949
3950         test-xalloc-die: fix test for mingw
3951         * modules/xalloc-die-tests (Files): Add tests/init.sh.
3952         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
3953         directory and .exe suffix off argv[0] output.
3954
3955         test-fseeko: fix test for mingw
3956         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
3957         than undefining fseek, so test will pass on mingw.
3958
3959 2009-12-05  Bruno Haible  <bruno@clisp.org>
3960
3961         * lib/progname.h (set_program_name): Clarify specification.
3962         * lib/progname.c (set_program_name): Likewise.
3963         Reported by Jim Meyering.
3964
3965 2009-12-05  Jim Meyering  <meyering@redhat.com>
3966
3967         maint.mk: backslash-escape parens in default regexp
3968         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
3969         backslash-escape the literal parentheses.
3970
3971         maint.mk: news-date-check: use grep -E
3972         * top/maint.mk (today): Define a Make variable, not a...
3973         (news-date-check): ...shell variable.
3974         (news-date-regexp): Use the Make variable.
3975         Use grep's -E option.  Change the failing diagnostic to mention
3976         the variable, $(news-date-regexp).
3977
3978 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
3979
3980         maintainer-makefile: allow customization of NEWS entry format
3981         * top/maint.mk (news-date-regexp): New overridable variable.
3982         (news-date-check): Use it.
3983
3984 2009-12-04  Eric Blake  <ebb9@byu.net>
3985
3986         mgetgroups: add xgetgroups, and avoid ENOSYS failures
3987         * lib/mgetgroups.h (xgetgroups): New prototype.
3988         * lib/mgetgroups.c (xgetgroups): New wrapper.
3989         (mgetgroups): Handle ENOSYS.
3990         * modules/mgetgroups (Depends-on): Add realloc.
3991         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
3992
3993         mgetgroups: avoid argument promotion issues with -1
3994         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
3995         for invalid gid_t.
3996         * tests/test-chown.h (getegid, test_chown): Likewise.
3997         * tests/test-lchown.h (getegid, test_lchown): Likewise.
3998
3999 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
4000
4001         exclude: Fix header file problems.
4002         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
4003
4004 2009-12-01  Jim Meyering  <meyering@redhat.com>
4005
4006         fts: fts_open: do not let an empty string cause immediate failure
4007         This is required in support of GNU rm, for which the command
4008         "rm A '' B" must process and remove both A and B, in spite of
4009         the empty string argument.
4010         * lib/fts.c (fts_open): Do not let the presence of an empty string
4011         cause fts_open to fail immediately.  Most fts-using tools must be
4012         able to process all arguments, in order, and can be expected to
4013         diagnose such arguments themselves.
4014
4015 2009-11-30  Eric Blake  <ebb9@byu.net>
4016
4017         utimens: fix compilation error
4018         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
4019         Declare variable at right scope.
4020
4021 2009-11-29  Jim Meyering  <meyering@redhat.com>
4022
4023         bootstrap: handle perl-5.11's changed --version output
4024         * build-aux/bootstrap (get_version): Handle perl separately,
4025         since perl-5.11's --version output is different.
4026
4027 2009-11-28  Jim Meyering  <meyering@redhat.com>
4028
4029         userspec: depend on the inttostr module, too
4030         * modules/userspec (Depends-on): Add inttostr.
4031
4032         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
4033         * lib/userspec.c (parse_with_separator): Do not accept a user ID
4034         number of MAXUID when it evaluates to (uid_t) -1.
4035         Likewise for group ID.  Reported by Matt McCutchen in
4036         <http://savannah.gnu.org/bugs/?28113>
4037
4038         userspec: reformat to use spaces, not TABs
4039         * lib/userspec.c: Expand TABs to spaces.
4040         Add Emacs' "indent-tabs-mode: nil" hint.
4041
4042 2009-11-27  Eric Blake  <ebb9@byu.net>
4043
4044         getopt-gnu: flush out another BSD bug
4045         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
4046         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
4047         flush out BSD bug.
4048         * tests/test-getopt.h (test_getopt): End lists with NULL.
4049         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4050         (test_getopt_long_posix): Enhance test.
4051         * modules/getopt-posix-tests (Depends-on): Add stdbool.
4052         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
4053         getopt-gnu.
4054         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4055         Likewise.
4056
4057 2009-11-27  Simon Josefsson  <simon@josefsson.org>
4058
4059         * modules/idpriv-droptemp-tests (Notice): Fix text.
4060
4061 2009-11-27  Jim Meyering  <meyering@redhat.com>
4062
4063         test-xalloc-die: avoid spurious failure due to libtool argv difference
4064         In a libtool-enabled project, this test would fail due to a difference
4065         in the emitted program name, e.g.,
4066         -test-xalloc-die: memory exhausted
4067         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
4068         Use program to avoid that.
4069         * modules/xalloc-die-tests (Depends-on): Add progname.
4070         * tests/test-xalloc-die.c: Include progname.h".
4071         (program_name): Remove decl.
4072         (main): Call set_program_name.
4073         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
4074
4075 2009-11-26  Richard Jones  <rjones@redhat.com>
4076
4077         w32sock: leave win32 error in place.
4078         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
4079
4080 2009-11-26  Eric Blake  <ebb9@byu.net>
4081
4082         init.sh: suggest to use skip_ and fail_ functions in comments
4083         * tests/init.sh: Add a sentence.
4084
4085 2009-11-25  Bruno Haible  <bruno@clisp.org>
4086
4087         init.sh: add documentation in comments
4088         * tests/init.sh: Add some developer and user documentation.
4089
4090 2009-11-26  Jim Meyering  <meyering@redhat.com>
4091
4092         init.sh: accommodate even those who specify bogus srcdir manually
4093         * tests/init.sh: Normally, srcdir is guaranteed by automake and
4094         configure-time tests to be sanitized, so that there is no need to
4095         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
4096         (with no double quotes) suffices.  However, since tests may be
4097         invoked manually, and since you may explicitly set srcdir to the
4098         name of a directory containing spaces, do quote its uses here.
4099         * tests/test-pread.sh: Likewise.
4100         Suggested by Bruno Haible.
4101
4102         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
4103         * tests/test-pread.sh: Write no data into the pipe, because
4104         test-pread actually reads none.  This avoids a diagnostic,
4105         "bash: echo: write error: Broken pipe", that arises in the unusual
4106         event something is ignoring SIGPIPE, and might be interpreted
4107         as some sort of failure.  Reported by Bruno Haible.
4108
4109 2009-11-25  Jim Meyering  <meyering@redhat.com>
4110
4111         test-pread: cover failure with ESPIPE and EINVAL
4112         * tests/test-pread.c (main): Test for failure, too.
4113         * tests/test-pread.sh: Invoke with stdin on a pipe.
4114         Suggested by Eric Blake.
4115
4116         pread: improvement and fix
4117         * modules/pread (Depends-on): Depend on lseek, for portability to
4118         e.g., mingw.  Suggested by Eric Blake.
4119         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
4120
4121         unistd.in.h: correct declaration of pread
4122         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
4123         Reported by Richard W.M. Jones.
4124
4125         test-pread.sh: distribute the test script
4126         * modules/pread-tests (Files): Include test-pread.sh.
4127
4128         test-pread.sh: clean up
4129         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
4130         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
4131         That is unnecessary, since it's always ".".
4132         Suggestion from Eric Blake.
4133
4134         test-pread.sh: make executable
4135         * tests/test-pread.sh: Set executable bit.
4136         Reported by Eric Blake.
4137
4138         correct typo in test-pread.sh
4139         * tests/test-pread.sh: Add #! line.
4140
4141         test pread
4142         * tests/test-pread.c: New file.
4143         * tests/test-pread.sh: Likewise.
4144         * modules/pread-tests: Likewise.
4145
4146         pread: new module
4147         * modules/pread: New file.
4148         * lib/unistd.in.h (pread): Define/declare.
4149         * lib/pread.c (pread): New file.
4150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
4151         * modules/unistd (Makefile.am): Substitute witnesses.
4152         * doc/posix-functions/pread.texi (pread): Update.
4153         * MODULES.html.sh: Add pread.
4154
4155 2009-11-25  Jim Meyering  <meyering@redhat.com>
4156
4157         tests/init.sh: new file to be used via most *.sh tests
4158         * tests/init.sh: New file.
4159
4160 2009-11-25  Eric Blake  <ebb9@byu.net>
4161
4162         utimens: work around older Linux failure with symlinks
4163         * lib/utimens.c (lutimensat_works_really): New variable.
4164         (fdutimens, lutimens): Use it to manage kernels that support
4165         nanosecond times on files, but not on symlinks.
4166         Reported by OndÅ™ej Vašík.
4167
4168         utimes: fix configure grammar
4169         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
4170
4171 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
4172
4173         regex: Fix fastmap for multibyte character ranges.
4174         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
4175         characters when a multibyte character range is included.
4176
4177 2009-11-22  Andy Wingo  <wingo@pobox.com>
4178
4179         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
4180         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
4181
4182 2009-11-24  Bruno Haible  <bruno@clisp.org>
4183
4184         doc: Most *_l functions exist in MacOS X 10.5.
4185         * doc/posix-functions/duplocale.texi: Update platforms list.
4186         * doc/posix-functions/freelocale.texi: Likewise.
4187         * doc/posix-functions/newlocale.texi: Likewise.
4188         * doc/posix-functions/uselocale.texi: Likewise.
4189         * doc/posix-functions/isalnum_l.texi: Likewise.
4190         * doc/posix-functions/isalpha_l.texi: Likewise.
4191         * doc/posix-functions/isblank_l.texi: Likewise.
4192         * doc/posix-functions/iscntrl_l.texi: Likewise.
4193         * doc/posix-functions/isdigit_l.texi: Likewise.
4194         * doc/posix-functions/isgraph_l.texi: Likewise.
4195         * doc/posix-functions/islower_l.texi: Likewise.
4196         * doc/posix-functions/isprint_l.texi: Likewise.
4197         * doc/posix-functions/ispunct_l.texi: Likewise.
4198         * doc/posix-functions/isspace_l.texi: Likewise.
4199         * doc/posix-functions/isupper_l.texi: Likewise.
4200         * doc/posix-functions/iswalnum_l.texi: Likewise.
4201         * doc/posix-functions/iswalpha_l.texi: Likewise.
4202         * doc/posix-functions/iswblank_l.texi: Likewise.
4203         * doc/posix-functions/iswcntrl_l.texi: Likewise.
4204         * doc/posix-functions/iswctype_l.texi: Likewise.
4205         * doc/posix-functions/iswdigit_l.texi: Likewise.
4206         * doc/posix-functions/iswgraph_l.texi: Likewise.
4207         * doc/posix-functions/iswlower_l.texi: Likewise.
4208         * doc/posix-functions/iswprint_l.texi: Likewise.
4209         * doc/posix-functions/iswpunct_l.texi: Likewise.
4210         * doc/posix-functions/iswspace_l.texi: Likewise.
4211         * doc/posix-functions/iswupper_l.texi: Likewise.
4212         * doc/posix-functions/iswxdigit_l.texi: Likewise.
4213         * doc/posix-functions/isxdigit_l.texi: Likewise.
4214         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
4215         * doc/posix-functions/strcasecmp_l.texi: Likewise.
4216         * doc/posix-functions/strcoll_l.texi: Likewise.
4217         * doc/posix-functions/strfmon_l.texi: Likewise.
4218         * doc/posix-functions/strftime_l.texi: Likewise.
4219         * doc/posix-functions/strncasecmp_l.texi: Likewise.
4220         * doc/posix-functions/strxfrm_l.texi: Likewise.
4221         * doc/posix-functions/tolower_l.texi: Likewise.
4222         * doc/posix-functions/toupper_l.texi: Likewise.
4223         * doc/posix-functions/towctrans_l.texi: Likewise.
4224         * doc/posix-functions/towlower_l.texi: Likewise.
4225         * doc/posix-functions/towupper_l.texi: Likewise.
4226         * doc/posix-functions/wcscoll_l.texi: Likewise.
4227         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
4228         * doc/posix-functions/wctrans_l.texi: Likewise.
4229         * doc/posix-functions/wctype_l.texi: Likewise.
4230         * doc/glibc-functions/strptime_l.texi: Likewise.
4231         * doc/glibc-functions/strtod_l.texi: Likewise.
4232         * doc/glibc-functions/strtof_l.texi: Likewise.
4233         * doc/glibc-functions/strtol_l.texi: Likewise.
4234         * doc/glibc-functions/strtold_l.texi: Likewise.
4235         * doc/glibc-functions/strtoll_l.texi: Likewise.
4236         * doc/glibc-functions/strtoul_l.texi: Likewise.
4237         * doc/glibc-functions/strtoull_l.texi: Likewise.
4238         * doc/glibc-functions/wcsftime_l.texi: Likewise.
4239         * doc/glibc-functions/wcstod_l.texi: Likewise.
4240         * doc/glibc-functions/wcstof_l.texi: Likewise.
4241         * doc/glibc-functions/wcstol_l.texi: Likewise.
4242         * doc/glibc-functions/wcstold_l.texi: Likewise.
4243         * doc/glibc-functions/wcstoll_l.texi: Likewise.
4244         * doc/glibc-functions/wcstoul_l.texi: Likewise.
4245         * doc/glibc-functions/wcstoull_l.texi: Likewise.
4246
4247 2009-11-24  Bruno Haible  <bruno@clisp.org>
4248
4249         duplocale: Fix logic bug.
4250         * lib/duplocale.c: Don't include <langinfo.h>.
4251         (_NL_LOCALE_NAME): Remove macro.
4252         (rpl_duplocale): Use setlocale instead of nl_langinfo.
4253         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
4254
4255 2009-11-23  Jim Meyering  <meyering@redhat.com>
4256
4257         test-update-copyright: don't hard-code /usr/bin/perl
4258         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
4259         perl to print the current year.  Gilles Espinasse reported that
4260         the replaced use of perl was hard-coded as /usr/bin/perl.
4261
4262 2009-11-23  Bruno Haible  <bruno@clisp.org>
4263
4264         duplocale: Add support for glibc 2.3.x.
4265         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
4266
4267 2009-11-22  Bruno Haible  <bruno@clisp.org>
4268
4269         vasnprintf: Tiny optimization.
4270         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
4271         MacOS X.
4272
4273 2009-11-22  Bruno Haible  <bruno@clisp.org>
4274
4275         Tests for module 'duplocale'.
4276         * modules/duplocale-tests: New file.
4277         * tests/test-duplocale.c: New file.
4278
4279         New module 'duplocale'.
4280         * m4/duplocale.m4: New file.
4281         * lib/locale.in.h (duplocale): New declaration.
4282         * lib/duplocale.c: New file.
4283         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
4284         gl_LOCALE_H_DEFAULTS): New macros.
4285         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
4286         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
4287         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
4288         REPLACE_DUPLOCALE.
4289         * modules/duplocale: New file.
4290         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
4291
4292 2009-11-22  Bruno Haible  <bruno@clisp.org>
4293
4294         * modules/locale-tests (configure.ac): Test for newlocale function.
4295         * tests/test-locale.c: When the system has extended locale functions,
4296         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
4297
4298         locale: Make locale_t available when possible.
4299         * lib/locale.in.h: Include <xlocale.h> when it exists.
4300         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
4301         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
4302         * modules/locale (Depends-on): Add extensions.
4303         (Makefile.am): Also substitute HAVE_XLOCALE_H.
4304         * doc/posix-headers/locale.texi: Document the problem with locale_t.
4305
4306 2009-11-22  Bruno Haible  <bruno@clisp.org>
4307
4308         Add comments.
4309         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
4310         invocation.
4311         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
4312         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4313         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
4314
4315 2009-11-22  Bruno Haible  <bruno@clisp.org>
4316
4317         error: account for the possibility of freopen (stdout).
4318         * lib/error.c: Include <unistd.h>.
4319         (flush_stdout): New function, extracted from error and error_at_line.
4320         Determine stdout's fd dynamically.
4321         (error, error_at_line): Invoke flush_stdout.
4322         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
4323         * modules/error (Depends-on): Add unistd.
4324
4325 2009-11-22  Bruno Haible  <bruno@clisp.org>
4326
4327         diffseq: Add comment.
4328         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
4329
4330 2009-11-22  Jim Meyering  <meyering@redhat.com>
4331
4332         c-stack: avoid defining an unused static function
4333         * lib/c-stack.c (find_stack_direction): Do not define this function
4334         when it will not be used.
4335
4336         diffseq: avoid spurious gcc warnings
4337         * lib/diffseq.h (IF_LINT2): Define.
4338         (compareseq): Use it to initialize two members of "part".
4339         This avoids two used-uninitialized warnings.
4340
4341 2009-11-21  Jim Meyering  <meyering@redhat.com>
4342
4343         c-stack: avoid "ignoring return value of `write'" warning
4344         * lib/c-stack.c: Include "ignore-value.h".
4345         (die): Explicitly ignore each write return value.
4346         * modules/c-stack (Depends-on): Add ignore-value.
4347
4348 2009-11-21  Bruno Haible  <bruno@clisp.org>
4349
4350         diffseq: reduce scope of variable 'best'.
4351         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
4352         variable, earlier used for two different purposes.
4353
4354 2009-11-21  Jim Meyering  <meyering@redhat.com>
4355
4356         diffseq: remove useless assignment to "best"
4357         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
4358         assignment.  At that point "best" is already guaranteed to be zero.
4359
4360 2009-11-20  Eric Blake  <ebb9@byu.net>
4361
4362         build: mention ftp redirector in release announcements
4363         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
4364         values that used to come from cfg.mk; mention FTP redirect URL.
4365         * build-aux/announce-gen: Mention the mirror list.
4366         Suggested by Karl Berry.
4367
4368         nanosleep: improve port to mingw
4369         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
4370         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
4371         LIB_NANOSLEEP, but only when needed.
4372         * modules/select (Link): Document LIBSOCKET.
4373         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
4374         enough.
4375
4376         nanosleep: work around cygwin bug
4377         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
4378         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
4379         bug.
4380         (getnow): Delete, not needed.
4381         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
4382         LIB_CLOCK_GETTIME.
4383         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
4384         clock-time, gettime.
4385         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
4386         bug.
4387         * modules/nanosleep-tests: New test.
4388         * tests/test-nanosleep.c: New file.
4389
4390         sleep: work around cygwin bug
4391         * lib/sleep.c (rpl_sleep): Work around the bug.
4392         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
4393         (gl_PREREQ_SLEEP): Delete unused macro.
4394         * modules/sleep (Depends-on): Add verify.
4395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
4396         * modules/unistd (Makefile.am): Substitute witness.
4397         * lib/unistd.in.h (sleep): Update prototype.
4398         * doc/posix-functions/sleep.texi (sleep): Document the bug.
4399         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
4400         * modules/sleep-tests (Depends-on): Check for alarm.
4401
4402 2009-11-20  Jim Meyering  <meyering@redhat.com>
4403
4404         maint.mk: improve sc_prohibit_magic_number_exit
4405         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
4406         so it does not match uses like System.exit(1).
4407         Add comments showing how to correct all offenders.
4408
4409 2009-11-19  Eric Blake  <ebb9@byu.net>
4410
4411         xalloc-die-tests: add missing library
4412         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
4413
4414         test-xvasprintf: silence compiler warnings
4415         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
4416         empty string from gcc.
4417
4418 2009-11-19  Jim Meyering  <meyering@redhat.com>
4419
4420         xfreopen: new module, from coreutils
4421         * modules/xfreopen: New module.
4422         * lib/xfreopen.c: New file.
4423         * lib/xfreopen.h: New file.
4424         * MODULES.html.sh (File stream based Input/Output"): Add it.
4425
4426 2009-11-19  Eric Blake  <ebb9@byu.net>
4427
4428         manywarnings: depend on warnings
4429         * modules/manywarnings (Depends-on): Add warnings.
4430
4431         build: avoid compiler warnings
4432         * lib/select.c (rpl_select): Delete unused variable.
4433         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
4434
4435 2009-11-18  Eric Blake  <ebb9@byu.net>
4436
4437         tests: avoid false negative with --with-packager
4438         * tests/test-version-etc.sh: Discard packager information.
4439         * tests/test-argp-version-etc-1.sh: Likewise.
4440         Reported by Mike Frysinger.
4441
4442         utimens: fix regression on Solaris
4443         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
4444         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
4445         can only change fd timestamps via futimesat.  Instead, use an
4446         additional witness macro to avoid BSD bug.
4447         Reported by Jim Meyering.
4448
4449 2009-11-17  Eric Blake  <ebb9@byu.net>
4450
4451         usleep: use it to simplify tests
4452         * modules/stat-time-tests (Depends-on): Add usleep.
4453         (configure.ac): Drop usleep check.
4454         * modules/chown-tests (Depends-on, configure.ac): Likewise.
4455         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
4456         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
4457         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
4458         * modules/openat-tests (Depends-on, configure.ac): Likewise.
4459         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
4460         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
4461         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
4462         Likewise.
4463         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
4464         * tests/test-lchown.h (nap): Likewise.
4465         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
4466         * tests/test-stat-time.c (nap): Likewise.
4467         * tests/test-utimens-common.h (nap): Update comments.
4468
4469         usleep: new module
4470         * modules/usleep: New file.
4471         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
4472         * lib/usleep.c (usleep): Likewise.
4473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
4474         * modules/unistd (Makefile.am): Substitute witnesses.
4475         * lib/unistd.in.h (usleep): Add declaration.
4476         * doc/pastposix-functions/usleep.texi (usleep): Document this.
4477         * MODULES.html.sh (Date and time): Likewise.
4478         * modules/usleep-tests (Depends-on): New test.
4479         * tests/test-usleep.c: New file.
4480
4481         chown: work around OpenBSD bug
4482         * lib/chown.c (rpl_chown): Work around the bug.
4483         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
4484         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
4485         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
4486         * modules/chown (Depends-on): Add stdbool.
4487         * modules/lchown (Depends-on): Likewise.
4488         * doc/posix-functions/chown.texi (chown): Document the bug.
4489         * doc/posix-functions/lchown.texi (lchown): Likewise.
4490         * tests/test-lchown.h (test_chown): Relax test.
4491
4492         mkstemp: avoid conflict with C++ keyword template
4493         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
4494         * lib/mkostemp.c (mkostemp): Likewise.
4495         * lib/mkostemps.c (mkostemps): Likewise.
4496         * lib/mkstemp.c (mkstemp): Likewise.
4497         * lib/mkstemps.c (mkstemps): Likewise.
4498
4499         xalloc-die-tests: optimize
4500         * tests/test-xalloc-die.sh: Reduce number of processes.
4501
4502 2009-11-17  Simon Josefsson  <simon@josefsson.org>
4503
4504         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
4505         patch from ludo@gnu.org (Ludovic Courtès).
4506
4507 2009-11-17  Jim Meyering  <meyering@redhat.com>
4508
4509         version-etc: use proper license string
4510         * modules/version-etc (License): Use LGPL, not LGPLv3+.
4511         * modules/version-etc-fsf: Likewise.
4512
4513 2009-11-17  Simon Josefsson  <simon@josefsson.org>
4514
4515         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
4516         printed to stdout.  Deal with EOL differences.
4517
4518 2009-11-17  Eric Blake  <ebb9@byu.net>
4519
4520         unsetenv: work around Solaris bug
4521         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
4522         * lib/unsetenv.c (rpl_unsetenv): Work around it.
4523         Reported by Jim Meyering.
4524
4525         vasnprintf: avoid compiler warnings
4526         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
4527         variables.
4528         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
4529
4530 2009-11-17  Simon Josefsson  <simon@josefsson.org>
4531
4532         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
4533         settings since xalloc-die is no longer the self test,
4534         xalloc-die.sh is.
4535
4536 2009-11-17  Jim Meyering  <meyering@redhat.com>
4537
4538         test-xalloc-die.sh: make the code agree with the commit log
4539         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
4540         at the end, just in case you happen to have a test-xalloc-die
4541         program in some other PATH directory.
4542
4543         test-xalloc-die.sh: fix a portability bug
4544         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
4545         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
4546         Otherwise, argv[0] (as often seen in diagnostics) would be too
4547         system-dependent, sometimes with, and sometimes without the leading "./".
4548
4549         version-etc-fsf: relax license to LGPLv3+
4550         * modules/version-etc-fsf (License): Relax license.
4551
4552 2009-11-16  Eric Blake  <ebb9@byu.net>
4553
4554         xalloc-die-tests: avoid printing null pointer
4555         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
4556         shell script.
4557         * tests/test-xalloc-die.c (program_name): Declare.
4558         * tests/test-xalloc-die.sh (tmpfiles): New file.
4559
4560         setenv, unsetenv: work around various bugs
4561         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
4562         (setenv) [HAVE_SETENV]: Work around bugs.
4563         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
4564         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
4565         for bugs.
4566         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
4567         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
4568         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
4569         * modules/stdlib (Makefile.am): Update substitutions.
4570         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
4571         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
4572         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
4573         * modules/setenv-tests: New test.
4574         * modules/unsetenv-tests: Likewise.
4575         * tests/test-setenv.c: New file.
4576         * tests/test-unsetenv.c: Likewise.
4577
4578 2009-11-16  Jim Meyering  <meyering@redhat.com>
4579
4580         version-etc: relax license to LGPLv3+
4581         * modules/version-etc (License): Relax license.
4582
4583         better AC_REQUIRE expanded-before-required-warning avoidance
4584         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
4585         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
4586         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
4587         which is no longer needed.
4588
4589 2009-11-16  Eric Blake  <ebb9@byu.net>
4590
4591         test-freading: clean up temporary file
4592         * tests/test-freading.c (main): Remove file on success, and use
4593         ASSERT more liberally.
4594         Reported by Jim Meyering.
4595
4596 2009-11-16  Jim Meyering  <meyering@redhat.com>
4597
4598         avoid new AC_REQUIRE expanded-before-required warnings
4599         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
4600         merely using it.
4601         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
4602         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
4603
4604 2009-11-15  Simon Josefsson  <simon@josefsson.org>
4605
4606         * tests/test-xalloc-die.c: New file.
4607         * modules/xalloc-die-tests: New file.
4608         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
4609         XFAIL_TESTS so it can be appended by modules.
4610
4611 2009-11-15  Simon Josefsson  <simon@josefsson.org>
4612
4613         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
4614         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
4615
4616 2009-11-14  Eric Blake  <ebb9@byu.net>
4617
4618         fnmatch: avoid compiler warning
4619         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
4620         to silence compiler warning about mismatch signedness in ?:.
4621         Reported by Robert Millan.
4622
4623         intprops: add double-inclusion guard
4624         * lib/intprops.h: Allow idempotent includes.
4625         Suggested by Bruce Korb.
4626
4627         openat: detect Solaris fchownat bug
4628         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
4629         penalizing glibc chownat when only lchownat is broken.
4630         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
4631         trailing slash bugs.
4632         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
4633         * modules/openat-tests (Files): Include more files.
4634         (Depends-on): Add mgetgroups, sleep, stat-time.
4635         (configure.ac): Add additional checks.
4636         (Makefile.am): Build new test.
4637         * tests/test-fchownat.c: New file.
4638
4639         lchown: detect Solaris and FreeBSD bug
4640         * lib/lchown.c (rpl_lchown): Work around bug.
4641         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
4642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4643         * modules/unistd (Makefile.am): Populate it.
4644         * lib/unistd.in.h (lchown): Update declaration.
4645         * doc/posix-functions/lchown.texi (lchown): Document the bug.
4646         * modules/lchown-tests: New file.
4647         * tests/test-lchown.h (test_lchown): Likewise.
4648         * tests/test-lchown.c (main): Likewise.
4649
4650         chown: detect Solaris and FreeBSD bug
4651         * lib/chown.c (rpl_chown): Work around bug.
4652         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
4653         (gl_PREREQ_CHOWN): Delete.
4654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4655         * modules/unistd (Makefile.am): Populate it.
4656         * lib/unistd.in.h (chown): Update declaration.
4657         * lib/lchown.c (chown): Update client.
4658         * modules/lchown (Depends-on): Add lstat.
4659         * doc/posix-functions/chown.texi (chown): Document the bug.
4660         * doc/posix-functions/getgroups.texi (getgroups): Document
4661         getgroups pitfall.
4662         * modules/chown-tests: New file.
4663         * tests/test-chown.h (test_chown): Likewise.
4664         * tests/test-chown.c (main): Likewise.
4665
4666 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
4667
4668         gnulib-tool: correctly detect absence of m4 directories
4669         * gnulib-tool: Avoid extra newline on data passed to wc -l.
4670
4671 2009-11-14  Jim Meyering  <meyering@redhat.com>
4672
4673         maint.mk: Prohibit inclusion of "xalloc.h" without use.
4674         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
4675
4676 2009-11-14  John W. Eaton  <jwe@gnu.org>
4677
4678         strftime.h: wrap funtion declaration in extern "C" block
4679         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
4680
4681 2009-11-13  Eric Blake  <ebb9@byu.net>
4682
4683         getgroups: avoid compiler warning
4684         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
4685
4686         getgroups: work around FreeBSD bug
4687         * lib/getgroups.c (rpl_getgroups): Work around the bug.
4688         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
4689         * doc/posix-functions/getgroups.texi (getgroups): Document it.
4690         * tests/test-getgroups.c (main): Fix buffer overrun.
4691
4692         getgroups: avoid compilation failure
4693         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
4694         * modules/getgroups (Depends-on): Add stdint.
4695
4696 2009-11-13  Jim Meyering  <meyering@redhat.com>
4697
4698         test-getgroups: avoid compilation failure
4699         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
4700
4701 2009-11-13  Eric Blake  <ebb9@byu.net>
4702
4703         mgetgroups: new module, taken from coreutils
4704         * modules/mgetgroups: New file.
4705         * lib/mgetgroups.h: Likewise.
4706         * lib/mgetgroups.c (mgetgroups): Likewise.
4707         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
4708         * MODULES.html.sh (Users and groups): Mention it.
4709
4710         getgroups: don't expose GETGROUPS_T to user
4711         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
4712         an element at a time if GETGROUPS_T is wrong size.
4713         * lib/getugroups.h (getugroups): Change signature.
4714         * lib/unistd.in.h (getgroups): Likewise.
4715         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
4716         signature needs fixing.
4717         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
4718         AC_TYPE_GETGROUPS.
4719         * modules/group-member (Depends-on): Add getgroups.
4720         * lib/group-member.c (group_info, get_group_info): Use gid_t.
4721         (group_member): Rely on getgroups replacement.
4722         * lib/getugroups.c (getugroups): Use gid_t.
4723         * tests/test-getgroups.c (main): Likewise.
4724         * NEWS: Mention the signature change.
4725         * doc/posix-functions/getgroups.texi (getgroups): Mention the
4726         problem with signature.
4727         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
4728         GETGROUPS_T is still useful for setgroups.
4729
4730         getgroups, getugroups: provide stubs for mingw
4731         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
4732         * lib/getugroups.c (getugroups): Likewise.
4733         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
4734         function.  Modernize replacement scheme.
4735         (gl_PREREQ_GETGROUPS): Delete.
4736         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
4737         * modules/getgroups (configure.ac): Declare witness.
4738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
4739         * modules/unistd (Depends-on): Substitute witness.
4740         * lib/unistd.in.h (getgroups): Declare replacement.
4741
4742         getgroups: avoid calling exit
4743         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
4744         drop xalloc.
4745         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
4746         dependencies.
4747         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
4748         exiting, in the rare case of malloc failure.
4749
4750         getgroups: fix logic error
4751         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
4752         has more than 20 groups.
4753         * modules/getgroups-tests: New test.
4754         * tests/test-getgroups.c: New file.
4755
4756 2009-11-13  Simon Josefsson  <simon@josefsson.org>
4757
4758         * tests/test-base64.c: Improve.
4759
4760 2009-11-13  Simon Josefsson  <simon@josefsson.org>
4761
4762         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
4763         Blake <ebb9@byu.net>.
4764
4765 2009-11-13  Simon Josefsson  <simon@josefsson.org>
4766
4767         * tests/test-xvasprintf.c: Add %s%s related checks.
4768
4769 2009-11-12  Eric Blake  <ebb9@byu.net>
4770
4771         version-etc: match standards.texi style
4772         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
4773         and use <> only for URLs.
4774
4775 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
4776
4777         fts: do not fail on a submount during traversal
4778         * lib/fts.c (fts_build): Read the stat info again after opening
4779         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
4780         Original report at http://bugzilla.redhat.com/501848.
4781
4782 2009-11-12  Jim Meyering  <meyering@redhat.com>
4783
4784         bootstrap: sync from coreutils
4785         * build-aux/bootstrap (bootstrap_epilogue): New function.
4786         Use git_modules_config in one more place.  This make bootstrap's
4787         --gnulib-srcdir option more useful for testing.
4788
4789         bootstrap: generalize autoheader check
4790         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
4791         AC_CONFIG_HEADERS.
4792
4793 2009-11-11  Eric Blake  <ebb9@byu.net>
4794
4795         mkfifoat: use new modules for Solaris and BSD bugs
4796         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
4797         * lib/mkfifoat.c (mknodat): Split...
4798         * lib/mknodat.c (mknodat): ...into new file.
4799         * modules/mkfifoat (Files): Ship new file.
4800         (Depends-on): Add mkfifo, mknod.
4801         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
4802         (Depends-on): Add symlink.
4803         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
4804         redundant with test_mkfifo.h.
4805         (do_mkfifoat, do_mknodat): New helpers.
4806
4807         mknod: new module
4808         * modules/mknod: New file.
4809         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
4810         * lib/mknod.c (mknod): Likewise.
4811         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
4812         defaults.
4813         * modules/sys_stat (Makefile.am): Substitute them.
4814         * lib/sys_stat.in.h (mknod): Declare replacement.
4815         * MODULES.html.sh (Support for systems lacking POSIX:2008):
4816         Document it.
4817         * doc/posix-functions/mknod.texi (mknod): Likewise.
4818         * modules/mknod-tests: New test.
4819         * tests/test-mknod.c: Likewise.
4820
4821         mkfifo: new module
4822         * modules/mkfifo: New file.
4823         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
4824         * lib/mkfifo.c (mkfifo): Likewise.
4825         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
4826         defaults.
4827         * modules/sys_stat (Makefile.am): Substitute them.
4828         * lib/sys_stat.in.h (mkfifo): Declare replacement.
4829         * MODULES.html.sh (Support for systems lacking POSIX:2008):
4830         Document it.
4831         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
4832         * modules/mkfifo-tests: New test.
4833         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
4834         from test-mkfifoat.c.
4835         * tests/test-mkfifo.c: New file.
4836
4837         readlink: detect FreeBSD bug
4838         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
4839         slash on symlink.
4840         * doc/posix-functions/readlink.texi (readlink): Document the bug.
4841         * tests/test-readlink.h (test_readlink): Enhance test.
4842
4843         symlink: detect FreeBSD bug
4844         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
4845         slash on symlink.
4846         * doc/posix-functions/symlink.texi (symlink): Document the bug.
4847         * tests/test-symlink.h (test_symlink): Enhance test.
4848
4849 2009-11-10  Eric Blake  <ebb9@byu.net>
4850
4851         link: detect FreeBSD bug
4852         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
4853         symlink.
4854         * doc/posix-functions/link.texi (link): Document the bug.
4855         * tests/test-link.h (test_link): Enhance test.
4856         * tests/test-linkat.c (main): Update caller.
4857
4858         unlink, remove: detect FreeBSD bug
4859         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
4860         slash on symlink.
4861         * doc/posix-functions/unlink.texi (unlink): Document the bug.
4862         * doc/posix-functions/remove.texi (remove): Likewise.
4863         * tests/test-unlink.h (test_unlink): Enhance test.
4864         * tests/test-remove.c (main): Likewise.
4865
4866 2009-11-09  Eric Blake  <ebb9@byu.net>
4867
4868         rename: detect FreeBSD bug
4869         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
4870         slash on symlink.
4871         * modules/renameat-tests (Depends-on): Add filenamecat.
4872         * tests/test-rename.h (test_rename): Allow one more errno.
4873         * tests/test-renameat.c (main): Likewise.
4874         * doc/posix-functions/rename.texi (rename): Document the bug.
4875
4876         open: detect FreeBSD bug
4877         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
4878         symlink.
4879         * doc/posix-functions/open.texi (open): Document the bug.
4880         * doc/posix-functions/utimes.texi (utimes): Likewise.
4881         * tests/test-open.h (test_open): Add parameters, and test symlink
4882         handling.
4883         * tests/test-open.c (main): Adjust caller.
4884         * tests/test-fcntl-safer.c (main): Likewise.
4885         * modules/open-tests (Depends-on): Add stdbool, symlink.
4886         * modules/fcntl-safer-tests (Depends-on): Likewise.
4887         * tests/test-openat.c (main): Add test-open tests.
4888
4889         stat: detect FreeBSD bug
4890         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
4891         symlink.
4892         * doc/posix-functions/stat.texi (stat): Document the bug.
4893         * tests/test-stat.h (test_stat_func): Add argument.
4894         * tests/test-stat.c (main): Adjust caller.
4895         * tests/test-fstatat.c (main): Likewise.
4896         * modules/stat-tests (Depends-on): Add stdbool, symlink.
4897         Reported by Jim Meyering.
4898
4899 2009-11-09  James Youngman  <jay@gnu.org>
4900
4901         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
4902         * lib/strftime.c: Correct placement of #include "ignore-value.h".
4903
4904 2009-11-08  Jim Meyering  <meyering@redhat.com>
4905
4906         utimens: remove invalid futimesat call
4907         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
4908         It used the file descriptor of the target file as the DIR_FD
4909         parameter and NULL as the file name.  That caused failure with
4910         errno == EFAULT on FreeBSD-8.0-rc2
4911
4912 2009-11-07  Eric Blake  <ebb9@byu.net>
4913
4914         fflush, freadseek: use fseeko, not fseek
4915         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4916         (clear_ungetc_buffer): Avoid potential problems on large files.
4917         * lib/freadseek.c (freadseek): Likewise.
4918         * modules/freadseek (Depends-on): Add fseeko.
4919         * modules/fseek (configure.ac): Set a witness.
4920         * tests/test-fflush.c (main): Use fseeko.
4921         * tests/test-fpurge.c (fseek): Disable link warning.
4922         * tests/test-freadable.c (fseek): Likewise.
4923         * tests/test-freading.c (fseek): Likewise.
4924         * tests/test-fseeko.c (fseek): Likewise.
4925         * tests/test-ftell.c (fseek): Likewise.
4926         * tests/test-ftello.c (fseek): Likewise.
4927         * tests/test-fwritable.c (fseek): Likewise.
4928         * tests/test-fwriting.c (fseek): Likewise.
4929
4930 2009-11-06  Simon Josefsson  <simon@josefsson.org>
4931
4932         * modules/memchr (Depends-on): Drop getpagesize dependency.
4933
4934 2009-11-06  Simon Josefsson  <simon@josefsson.org>
4935
4936         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
4937         Reported by Ludovic Courtès.
4938         * build-aux/pmccabe2html: Improve example usage.
4939         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
4940
4941 2009-11-06  Jim Meyering  <meyering@redhat.com>
4942
4943         do-release-commit-and-tag: New module.
4944         Automate the release-commit and tag process.
4945         * build-aux/do-release-commit-and-tag: New script, from coreutils.
4946         * modules/do-release-commit-and-tag: New file.
4947         * MODULES.html.sh (Support for maintaining and releasing): Add it.
4948
4949 2009-11-06  Simon Josefsson  <simon@josefsson.org>
4950
4951         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
4952         because test-select.c uses inet_pton.
4953
4954 2009-11-06  Simon Josefsson  <simon@josefsson.org>
4955
4956         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
4957         GETADDRINFO_LIB.  Bump serial number.
4958         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
4959         Suggested by Eric Blake <ebb9@byu.net>.
4960
4961 2009-11-05  Eric Blake  <ebb9@byu.net>
4962
4963         strtod: detect darwin bug
4964         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
4965         Reported by Leo Davis.
4966
4967         freopen-safer: new module
4968         * modules/freopen-safer: New module.
4969         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
4970         * lib/freopen-safer.c (freopen_safer): New file.
4971         * lib/stdio-safer.h (freopen_safer): New declaration.
4972         * lib/stdio--.h (freopen): New override.
4973         * MODULES.html.sh (File stream based Input/Output): Mention it.
4974         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
4975         freopen-safer module.
4976         * doc/posix-functions/stderr.texi (stderr): Likewise.
4977         * doc/posix-functions/stdin.texi (stdin): Likewise.
4978         * doc/posix-functions/stdout.texi (stdout): Likewise.
4979         * modules/freopen-safer-tests: New test.
4980         * tests/test-reopen-safer.c: New file.
4981
4982 2009-11-05  Jim Meyering  <meyering@redhat.com>
4983
4984         maint.mk: Prohibit inclusion of "close-stream.h" without use.
4985         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
4986
4987 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4988
4989         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
4990
4991 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4992
4993         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
4994
4995 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4996
4997         Fix link error.
4998         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
4999         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5000
5001 2009-11-05  Simon Josefsson  <simon@josefsson.org>
5002
5003         * tests/test-func.c: Also test value of __func__.
5004
5005 2009-11-05  Simon Josefsson  <simon@josefsson.org>
5006
5007         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
5008         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
5009
5010 2009-11-05  Bruno Haible  <bruno@clisp.org>
5011
5012         Fix link error.
5013         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
5014         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5015         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
5016
5017 2009-11-05  Bruno Haible  <bruno@clisp.org>
5018
5019         Tests for module 'inet_pton'.
5020         * modules/inet_pton-tests: New file.
5021         * tests/test-inet_pton.c: New file.
5022
5023 2009-11-05  Bruno Haible  <bruno@clisp.org>
5024
5025         Tests for module 'inet_ntop'.
5026         * modules/inet_ntop-tests: New file.
5027         * tests/test-inet_ntop.c: New file.
5028
5029 2009-11-04  Eric Blake  <ebb9@byu.net>
5030
5031         stdlib-safer: wrap all mkstemp variants
5032         * modules/mkostemp (configure.ac): Set witness.
5033         * modules/mkostemps (configure.ac): Likewise.
5034         * modules/mkstemps (configure.ac): Likewise.
5035         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
5036         (mkstemps_safer): Wrap more functions.
5037         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
5038         wrapping.
5039         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
5040         (mkstemps_safer): Implement the wrappers.
5041
5042         mkstemps, mkostemps: new modules
5043         * modules/mkostemps: New module.
5044         * modules/mkstemps: Likewise.
5045         * lib/mkostemps.c (mkostemps): New file.
5046         * lib/mkstemps.c (mkstemps): Likewise.
5047         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
5048         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
5049         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
5050         * modules/stdlib (Makefile.am): Substitute them.
5051         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
5052         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
5053         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
5054         * doc/gnulib.texi (Glibc stdlib.h): Include them.
5055         * MODULES.html.sh (File system functions): Mention them.
5056
5057         tempname: resync from glibc
5058         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
5059         same values for __GT_FILE as glibc.  Abort even when assertions
5060         are disabled.
5061         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
5062         match its value otherwise.  Allow idempotent inclusion.
5063         * lib/mkdtemp.c (mkdtemp): Adjust caller.
5064         * lib/mkostemp.c (mkostemp): Likewise.
5065         * lib/mkstemp.c (mkstemp): Likewise.
5066         * lib/tmpfile.c (tmpfile): Likewise.
5067         * NEWS: Document this.
5068
5069         utimens: fix use of futimens on older Linux
5070         * lib/utimens.c (fdutimens): Use updated, rather than original,
5071         timespec to avoid bug in older Linux kernel.
5072         Reported by Simon Josefsson.
5073
5074 2009-11-04  Bruno Haible  <bruno@clisp.org>
5075
5076         Make num_processors more flexible and consistent.
5077         * lib/nproc.h (enum nproc_query): New type.
5078         (num_processors): Add a 'query' argument.
5079         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
5080         (num_processors): Add a 'query' argument. Test the value of the
5081         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
5082         mingw, count the number of CPUs available for the current process.
5083         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
5084         Check for sched_getaffinity and sched_getaffinity_np.
5085         * modules/nproc (Depends-on): Add c-ctype, extensions.
5086         * NEWS: Mention the change.
5087
5088 2009-11-03  Bruno Haible  <bruno@clisp.org>
5089
5090         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
5091
5092 2009-11-03  Jim Meyering  <meyering@redhat.com>
5093
5094         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
5095         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
5096         if it is defined.
5097
5098 2009-11-02  Eric Blake  <ebb9@byu.net>
5099
5100         mktime, timegm: share common declaration
5101         * lib/mktime-internal.h: New file.
5102         * lib/mktime.c: Use it rather than open-coding a declaration.
5103         * lib/timegm.c: Likewise.
5104         * modules/mktime (Files): Ship it.
5105         * modules/timegm (Files): Likewise.
5106         Suggested by Bruno Haible.
5107
5108         test-update-copyright: update test to match script changes
5109         * tests/test-update-copyright.sh: Avoid hard-coding perl
5110         location.  Don't update *.bak created by earlier runs.
5111
5112 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
5113             Simon Josefsson  <simon@josefsson.org>
5114             Bruno Haible  <bruno@clisp.org>
5115
5116         Fix link error on Solaris 8.
5117         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
5118         also in libnsl. Define also INET_PTON_LIB.
5119         * modules/inet_pton (Link): New section.
5120
5121 2009-11-02  Simon Josefsson  <simon@josefsson.org>
5122             Bruno Haible  <bruno@clisp.org>
5123
5124         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
5125         * modules/inet_ntop (Link): New section.
5126         Reported by Boyan Kasarov <bkasarov@gmail.com>.
5127
5128 2009-11-02  Eric Blake  <ebb9@byu.net>
5129
5130         maint: avoid compiler warnings in m4 macros
5131         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
5132         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
5133
5134 2009-11-02  Simon Josefsson  <simon@josefsson.org>
5135
5136         * m4/pmccabe2html.m4: Remove file.
5137         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
5138         function.  Change maintainer.
5139         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
5140         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
5141         Courtès).
5142
5143 2009-10-31  Eric Blake  <ebb9@byu.net>
5144
5145         fseeko: fix m4 regression
5146         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
5147         regression from 2009-10-27.
5148         Reported by Ralf Wildenhues.
5149
5150 2009-10-31  Jim Meyering  <meyering@redhat.com>
5151
5152         inttostr: aesthetics and improved (compile-time) safety
5153         Define inttype_is_signed rather than inttype_is_unsigned,
5154         since the sole use is via "#if inttype_is_signed".
5155         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
5156         inttype_is_unsigned.
5157         * lib/offtostr.c (inttype_is_signed): Likewise.
5158         * lib/uinttostr.c (inttype_is_signed): Likewise.
5159         * lib/umaxtostr.c (inttype_is_signed): Likewise.
5160         * lib/inttostr.c (inttostr): Use verify to cross-check the
5161         inttype_is_signed value and the signedness of the actual type.
5162         * modules/inttostr (Depends-on): Add verify.
5163
5164 2009-10-30  Eric Blake  <ebb9@byu.net>
5165
5166         build: avoid compiler warnings
5167         * lib/fchmodat.c (lchmod): Mark unused variables.
5168         * lib/getopt.c (_getopt_initialize): Likewise.
5169         * lib/mktime.c (__mktime_internal): Provide prototype.
5170         * lib/inttostr.c (inttostr): Avoid compiler warning even with
5171         older gcc that do not understand #pragma GCC diagnostic.
5172         * lib/uinttostr.c (inttype_is_unsigned): Define.
5173         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
5174
5175 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
5176
5177         stat: fix compilation on AIX
5178         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
5179         only see struct stat64.
5180
5181 2009-10-30  Eric Blake  <ebb9@byu.net>
5182
5183         exclude: make more robust
5184         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
5185         rather than masking a coding bug.
5186         Suggested by Bruno Haible.
5187
5188 2009-10-30  Jim Meyering  <meyering@redhat.com>
5189
5190         perl scripts: remove #!/usr/bin/perl in favor of more portable...
5191         Rather than putting #!/usr/bin/perl on the first line,
5192         start with a variant of what's recommended by "man perlrun" that
5193         invokes the first "perl" program from your shell's search path.
5194         * build-aux/gitlog-to-changelog: Replace #!... as above.
5195         Add a "Local Variables" perl mode setting.
5196         Prompted by a patch from Ludovic Courtès.
5197         Improved by Eric Blake.
5198         * build-aux/useless-if-before-free: Likewise.
5199         * build-aux/announce-gen: Likewise.
5200         * build-aux/update-copyright: Likewise.
5201
5202 2009-10-29  Eric Blake  <ebb9@byu.net>
5203
5204         filenamecat-lgpl: adjust clients
5205         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
5206         filenamecat.
5207         * modules/renameat (Depends-on): Likewise.
5208
5209         filenamecat: split into filenamecat-lgpl
5210         * modules/filenamecat-lgpl: New module.
5211         * modules/filenamecat (Files): Move library-safe files into
5212         filenamecat-lgpl.
5213         (Depends-on): Add filenamecat-lgpl.
5214         (configure.ac): Declare witness.
5215         * lib/filenamecat.h (file_name_concat): Only declare when using
5216         GPL module.
5217         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
5218         Move...
5219         * lib/filenamecat-lgpl.c: ...into new file.
5220         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
5221         (gl_FILE_NAME_CONCAT): Use it.
5222         * MODULES.html.sh (File system functions): Mention new module.
5223
5224         argp: avoid memory leak
5225         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
5226         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
5227         base_name, since the latter malloc()s and can call exit().
5228         Leak introduced 2006-07-03.
5229
5230         dirname-lgpl: adjust clients that don't need full dirname
5231         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
5232         * modules/filenamecat (Depends-on): Likewise.
5233         * modules/linkat (Depends-on): Likewise.
5234         * modules/mkancesdirs (Depends-on): Likewise.
5235         * modules/mkdir (Depends-on): Likewise.
5236         * modules/openat (Depends-on): Likewise.
5237         * modules/savewd (Depends-on): Likewise.
5238         * modules/rename (Depends-on): Likewise.
5239         (License): Relax license.
5240         * modules/mkdir-tests (Depends-on): Drop progname.
5241         (Makefile.am): Delete unneeded LDADD.
5242         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
5243
5244         dirname: split into dirname-lgpl
5245         * modules/dirname-lgpl: New module.
5246         * modules/dirname (Files): Move library-safe files into
5247         dirname-lgpl.
5248         (Depends-on): Add dirname-lgpl.
5249         (configure.ac): Declare witness.
5250         * modules/double-slash-root (License): Relax license.
5251         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
5252         module.
5253         * lib/dirname.c (dir_len, mdir_name): Move...
5254         * lib/dirname-lgpl.c: ...into new file.
5255         * lib/basename.c (last_component, base_len): Move...
5256         * lib/basename-lgpl.c: ...into new file.
5257         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
5258         (gl_DIRNAME): Use it.
5259         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
5260         Mention new module.
5261         * modules/dirname-tests (Depends-on): Add progname.
5262         * tests/test-dirname.c (program_name): Delete.
5263
5264         mkdir: make safe for libraries
5265         * modules/mkdir (Depends-on): Drop xalloc.
5266         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
5267         exit.
5268
5269         tests: avoid some compiler warnings
5270         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
5271         literals.
5272         * tests/test-memchr.c (main): Avoid type mismatch.
5273         * tests/test-arpa_inet.c (main): Avoid unused parameters.
5274         * tests/test-base64.c (main): Likewise.
5275         * tests/test-getdelim.c (main): Likewise.
5276         * tests/test-gethostname.c (main): Likewise.
5277         * tests/test-getline.c (main): Likewise.
5278         * tests/test-netinet_in.c (main): Likewise.
5279         * tests/test-select.c (open_server_socket, main): Likewise.
5280         * tests/test-select-stdin.c (main): Likewise.
5281         * tests/test-sockets.c (main): Likewise.
5282         * tests/test-strsignal.c (main): Likewise.
5283         * tests/test-sys_select.c (main): Likewise.
5284         * tests/test-sys_socket.c (main): Likewise.
5285         * tests/test-u64.c (main): Likewise.
5286         * tests/test-xfprintf-posix.c (main): Likewise.
5287         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
5288
5289         sockets: avoid compiler warning
5290         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
5291
5292         maint: detect usage(1) and other suspicious exits
5293         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
5294
5295 2009-10-29  Jim Meyering  <meyering@redhat.com>
5296
5297         timespec: long-to-int truncation could make timespec_cmp malfunction
5298         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
5299         a multiple of 2^32 nanoseconds as no difference.
5300
5301 2009-10-28  Jim Meyering  <meyering@redhat.com>
5302
5303         fprintftime: wrap macro code argument in "do {...} while(0)"
5304         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
5305         cpy macro must be a statement that can be followed by a semicolon.
5306         Now that the else clause contains a comment and is hence longer
5307         than one line, I require curly braces.  That in turn requires
5308         that we wrap this code block in the standard do...while(0).
5309
5310         fprintftime: remove stray semicolon from previous change
5311         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
5312
5313         fprintftime: avoid a warning about ignored fwrite return value
5314         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
5315         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
5316         that is unsafe.
5317         * modules/fprintftime (Depends-on): Add ignore-value.
5318
5319         exclude: avoid an unwarranted warning
5320         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
5321
5322 2009-10-27  Eric Blake  <ebb9@byu.net>
5323
5324         fseek: avoid compilation failure when fflush is replaced
5325         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
5326         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
5327         module is in use.
5328         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
5329         module is not in use; since REPLACE_FSEEK worked otherwise.
5330         (GNULIB_FTELLO): Likewise for ftell.
5331         Reported by Ian Beckwith and others.
5332
5333 2009-10-27  Bruno Haible  <bruno@clisp.org>
5334
5335         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
5336         Reported by Jim Meyering.
5337
5338 2009-10-27  Jim Meyering  <jim@meyering.net>
5339             Bruno Haible  <bruno@clisp.org>
5340
5341         Avoid warning despite dropping the return value of fwrite.
5342         * lib/unicodeio.c: Include ignore-value.h.
5343         (fwrite_success_callback): Explicitly ignore fwrite's return value.
5344         * modules/unicodeio (Depends-on): Add ignore-value.
5345
5346 2009-10-26  Eric Blake  <ebb9@byu.net>
5347
5348         areadlinkat: fix fallback path
5349         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
5350         pointer and zero.
5351
5352 2009-10-22  Pádraig Brady  <P@draigBrady.com>
5353
5354         Use a better IO block size for modern systems
5355         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
5356         * lib/md2.c: Likewise.
5357         * lib/md4.c: Likewise.
5358         * lib/md5.c: Likewise.
5359         * lib/sha1.c: Likewise.
5360         * lib/sha256.c: Likewise.
5361         * lib/sha512.c: Likewise.
5362
5363 2009-10-22  Eric Blake  <ebb9@byu.net>
5364
5365         tests: avoid several compiler warnings
5366         * tests/test-getcwd.c (main): Avoid buffer underflow.
5367         * tests/test-getdate.c (main): String literals are not safe with
5368         putenv, so use setenv.  Declare unused argument.
5369         * modules/getdate-tests (Depends-on): Add setenv.
5370         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
5371         problems with string literals in char *.
5372         * tests/test-hash.c (main): Avoid shadowing declaration.
5373         (insert_new): Treat string literals as char const *.
5374         * tests/test-getopt.h (test_getopt): Likewise.
5375         (getopt_loop): Alter types to minimize casting elsewhere.
5376         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
5377         (test_getopt_long_posix): Likewise.
5378         (do_getopt_long): Add wrapper to minimize casting.
5379         * tests/test-atexit.c (clear_temp_file): Use void.
5380         * tests/test-areadlink-with-size.c (main): Declare unused
5381         arguments.
5382         * tests/test-areadlink.c (main): Likewise.
5383         * tests/test-areadlinkat-with-size.c (main): Likewise.
5384         * tests/test-areadlinkat.c (main): Likewise.
5385         * tests/test-canonicalize-lgpl.c (main): Likewise.
5386         * tests/test-canonicalize.c (main): Likewise.
5387         * tests/test-dirent-safer.c (main): Likewise.
5388         * tests/test-dirname.c (main): Likewise.
5389         * tests/test-dup2.c (main): Likewise.
5390         * tests/test-fchdir.c (main): Likewise.
5391         * tests/test-fcntl-h.c (main): Likewise.
5392         * tests/test-fcntl-safer.c (main): Likewise.
5393         * tests/test-fdopendir.c (main): Likewise.
5394         * tests/test-fdutimensat.c (main): Likewise.
5395         * tests/test-fflush.c (main): Likewise.
5396         * tests/test-filenamecat.c (main): Likewise.
5397         * tests/test-filevercmp.c (main): Likewise.
5398         * tests/test-fopen-safer.c (main): Likewise.
5399         * tests/test-fopen.c (main): Likewise.
5400         * tests/test-fpending.c (main): Likewise.
5401         * tests/test-fpurge.c (main): Likewise.
5402         * tests/test-freading.c (main): Likewise.
5403         * tests/test-fstatat.c (main): Likewise.
5404         * tests/test-fsync.c (main): Likewise.
5405         * tests/test-futimens.c (main): Likewise.
5406         * tests/test-getndelim2.c (main): Likewise.
5407         * tests/test-gettimeofday.c (main): Likewise.
5408         * tests/test-getopt.c (main): Likewise.
5409         * tests/test-i-ring.c (main): Likewise.
5410         * tests/test-inttypes.c (main): Likewise.
5411         * tests/test-link.c (main): Likewise.
5412         * tests/test-lstat.c (main): Likewise.
5413         * tests/test-math.c (main): Likewise.
5414         * tests/test-md5.c (main): Likewise.
5415         * tests/test-memchr2.c (main): Likewise.
5416         * tests/test-memrchr.c (main): Likewise.
5417         * tests/test-mkdir.c (main): Likewise.
5418         * tests/test-mkdirat.c (main): Likewise.
5419         * tests/test-mkfifoat.c (main): Likewise.
5420         * tests/test-open.c (main): Likewise.
5421         * tests/test-openat-safer.c (main): Likewise.
5422         * tests/test-openat.c (main): Likewise.
5423         * tests/test-quotearg.c (main): Likewise.
5424         * tests/test-rawmemchr.c (main): Likewise.
5425         * tests/test-readlink.c (main): Likewise.
5426         * tests/test-remove.c (main): Likewise.
5427         * tests/test-rename.c (main): Likewise.
5428         * tests/test-renameat.c (main): Likewise.
5429         * tests/test-rmdir.c (main): Likewise.
5430         * tests/test-sha1.c (main): Likewise.
5431         * tests/test-signal.c (main): Likewise.
5432         * tests/test-sigaction.c (main): Likewise.
5433         * tests/test-stat.c (main): Likewise.
5434         * tests/test-stat-time.c (main): Likewise.
5435         * tests/test-stddef.c (main): Likewise.
5436         * tests/test-stdint.c (main): Likewise.
5437         * tests/test-stdio.c (main): Likewise.
5438         * tests/test-stdlib.c (main): Likewise.
5439         * tests/test-strchrnul.c (main): Likewise.
5440         * tests/test-strerror.c (main): Likewise.
5441         * tests/test-string.c (main): Likewise.
5442         * tests/test-strtod.c (main): Likewise.
5443         * tests/test-strverscmp.c (main): Likewise.
5444         * tests/test-symlink.c (main): Likewise.
5445         * tests/test-symlinkat.c (main): Likewise.
5446         * tests/test-sys_stat.c (main): Likewise.
5447         * tests/test-sys_time.c (main): Likewise.
5448         * tests/test-time.c (main): Likewise.
5449         * tests/test-unistd.c (main): Likewise.
5450         * tests/test-unlink.c (main): Likewise.
5451         * tests/test-unlinkat.c (main): Likewise.
5452         * tests/test-utimens.c (main): Likewise.
5453         * tests/test-utimensat.c (main): Likewise.
5454         * tests/test-version-etc.c (main): Likewise.
5455         * tests/test-wchar.c (main): Likewise.
5456         * tests/test-wctype.c (main): Likewise.
5457         * tests/test-xprintf-posix.c (main): Likewise.
5458         * tests/test-posixtm.c (main): Likewise.
5459         (STREQ): Delete unused macro.
5460         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
5461         shadowed variables.
5462         * tests/test-memchr.c (main): Likewise.
5463
5464 2009-10-21  Eric Blake  <ebb9@byu.net>
5465
5466         areadlinkat: avoid failure on older glibc
5467         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
5468         rather than mis-comparing 0 against FUNC_RESULT of char*.
5469
5470 2009-10-21  Bruno Haible  <bruno@clisp.org>
5471
5472         * modules/stpncpy (License): Relicense under LGPLv2+.
5473         Reported by David Lutterkort <lutter@redhat.com>.
5474
5475 2009-10-20  Eric Blake  <ebb9@byu.net>
5476
5477         utimensat: work around Solaris 9 bug
5478         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
5479         has trailing slash bugs.
5480         * tests/test-lutimens.h (test_lutimens): Enhance test.
5481         * tests/test-utimens.h (test_utimens): Likewise.
5482         * doc/posix-functions/utime.texi (utime): Enhance documentation.
5483         * doc/posix-functions/utimes.texi (utimes): Likewise.
5484         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5485         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
5486         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
5487         * doc/posix-functions/futimens.texi (futimens): Likewise.
5488
5489         fdutimensat: new module
5490         * modules/fdutimensat: New file.
5491         * lib/fdutimensat.c (fdutimensat): Likewise.
5492         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
5493         * MODULES.html.sh (File system functions): Mention module.
5494         * modules/fdutimensat-tests: New test.
5495         * tests/test-fdutimensat.c: Likewise.
5496
5497         doc: regenerate INSTALL
5498         * doc/INSTALL: Reflect recent autoconf update.
5499         * doc/INSTALL.ISO: Likewise.
5500         * doc/INSTALL.UTF-8: Likewise.
5501
5502 2009-10-20  Pádraig Brady  <P@draigBrady.com>
5503
5504         acl: warn if ACL support is not detected
5505         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
5506
5507 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
5508
5509         * lib/nproc.h: Add extern "C" block for C++.
5510
5511 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
5512             Bruno Haible  <bruno@clisp.org>
5513
5514         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
5515         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
5516         * doc/posix-functions/isalpha.texi: Likewise.
5517         * doc/posix-functions/isblank.texi: Likewise.
5518         * doc/posix-functions/iscntrl.texi: Likewise.
5519         * doc/posix-functions/isdigit.texi: Likewise.
5520         * doc/posix-functions/isgraph.texi: Likewise.
5521         * doc/posix-functions/islower.texi: Likewise.
5522         * doc/posix-functions/isprint.texi: Likewise.
5523         * doc/posix-functions/ispunct.texi: Likewise.
5524         * doc/posix-functions/isspace.texi: Likewise.
5525         * doc/posix-functions/isupper.texi: Likewise.
5526         * doc/posix-functions/isxdigit.texi: Likewise.
5527
5528 2009-10-18  Bruno Haible  <bruno@clisp.org>
5529
5530         Tests for module 'isblank'.
5531         * modules/isblank-tests: New file.
5532         * tests/test-isblank.c: New file.
5533
5534         New module 'isblank'.
5535         * lib/isblank.c: New file.
5536         * m4/isblank.m4: New file.
5537         * modules/isblank: New file.
5538         * doc/posix-functions/isblank.texi: Mention the new module.
5539
5540 2009-10-18  Bruno Haible  <bruno@clisp.org>
5541
5542         New module 'ctype'.
5543         * lib/ctype.in.h: New file.
5544         * m4/ctype.m4: New file.
5545         * modules/ctype: New file.
5546         * doc/posix-headers/ctype.texi: Mention the new module.
5547
5548 2009-10-18  Jim Meyering  <meyering@redhat.com>
5549
5550         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
5551         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
5552         right after its initialization, rather than farther down.
5553         Keeping these in close proximity makes it easier to ensure
5554         that each such variable is initialized.  E.g.,
5555
5556             LIB_CLOCK_GETTIME=
5557             AC_SUBST([LIB_CLOCK_GETTIME])
5558
5559         This change also increments these serial numbers.
5560         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
5561         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
5562         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5563
5564 2009-10-18  Bruno Haible  <bruno@clisp.org>
5565
5566         Don't let environment variables perturb build.
5567         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
5568         (gl_PREREQ_GETHRXTIME): ... not here.
5569
5570 2009-10-18  Bruno Haible  <bruno@clisp.org>
5571
5572         Avoid symlink attack in localcharset module.
5573         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
5574         (O_NOFOLLOW): Define fallback.
5575         (get_charset_aliases): Don't open the file if it is a symbolic link.
5576         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
5577         gl_FCNTL_H.
5578         (gl_FCNTL_H): Require it.
5579         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
5580         * modules/localcharset (Files): Add m4/fcntl_h.m4.
5581         Reported by Fergal Glynn <fglynn@veracode.com>.
5582
5583 2009-10-18  Bruno Haible  <bruno@clisp.org>
5584
5585         Implement nproc for mingw.
5586         * lib/nproc.c: Include <windows.h>
5587         (num_processors): On native Windows platforms, try GetSystemInfo.
5588
5589 2009-10-18  Bruno Haible  <bruno@clisp.org>
5590
5591         Implement nproc for IRIX.
5592         * lib/nproc.c: Include <sys/sysmp.h>.
5593         (num_processors): On IRIX systems, try sysmp.
5594         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
5595
5596 2009-10-18  Bruno Haible  <bruno@clisp.org>
5597
5598         Implement nproc for HP-UX.
5599         * lib/nproc.c: Include <sys/pstat.h>
5600         (num_processors): On HP-UX systems, try pstat_getdynamic.
5601         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
5602         pstat_getdynamic.
5603
5604 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
5605             Bruno Haible  <bruno@clisp.org>
5606
5607         Implement nproc for NetBSD, OpenBSD.
5608         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
5609         (ARRAY_SIZE): New macro.
5610         (num_processors): On BSD systems, try sysctl of HW_NCPU.
5611         * m4/nproc.m4: New file.
5612         * modules/nproc (Files): Add m4/nproc.m4.
5613         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
5614         (Makefile.am): Instead, augment lib_SOURCES.
5615
5616 2009-10-18  Bruno Haible  <bruno@clisp.org>
5617
5618         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
5619         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
5620         sys/param.h.
5621
5622 2009-10-16  Eric Blake  <ebb9@byu.net>
5623
5624         utimensat: new module
5625         * modules/utimensat: New file.
5626         * lib/utimensat.c (utimensat): Likewise.
5627         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5628         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
5629         so we can work around Linux bugs.
5630         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
5631         * modules/sys_stat (Makefile.am): Substitute them.
5632         * lib/sys_stat.in.h (utimensat): Declare it.
5633         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5634         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5635         * modules/utimensat-tests: New test.
5636         * tests/test-utimensat.c: Likewise.
5637
5638         utimens: let lutimens work on non-symlinks
5639         * lib/utimens.c (lutimens): Fall back to utimens rather than
5640         failing with ENOSYS, when file is not a symlink.
5641         (utimens): Reduce redirection.
5642         * tests/test-lutimens.h (test_lutimens): Update test to cover
5643         non-symlinks.
5644         * tests/test-utimens.h (test_utimens): Update test to cover
5645         symlinks.
5646         * tests/test-utimens.c (main): Update caller.
5647
5648         utimens: cache whether utimensat syscall works
5649         * lib/utimens.c (utimensat_works_really): New cache variable.
5650         (fdutimens, lutimens): Use it to avoid failing syscall.
5651
5652         test-stat-time, test-utimens: improve portability
5653         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
5654         ext4 on alpha, and for cygwin.
5655         * tests/test-utimens-common.h: New file.
5656         (nap): Factor delays into single function.
5657         * tests/test-lutimens.h (test_lutimens): Use new header.
5658         * tests/test-futimens.h (test_futimens): Likewise.
5659         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
5660         timestamps to occur from same machine, as was done previously for
5661         test_utimens.
5662         * modules/utimens-tests (Files): Ship new file.
5663         * modules/futimens-tests (Files): Likewise.
5664         Reported in part by Jim Meyering.
5665
5666         sys_stat: sort replacement declarations
5667         * lib/sys_stat.in.h: Sort declarations.
5668         * lib/futimens.c (futimens): Fix typo.
5669
5670 2009-10-15  Jim Meyering  <meyering@redhat.com>
5671
5672         don't let environment settings perturb build
5673         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
5674         could cause a configure-time and/or build-time malfunction.
5675         Typically, a configure-time function-in-library test is performed
5676         via code like this:
5677
5678           LIB_VAR=
5679           AC_SUBST([LIB_VAR])
5680           prefix_saved_LIBS=$LIBS
5681             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
5682                        [test "$ac_cv_search_FUNC" = "none required" ||
5683                         LIB_VAR=$ac_cv_search_FUNC])
5684           LIBS=$prefix_saved_LIBS
5685
5686         However, in each of the files affected by this change, the LIB_VAR=
5687         initialization was omitted.  Thus, when set in the environment, its
5688         value would propagate into generated Makefiles when FUNC is not found
5689         in LIB_NAME.
5690         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
5691         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
5692         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5693
5694 2009-10-14  Eric Blake  <ebb9@byu.net>
5695
5696         fchdir: avoid infinite recursion in mingw
5697         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
5698         recursing.
5699
5700         test-stat-time: port to mingw
5701         * tests/test-stat-time.c (force_unlink): Return a value.
5702         (test_ctime) [W32]: Fix compilation error.
5703         (nap): Don't call usleep with too large an argument.  Use
5704         force_unlink.
5705         * doc/pastposix-functions/usleep.texi (usleep): Document the
5706         portability issue.
5707
5708 2009-10-13  Jim Meyering  <meyering@redhat.com>
5709
5710         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
5711         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
5712         * modules/pipe-filter-ii: Likewise.
5713         * modules/sys_socket-tests: Likewise.
5714         * modules/tsearch-tests: Likewise.
5715         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
5716         (check): Depend on it.
5717
5718 2009-10-12  Eric Blake  <ebb9@byu.net>
5719
5720         utimens-tests: port to NFS file systems
5721         * tests/test-utimens.h (test_utimens): Refactor utimecmp
5722         comparisons to avoid spurious failures from timestamp drift
5723         between NFS machines.
5724
5725 2009-10-12  Eric Blake  <ebb9@byu.net>
5726
5727         stat-time-tests: minor cleanups
5728         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
5729         * tests/test-stat-time.c (nap): Separate assignment from call.
5730         Suggested by Paolo Bonzini and Bruno Haible.
5731
5732         sys_stat: guarantee struct timespec
5733         * lib/sys_stat.in.h (includes): Always include <time.h>
5734         * modules/sys_stat (Depends-on): Add time.
5735         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
5736         mode_t permission values.
5737         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
5738         get at subsecond timestamps.
5739
5740 2009-10-10  Eric Blake  <ebb9@byu.net>
5741
5742         futimens: new module
5743         * modules/futimens: New file.
5744         * lib/futimens.c (futimens): Likewise.
5745         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
5746         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
5747         we can work around Linux bugs.
5748         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
5749         * modules/sys_stat (Makefile.am): Substitute them.
5750         * lib/sys_stat.in.h (futimens): Declare it.
5751         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5752         * doc/posix-functions/futimens.texi (futimens): Likewise.
5753         * modules/futimens-tests: New test.
5754         * tests/test-futimens.c: Likewise.
5755
5756         utimens: introduce fdutimens
5757         * lib/utimens.h (fdutimens): New prototype.
5758         * lib/utimens.c (gl_futimens): Move guts...
5759         (fdutimens): ...to new interface.
5760         * tests/test-utimens.c (do_fdutimens): Use it.
5761
5762         utimens: add UTIME_NOW and UTIME_OMIT support
5763         * lib/utimens.c (validate_timespec, update_timespec): New helper
5764         functions.
5765         (gl_futimens, lutimens): Use them.
5766         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
5767         stdbool, sys_stat.
5768         (Link): Mention resulting library dependency.
5769         * modules/utimecmp (Link): Likewise.
5770         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
5771         (Makefile.am): Pick up library dependency.
5772         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
5773         definition.
5774         * tests/test-sys_stat.c: Test the definitions.
5775         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
5776         * NEWS: Document library dependency.
5777
5778         utimecmp: support symlink timestamps
5779         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
5780         hashing when possible.  Use pathconf when available.
5781         (SYSCALL_RESOLUTION): Recognize tighter resolution.
5782         * modules/utimecmp (Depends-on): Add lstat.
5783
5784         utimens: add lutimens interface
5785         * lib/utimens.c (lutimens): New function.
5786         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
5787         * lib/utimens.h (lutimens): Declare new interface.
5788         * tests/test-utimens.c (main): Enhance test.
5789         * tests/test-lutimens.h (test_lutimens): New file.
5790         * modules/utimens-tests (Files): Distribute it.
5791         (Depends-on): Add symlink.
5792         (configure.ac): Check for usleep.
5793
5794         utimens: validate futimens usage
5795         * lib/utimens.c (gl_futimens): Require valid fd up front, using
5796         fewer syscalls on failure later on.  Avoid compiler warning on
5797         mingw.
5798         * modules/utimens (Depends-on): Add dup2.
5799
5800         utimens: add test
5801         * modules/utimens-tests: New test.
5802         * tests/test-utimens.h: New file.
5803         * tests/test-futimens.h: Likewise.
5804         * tests/test-utimens.c: Likewise.
5805
5806         doc: mention timestamp portability issues
5807         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
5808         instead.
5809         * doc/posix-functions/utime.texi (utime): Likewise.
5810         * doc/posix-functions/utimes.texi (utimes): Likewise.
5811         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
5812         instead.
5813         * doc/posix-functions/futimens.texi (futimens): Mention utimens
5814         module.
5815         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5816         Mention weakness with symlink timestamps.
5817         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
5818         to utimensat/futimens instead.
5819         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
5820
5821         test-dup2: enhance test
5822         * tests/test-dup2.c (main): Also check AT_FDCWD.
5823
5824         test-stat-time: avoid more spurious failures
5825         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
5826         xfs; and avoid race if the two timestamps cross quantization edge.
5827
5828         relocatable: prefer 'file system' over 'filesystem'
5829         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
5830         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
5831         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
5832         * doc/relocatable.texi (Enabling Relocatability): Likewise.
5833         * lib/relocatable.c (compute_curr_prefix): Likewise.
5834
5835 2009-10-10  Jim Meyering  <meyering@redhat.com>
5836
5837         stat-time-tests: check for the usleep function
5838         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
5839
5840 2009-10-10  Bruno Haible  <bruno@clisp.org>
5841
5842         * modules/xnanosleep: Put the Link section after the Include section.
5843
5844 2009-10-09  Eric Blake  <ebb9@byu.net>
5845
5846         dup2: work around FreeBSD 6.1 bug
5847         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
5848         * doc/posix-functions/dup2.texi (dup2): Document it.
5849         Reported by Nelson H. F. Beebe and Jim Meyering.
5850
5851         test-stat-time: port to buggy NFS clients
5852         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
5853         (test_ctime): Also skip test if mtime and ctime are skewed.
5854
5855         maint: prefer 'file system' over 'filesystem'
5856         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
5857         * doc/posix-functions/lstat.texi (lstat): Likewise.
5858         * lib/file-has-acl.c (file_has_acl): Likewise.
5859         * lib/fwriteerror.c [TEST]: Likewise.
5860         * tests/test-areadlink.h (test_areadlink): Likewise.
5861         * tests/test-areadlinkat-with-size.c (main): Likewise.
5862         * tests/test-areadlinkat.c (main): Likewise.
5863         * tests/test-canonicalize-lgpl.c (main): Likewise.
5864         * tests/test-canonicalize.c (main): Likewise.
5865         * tests/test-fstatat.c (main): Likewise.
5866         * tests/test-linkat.c (main): Likewise.
5867         * tests/test-lstat.h (test_lstat_func): Likewise.
5868         * tests/test-mkdir.h (test_mkdir): Likewise.
5869         * tests/test-readlink.h (test_readlink): Likewise.
5870         * tests/test-remove.c (main): Likewise.
5871         * tests/test-rename.h (test_rename): Likewise.
5872         * tests/test-renameat.c (main): Likewise.
5873         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5874         * tests/test-symlink.h (test_symlink): Likewise.
5875         * tests/test-symlinkat.c (main): Likewise.
5876         * tests/test-unlink.h (test_unlink_func): Likewise.
5877         * tests/test-unlinkat.c (main): Likewise.
5878
5879         maint: make realtime library usage explicit
5880         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
5881         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
5882         * modules/settime (Link): Likewise.
5883         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
5884
5885         test-stat-time: speed up execution
5886         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
5887         warning on mingw.
5888         (nap): New helper function.
5889         (prepare_test): Use it to reduce sleep time.
5890         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
5891         execution.
5892         * modules/stat-time-tests (configure.ac): Check for usleep.
5893
5894 2009-10-09  Jim Meyering  <meyering@redhat.com>
5895
5896         selinux-h: always use getfilecon wrappers
5897         * lib/getfilecon.c: New file.
5898         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
5899         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
5900         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
5901         (fgetfilecon): Provide a stub.
5902         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
5903         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
5904         file unconditionally.
5905         When <selinux/selinux.h> is found, arrange to use wrappers.
5906         * modules/selinux-h (Files): Add getfilecon.c.
5907         (Makefile.am): Substitute include-next-related bits
5908         into the now-always-generated selinux/selinux.h file.
5909         * doc/glibc-functions/lgetfilecon.texi: New file.
5910         * doc/glibc-functions/fgetfilecon.texi: New file.
5911         * doc/glibc-functions/getfilecon.texi: New file.
5912         * doc/glibc-functions/getfilecon-desc.texi: New file.
5913         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
5914         which to pull in the new files.
5915         * MODULES.html.sh (Misc): Add selinux-h.
5916
5917 2009-10-08  Jim Meyering  <meyering@redhat.com>
5918
5919         unistd: fix comment typo
5920         * lib/unistd.in.h (euidaccess): Fix a comment typo.
5921
5922 2009-10-08  Eric Blake  <ebb9@byu.net>
5923
5924         areadlink: use SIZE_MAX consistently
5925         * modules/areadlink (Depends-on): Add stdint.
5926         * modules/areadlink-with-size (Depends-on): Likewise.
5927         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
5928         gives NULL; drop sys/types, since unistd gives size_t; and add
5929         stdint for SIZE_MAX.
5930         (SIZE_MAX): Rely on headers.
5931         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
5932         and add stdint.
5933         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
5934         (SIZE_MAX): Likewise.
5935         (INITIAL_BUF_SIZE): Turn into enum.
5936         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
5937
5938 2009-10-08  Jim Meyering  <meyering@redhat.com>
5939
5940         areadlinkat: avoid compilation failure
5941         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
5942         Fix typo in comment.
5943
5944 2009-10-07  Eric Blake  <ebb9@byu.net>
5945
5946         areadlinkat-with-size: new module
5947         * modules/areadlinkat-with-size: New module.
5948         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
5949         * lib/areadlink.h (areadlinkat): Declare it.
5950         * MODULES.html.sh (File system functions): Mention it.
5951         * modules/areadlinkat-with-size-tests: New test.
5952         * tests/test-areadlinkat-with-size.c: New file.
5953
5954         xreadlinkat: new module
5955         * modules/xreadlinkat: New module.
5956         * lib/xreadlinkat.c (xreadlinkat): New file.
5957         * lib/xreadlink.h (xreadlinkat): Declare it.
5958         * MODULES.html.sh (File system functions): Mention it.
5959
5960         areadlinkat: new module
5961         * lib/at-func.c (FUNC_FAIL): New define.
5962         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
5963         * modules/areadlinkat: New module.
5964         * lib/linkat.c (areadlinkat): Move...
5965         * lib/areadlinkat.c (areadlinkat): ...to new file.
5966         * lib/areadlink.h (areadlinkat): Declare it.
5967         * modules/linkat (Depends-on): Add areadlinkat.
5968         * MODULES.html.sh (File system functions): Mention it.
5969         * modules/areadlinkat-tests: New test.
5970         * tests/test-areadlinkat.c: New file.
5971
5972         areadlink, areadlink-with-size: add tests
5973         * modules/areadlink-tests: New test.
5974         * modules/areadlink-with-size-tests: Likewise.
5975         * tests/test-areadlink.h: New file.
5976         * tests/test-areadlink.c: Likewise.
5977         * tests/test-areadlink-with-size.c: Likewise.
5978
5979         maint: minor cleanups
5980         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
5981         _UNUSED_PARAMETER_ instead.
5982         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
5983         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
5984         * modules/linkat-tests (Files): Distribute test-link.h.
5985
5986         openat, utimens: whitespace cleanup
5987         * lib/openat.c: Prefer space throughout, rather than mix of 8
5988         spaces vs. tabs.
5989         * lib/at-func.c: Likewise.
5990         * lib/utimens.c: Likewise.
5991
5992         openat: avoid using wrong fd
5993         * lib/openat.c (openat_permissive): Reject user's fd if saving the
5994         working directory chooses same fd.
5995         * lib/at-func.c (AT_FUNC_NAME): Likewise.
5996
5997         mkdir, mkdirat: fix cygwin 1.5.x bug
5998         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
5999         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
6000         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
6001         bug.
6002         (gl_PREREQ_MKDIR): Delete unused macro.
6003         * modules/mkdir (Files): Track file rename.
6004         (configure.ac): Update macro name.
6005         * modules/openat (Depends-on): Add mkdir.
6006         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
6007
6008         mkdir, mkdirat: add tests
6009         * modules/mkdir-tests: New test.
6010         * tests/test-mkdir.h: New file.
6011         * tests/test-mkdir.c: Likewise.
6012         * tests/test-mkdirat.c: Likewise.
6013         * modules/openat-tests (Files): Add new files.
6014         (Makefile.am): Run new test.
6015
6016 2009-10-06  Eric Blake  <ebb9@byu.net>
6017
6018         doc: tweak *at function documentation
6019         * doc/posix-functions/faccessat.texi (faccessat): Mention
6020         known issue with replacement.
6021         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
6022         * doc/posix-functions/linkat.texi (linkat): Likewise.
6023         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
6024         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
6025         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6026         * doc/posix-functions/renameat.texi (renameat): Likewise.
6027         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6028
6029         openat: fix GNU/Hurd bug in unlinkat
6030         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
6031         broken.
6032         * doc/posix-functions/unlink.texi (unlink): Document this.
6033         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
6034
6035         fdopendir: fix GNU/Hurd bug
6036         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
6037         allowing non-directory fds.
6038         * lib/fdopendir.c (rpl_fdopendir): Work around it.
6039         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
6040         * modules/dirent (Makefile.am): Substitute it.
6041         * lib/dirent.in.h (fdopendir): Declare replacement.
6042         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
6043         * tests/test-fdopendir.c (main): Test something other than
6044         /dev/null, since on Hurd that behaves like a directory.
6045
6046         test-symlink: port to GNU/Hurd
6047         * tests/test-symlink.h (test_symlink): Relax expected errno.
6048
6049         doc: tweak more cygwin information
6050         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
6051         now compatible with glibc.
6052         * doc/posix-functions/getopt.texi (getopt): Likewise.
6053
6054         getopt-gnu: add another test
6055         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
6056         guarantee behavior relied on by m4.
6057         * tests/test-getopt.c (main): Use it.
6058         * modules/getopt-posix-tests (Depends-on): Add setenv.
6059         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
6060
6061         getopt: fix compilation on darwin
6062         * lib/getopt.in.h (includes): Leave breadcrumbs during system
6063         include.
6064         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
6065         Reported by Ludovic Courtès.
6066
6067 2009-10-06  Bruno Haible  <bruno@clisp.org>
6068
6069         * modules/size_max (Description): Discourage its use.
6070         Reported by Simon Josefsson.
6071
6072 2009-10-06  Jim Meyering  <meyering@redhat.com>
6073
6074         linkat: avoid compilation failure
6075         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
6076
6077 2009-10-05  Eric Blake  <ebb9@byu.net>
6078
6079         linkat: support Linux 2.6.17
6080         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
6081         linkat on Linux, but allow cache variable override.
6082         * lib/linkat.c (rpl_linkat): Define override.
6083         * modules/linkat (Depends-on): Add symlinkat.
6084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
6085         * modules/unistd (Makefile.am): Substitute it.
6086         * lib/unistd.in.h (linkat): Declare replacement.
6087         Reported by Pádraig Brady.
6088
6089         quotearg: port test to systems with C.UTF-8 locale
6090         * tests/test-quotearg.c (struct result_strings): Add another
6091         member, differentiating between C.ASCII and C.UTF-8 handling.
6092         (compare_strings): Add parameter.
6093         (main): Adjust all callers.
6094
6095         getopt: avoid clash with FreeBSD _getopt_internal
6096         * lib/getopt.in.h (_getopt_internal): Override the name.
6097         * lib/getopt_int.h (includes): Pick up any overrides.
6098         Reported by Reuben Thomas.
6099
6100         hash: allow C89 compilation
6101         * lib/hash.c (check_tuning): Move declaration before statement.
6102         Reported by Reuben Thomas.
6103
6104 2009-10-05  Karl Berry  <karl@gnu.org>
6105
6106         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
6107
6108 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
6109             Bruno Haible  <bruno@clisp.org>
6110
6111         * lib/uname.c (uname): Use a table-driven algorithm to compute
6112         Windows NT versions.
6113
6114 2009-10-04  Bruno Haible  <bruno@clisp.org>
6115
6116         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
6117         program_invocation_short_name.
6118         * modules/progname (configure.ac): Test for presence of
6119         program_invocation_short_name.
6120         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
6121
6122 2009-10-04  Bruno Haible  <bruno@clisp.org>
6123
6124         * lib/progname.c (set_program_name): Fix comment.
6125         Reported by Jim Meyering.
6126
6127 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
6128             Bruno Haible  <bruno@clisp.org>
6129
6130         * lib/uname.c: Include <string.h>.
6131         (uname): Do only one call to GetVersionEx in the common case.
6132
6133 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
6134             Bruno Haible  <bruno@clisp.org>
6135
6136         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
6137         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
6138         (uname): Add support for Windows CE and various non-x86 CPU types.
6139
6140 2009-10-03  Bruno Haible  <bruno@clisp.org>
6141
6142         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
6143         invocation to tests/configure.ac.
6144         Reported by Ian Beckwith <ianb@erislabs.net>.
6145
6146 2009-10-02  Eric Blake  <ebb9@byu.net>
6147
6148         fchdir: avoid compiler warning
6149         * lib/fchdir.c (canonicalize_file_name)
6150         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
6151
6152         test-open: support mingw errno values
6153         * tests/test-open.h (test_open): Relax test.
6154         * tests/test-fopen.h (test_fopen): Likewise.
6155         * tests/test-openat-safer.c (main): Likewise.
6156
6157         open: fix opening directory on mingw
6158         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
6159
6160         test-open: on GNU/Hurd, /dev/null is a directory
6161         * tests/test-fopen.h (main): Rename...
6162         (test_fopen): ...to this.  Use a guaranteed non-directory when
6163         confirming open behavior on trailing slash.
6164         * tests/test-openat-safer.c (main): Likewise.
6165         * tests/test-open.h (main): Likewise....
6166         (test_open): ...to this.
6167         * tests/test-fopen.c (main): Adjust caller.
6168         * tests/test-fopen-safer.c (main): Likewise.
6169         * tests/test-open.c (main): Likewise.
6170         * tests/test-fcntl-safer.c (main): Likewise.
6171         Reported by Samuel Thibault.
6172
6173         rename, fchdir: don't ignore chdir failure
6174         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
6175         * lib/rename.c (rpl_rename) [W32]: Likewise.
6176         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
6177         an empty destination directory if source cannot be renamed,
6178         although there is still possibility for failure.
6179         * doc/posix-functions/rename.texi (rename): Document the race.
6180         Reported by Jim Meyering.
6181
6182         maint: cleanup whitespace in recent commits
6183         * lib/rename.c (rpl_rename): Remove tabs.
6184         * tests/test-link.h (test_link): Likewise.
6185         * lib/fchdir.c (get_name): Likewise.
6186         Reported by Jim Meyering.
6187
6188 2009-10-02  Ben Pfaff  <blp@gnu.org>
6189
6190         relocatable-prog-wrapper: Add missing dependency on
6191         double-slash-root.
6192         * modules/relocatable-prog-wrapper: Add dependency.
6193         Reported by Ian Beckwith <ianb@erislabs.net>.
6194
6195 2009-10-02  Eric Blake  <ebb9@byu.net>
6196
6197         renameat: fix Solaris bugs
6198         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
6199         needed fixing.
6200         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
6201         * modules/stdio (Makefile.am): Substitute it.
6202         * lib/stdio.in.h (renameat): Declare replacement.
6203         * lib/renameat.c (rpl_renameat): Implement fix.
6204
6205         renameat: new module
6206         * modules/renameat: New file.
6207         * lib/renameat.c (renameat): Likewise.
6208         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
6209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
6210         * modules/stdio (Makefile.am): Substitute them.
6211         * lib/stdio.in.h (renameat): Declare it.
6212         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6213         * doc/posix-functions/renameat.texi (renameat): Likewise.
6214         * modules/renameat-tests: New test.
6215         * tests/test-renameat.c: Likewise.
6216
6217         rename: fix mingw bugs
6218         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
6219         directory overwrite bugs.
6220
6221         rename: fix another cygwin 1.5 bug
6222         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
6223         checks.
6224         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
6225         unnecessary cygwin workarounds.  Also work around bug with moving
6226         full directory onto an empty one.
6227         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
6228
6229         rename-dest-slash: merge into rename module
6230         * modules/rename-dest-slash (Status): Mark obsolete.
6231         (Depends-on): Add rename.
6232         (Files): Let rename do it all.
6233         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
6234         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
6235         * m4/rename-dest-slash.m4: ...so this file can be deleted.
6236         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
6237         * lib/rename.c (rpl_rename): Update comments.
6238
6239         rename: fix cygwin 1.5.x bugs
6240         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
6241         * lib/rename.c (rpl_rename): Work around them.
6242         * modules/rename (Depends-on): Add same-inode.
6243
6244         rename: fix Solaris 10 bug
6245         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
6246         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
6247         was the only bug.
6248
6249         rename: fix Solaris 9 bug
6250         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
6251         on non-directory.  Avoid calling exit.
6252         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
6253         strdup.
6254         * modules/rename-tests (Depends-on): Drop lstat.
6255         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
6256         (gl_PREREQ_RENAME): Delete unused macro.
6257
6258         rename-dest-slash: fix NetBSD bug
6259         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
6260         links.
6261         * modules/rename-dest-slash (Depends-on): Add same-inode.
6262
6263         rename-tests: new test, exposes several platform bugs
6264         * modules/rename-tests: New file.
6265         * tests/test-rename.h: Likewise.
6266         * tests/test-rename.c: Likewise.
6267         * doc/posix-functions/rename.texi (rename): Improve documentation,
6268         including bugs that will eventually be fixed in gnulib.
6269
6270 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
6271
6272         * lib/uname.c: Include <stdlib.h>
6273         (uname): Assume version info is available.
6274
6275 2009-10-02  Jim Meyering  <meyering@redhat.com>
6276
6277         gnu-web-doc-update: correct --help output
6278         * build-aux/gnu-web-doc-update: Make --help output relevant.
6279
6280         gnu-web-doc-update: add standard options
6281         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
6282
6283         gnu-web-doc-update: New module.
6284         Use this script to automatically update the on-line web documentation
6285         for your GNU project at http://www.gnu.org/software/$pkg/manual/
6286         * modules/gnu-web-doc-update: New file, from coreutils.
6287         * build-aux/gnu-web-doc-update: New script.
6288
6289 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
6290
6291         link: LoadLibrary is not needed.
6292         * lib/link.c: Use GetModuleHandle.
6293
6294 2009-10-01  Eric Blake  <ebb9@byu.net>
6295
6296         getopt: bump serial number
6297         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
6298         change.
6299
6300         tests: tighten link, rmdir, and remove tests
6301         * tests/test-link.h (includes): No need to use <config.h> here.
6302         Clean up if directory hard link was created, otherwise test for
6303         trailing '.'.
6304         * tests/test-linkat.c (main): Simplify.
6305         * tests/test-remove.c (main): Enhance test for trailing '.'.
6306         * tests/test-rmdir.h (test_rmdir_func): Likewise.
6307
6308 2009-10-01  Jim Meyering  <meyering@redhat.com>
6309
6310         maint.mk: requiring "make major" was annoying, for a "minor" release.
6311         What is intended is "stable", to contrast with alpha and beta,
6312         so require "make stable", not "make major".
6313         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
6314         (get_tool_versions): Likewise.
6315         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
6316
6317 2009-09-30  Ben Pfaff  <blp@gnu.org>
6318
6319         Fix broken build of replacement for Windows tmpfile().
6320         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
6321         flags argument added along with the 'mkostemp' module.
6322
6323 2009-09-28  Bruno Haible  <bruno@clisp.org>
6324
6325         Avoid identifier clash with POSIX function 'remove' defined as a macro.
6326         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
6327         to 'remove_elt'.
6328         (gl_list_remove): Update.
6329         * lib/gl_list.c (gl_list_remove): Update.
6330         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
6331         to 'remove_elt'.
6332         (gl_oset_remove): Update.
6333         * lib/gl_list.c (gl_oset_remove): Update.
6334         Reported by Eric Blake.
6335
6336 2009-09-28  Eric Blake  <ebb9@byu.net>
6337
6338         doc: mention yet more cygwin 1.7 status
6339         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
6340         cygwin.
6341         * doc/glibc-functions/execvpe.texi (execvpe): New file.
6342         * doc/gnulib.texi (Glibc unistd.h): Mention it.
6343
6344         argp: fix test failure
6345         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
6346         that are not upper-case.  Pass correct range to tolower.
6347
6348 2009-09-27  Jim Meyering  <meyering@redhat.com>
6349
6350         test-yesno: work around sparc-dash here-document infelicity
6351         Without this change, the literal \177 byte in a here document
6352         would make dash 0.5.5.1-3 access uninitialized memory.
6353         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
6354         Instead, use a marker, "@", and filter through tr to create the desired
6355         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
6356
6357 2009-09-27  Bruno Haible  <bruno@clisp.org>
6358
6359         Disable untested support for new flavours of ACLs on AIX.
6360         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
6361         progress.
6362         * lib/set-mode-acl.c (qset_acl): Likewise.
6363
6364 2008-12-07  Bruno Haible  <bruno@clisp.org>
6365
6366         Add support for new flavours of ACLs on AIX. (Untested.)
6367         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
6368         (file_has_acl): Add support for newer AIX.
6369         * lib/set-mode-acl.c (qset_acl): Likewise.
6370         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
6371         Rainer Tammer <tammer@tammer.net>.
6372
6373 2009-09-26  Eric Blake  <ebb9@byu.net>
6374
6375         argp: fix compilation of getopt
6376         * lib/getopt.in.h (includes): Use different guard than glibc.
6377         Reported by Sergey Poznyakoff.
6378
6379         doc: mention more cygwin 1.7 status
6380         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
6381         bug.
6382         * doc/posix-functions/execl.texi (execl): Likewise.
6383         * doc/posix-functions/execle.texi (execle): Likewise.
6384         * doc/posix-functions/execlp.texi (execlp): Likewise.
6385         * doc/posix-functions/execv.texi (execv): Likewise.
6386         * doc/posix-functions/execve.texi (execve): Likewise.
6387         * doc/posix-functions/execvp.texi (execvp): Likewise.
6388         * doc/glibc-functions/canonicalize_file_name.texi
6389         (canonicalize_file_name): Cygwin 1.7 now provides this.
6390         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
6391         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
6392         on AT_SYMLINK_NOFOLLOW.
6393
6394 2009-09-24  Eric Blake  <ebb9@byu.net>
6395
6396         test-linkat: make test more robust
6397         * tests/test-linkat.c (main): Avoid collision with EEXIST.
6398
6399         getopt: fix inclusion guards for cygwin
6400         * modules/getopt-posix (Depends-on): Add include-next.
6401         (Makefile.am): Substitute more items in replacement header.
6402         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
6403         <getopt.h>.
6404         * lib/getopt.in.h (includes): Use split inclusion guard, and
6405         prefer <getopt.h> over include <unistd.h> when one is present.
6406         (option): Also override name of 'struct option'.
6407
6408         same-inode: revert prior change; it is not yet ready
6409         * NEWS: Undo mention of this change.
6410         * lib/same-inode.h (same-inode.h): Undo tri-state change.
6411         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
6412         * lib/cycle-check.c (cycle_check): Likewise.
6413         * lib/same.c (same_name): Likewise.
6414         * lib/at-func2.c (at_func2): Likewise.
6415
6416 2009-09-23  Eric Blake  <ebb9@byu.net>
6417
6418         linkat: new module
6419         * modules/linkat: New file.
6420         * lib/at-func2.c (at_func2): Likewise.
6421         * lib/linkat.c (linkat): Likewise.
6422         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
6423         * lib/openat-priv.h (at_func2): Add declaration.
6424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
6425         * modules/unistd (Makefile.am): Substitute them.
6426         * lib/unistd.in.h (linkat): Declare it.
6427         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6428         * doc/posix-functions/linkat.texi (linkat): Likewise.
6429         * doc/posix-functions/link.texi (link): Tweak wording.
6430         * tests/test-link.c (main): Move guts...
6431         * tests/test-link.h (test_link): ...into new file.
6432         * modules/linkat-tests: New test.
6433         * tests/test-linkat.c: Likewise.
6434         * modules/link-tests (Files): Ship new file.
6435         (Depends-on): Add stdbool.
6436
6437         dirname: add library-safe mdir_name
6438         * lib/dirname.h (mdir_name): New prototype.
6439         * lib/dirname.c (dir_name): Move guts...
6440         (mdir_name): ...to new function that avoids xalloc_die.
6441
6442         fchdir: another mingw fix
6443         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
6444         * lib/fchdir.c (get_name): New helper method; skips canonicalize
6445         on mingw (where it has not yet been ported), and make it optional
6446         elsewhere.
6447         (_gl_register_fd): Use it.
6448
6449         same-inode: make SAME_INODE tri-state, to port to mingw
6450         * NEWS: Mention this change.
6451         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
6452         st_ino always being 0.
6453         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
6454         * lib/cycle-check.c (cycle_check): Likewise.
6455         * lib/same.c (same_name): Likewise.
6456
6457         lstat: avoid mingw compilation error
6458         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
6459         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
6460         lstat ourselves.
6461         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
6462         was adequate.
6463         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
6464         the checks for lstat.
6465         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
6466
6467         link: fix test failure on Solaris 9
6468         * lib/link.c (rpl_link): Don't assume link will catch bogus
6469         trailing slash on source.
6470
6471         test-symlinkat: enhance test
6472         * tests/test-readlink.c (main): Move guts...
6473         * tests/test-readlink.h (test_readlink): ...into new file.
6474         * tests/test-symlink.c (main): Move guts...
6475         * tests/test-symlink.h (test_symlink): ...into new file.
6476         * tests/test-symlinkat.c (main): Use new files for further
6477         coverage.
6478         (do_symlink, do_readlink): New helper functions.
6479         * modules/symlink-tests (Files): Ship new file.
6480         (Depends-on): Add stdbool.
6481         * modules/readlink-tests (Files): Ship new file.
6482         (Depends-on): Add stdbool.
6483         * modules/symlinkat-tests (Files): Use new files.
6484
6485 2009-09-23  Eric Blake  <ebb9@byu.net>
6486
6487         readlink: document portability issue with symlink length
6488         * doc/posix-functions/lstat.texi (lstat): Mention that some file
6489         systems have bogus st_size on symlinks, and mention the
6490         areadlink-with-size module.
6491         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
6492         * doc/posix-functions/readlink.texi (readlink): Mention the
6493         areadlink module, and ERANGE failure.
6494         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6495         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
6496
6497         readlink: fix Solaris 9 bug with trailing slash
6498         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
6499         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
6500         * doc/posix-functions/readlink.texi (readlink): Document this.
6501         * modules/readlink-tests: New test.
6502         * tests/test-readlink.c: Likewise.
6503
6504         readlink: fix cygwin 1.5.x bug with return type
6505         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
6506         * lib/unistd.in.h (readlink): Use ssize_t.
6507         * lib/readlink.c (readlink): Likewise.
6508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6509         * modules/unistd (Makefile.am): Substitute it.
6510         * lib/unistd.in.h (readlink): Declare replacement.
6511         * doc/posix-functions/readlink.texi (readlink): Document this.
6512
6513         symlink: use throughout gnulib
6514         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
6515         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
6516         symlink is not used.
6517         * modules/symlinkat (Depends-on): Add symlink.
6518         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6519         * modules/canonicalize-tests (Depends-on): Likewise.
6520         * modules/lstat-tests (Depends-on): Likewise.
6521         * modules/openat-tests (Depends-on): Likewise.
6522         * modules/remove-tests (Depends-on): Likewise.
6523         * modules/rmdir-tests (Depends-on): Likewise.
6524         * modules/unlink-tests (Depends-on): Likewise.
6525         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
6526         * tests/test-canonicalize.c (symlink): Likewise.
6527         * tests/test-fstatat.c (symlink): Likewise.
6528         * tests/test-lstat.c (symlink): Likewise.
6529         * tests/test-remove.c (symlink): Likewise.
6530         * tests/test-rmdir.c (symlink): Likewise.
6531         * tests/test-unlink.c (symlink): Likewise.
6532         * tests/test-unlinkat.c (symlink): Likewise.
6533
6534         symlink: new module, for Solaris 9 bug
6535         * modules/symlink: New file.
6536         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
6537         * lib/symlink.c: Likewise.
6538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6539         * modules/unistd (Makefile.am): Substitute them.
6540         * lib/unistd.in.h (symlink): Declare replacement.
6541         * MODULES.html.sh (File system functions): Mention it.
6542         * doc/posix-functions/symlink.texi (symlink): Likewise.
6543         * modules/symlink-tests: New test.
6544         * tests/test-symlink.c: Likewise.
6545
6546 2009-09-23  Bruno Haible  <bruno@clisp.org>
6547
6548         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
6549         when needed.
6550         Test case: gnulib-tool --import --with-tests atexit inttypes.
6551         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
6552
6553 2009-09-23  Bruno Haible  <bruno@clisp.org>
6554
6555         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
6556         subcommand, not in a subshell.
6557
6558 2009-09-22  Eric Blake  <ebb9@byu.net>
6559
6560         unistd: sort replacement declarations
6561         * lib/unistd.in.h: Sort declarations.
6562
6563         open, openat: minor optimization
6564         * lib/open.c (open): If open succeeded, len is non-zero.
6565         * lib/openat.c (rpl_openat): Likewise.
6566
6567         link-follow: ensure correct result
6568         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
6569         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
6570         distinguish between possible failures.
6571
6572 2009-09-21  Eric Blake  <ebb9@byu.net>
6573
6574         fts: avoid compiler warning
6575         * lib/fts.c (dirent_inode_sort_may_be_useful)
6576         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
6577
6578 2009-09-19  Bruno Haible  <bruno@clisp.org>
6579
6580         * lib/progreloc.c (canonicalize_file_name): New declaration.
6581
6582 2009-09-19  Eric Blake  <ebb9@byu.net>
6583
6584         link: fix quoting
6585         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
6586
6587         openat: fix openat bugs on Solaris 9
6588         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
6589         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
6590         * modules/openat (Depends-on): Add open.
6591         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
6592         * modules/fcntl-h (Makefile.am): Substitute it.
6593         * lib/fcntl.in.h (openat): Declare replacement.
6594         * doc/posix-functions/openat.texi (openat): Document this.
6595
6596         openat: move fstatat and unlinkat into correct files
6597         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
6598         compiled.
6599         * lib/openat.c (fstatat, unlinkat): Move...
6600         * lib/fstatat.c (fstatat): ...into correct files.
6601         * lib/unlinkat.c (unlinkat): Likewise.
6602
6603         openat: fix unlinkat bugs on Solaris 9
6604         * lib/unlinkat.c (unlinkat): New file.
6605         * modules/openat (Depends-on): Add unlink.
6606         (Files): Distribute it.
6607         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
6608         trailing slash behavior is broken.
6609         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6610         * modules/unistd (Makefile.am): Substitute it.
6611         * lib/unistd.in.h (unlinkat): Declare replacement.
6612         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
6613
6614         openat: fix fstatat bugs on Solaris 9
6615         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
6616         stat.
6617         * doc/posix-functions/fstatat.texi (fstatat): Document this.
6618
6619         test-unlinkat: enhance test, to expose Solaris 9 bug
6620         * tests/test-unlink.c (main): Factor guts...
6621         * tests/test-unlink.h (test_rmdir_func): ...into new file.
6622         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
6623         * tests/test-rmdir.c (main): Adjust caller.
6624         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
6625         (unlinker): New helper function.
6626         (rmdirat): Enhance check.
6627         * modules/rmdir-tests (Depends-on): Add stdbool.
6628         * modules/unlink-tests (Depends-on): Likewise.
6629         (Files): Add test-unlink.h.
6630         * modules/openat-tests (Files): Likewise.
6631         (Depends-on): Add unlinkdir.
6632
6633         test-fstatat: new test, to expose Solaris 9 bugs
6634         * tests/test-stat.c (main): Factor guts...
6635         * tests/test-stat.h (test_stat_func): ...into new file.
6636         * tests/test-lstat.c (main): Factor guts...
6637         * tests/test-lstat.h (test_lstat_func): ...into new file.
6638         * tests/test-fstatat.c: New file.
6639         * modules/stat-tests (Files): Add test-stat.h.
6640         * modules/lstat-tests (Files): Add test-lstat.h.
6641         (Depends-on): Add stdbool.
6642         * modules/openat-tests (Depends-on): Add pathmax.
6643         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
6644         (Makefile.am): Run new test.
6645
6646         remove: new module, for mingw and Solaris 9 bugs
6647         * modules/remove: New file.
6648         * lib/remove.c: Likewise.
6649         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
6650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
6651         * modules/stdio (Makefile.am): Use them.
6652         * lib/stdio.in.h (remove): Declare replacement.
6653         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6654         * doc/posix-functions/remove.texi (remove): Likewise.
6655         * modules/remove-tests: New test.
6656         * tests/test-remove.c: Likewise.
6657
6658         unlink: new module, for Solaris 9 bug
6659         * modules/unlink: New file.
6660         * lib/unlink.c: Likewise.
6661         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
6663         * modules/unistd (Makefile.am): Use them.
6664         * lib/unistd.in.h (stat): Declare replacement.
6665         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6666         * doc/posix-functions/unlink.texi (unlink): Likewise.
6667         * modules/unlink-tests: New test.
6668         * tests/test-unlink.c: Likewise.
6669
6670         lstat: fix Solaris 9 bug
6671         * lib/lstat.c (lstat): Also check for trailing slash on
6672         non-symlink, non-directories.  Use stat module to simplify logic.
6673         * doc/posix-functions/lstat.texi (lstat): Document it.
6674         * modules/lstat-tests (Depends-on): Add errno, same-inode.
6675         (configure.ac): Check for symlink.
6676         * tests/test-lstat.c (main): Add more tests.
6677
6678         stat: add as dependency to other modules
6679         * modules/chown (Depends-on): Add stat.
6680         * modules/euidaccess (Depends-on): Likewise.
6681         * modules/fchdir (Depends-on): Likewise.
6682         * modules/isdir (Depends-on): Likewise.
6683         * modules/link (Depends-on): Likewise.
6684         * modules/lstat (Depends-on): Likewise.
6685         * modules/mkdir-p (Depends-on): Likewise.
6686         * modules/modechange (Depends-on): Likewise.
6687         * modules/open (Depends-on): Likewise.
6688         * modules/readlink (Depends-on): Likewise.
6689         * modules/same (Depends-on): Likewise.
6690
6691         stat: fix Solaris 9 bug
6692         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
6693         slash.
6694         * lib/stat.c (rpl_stat): Work around it.
6695         * doc/posix-functions/stat.texi (stat): Update documentation.
6696
6697         stat: new module, for mingw bug
6698         * modules/stat: New file.
6699         * lib/stat.c: Likewise.
6700         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6701         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
6702         * modules/sys_stat (Makefile.am): Use them.
6703         * lib/sys_stat.in.h (stat): Declare replacement.
6704         * lib/openat.c (fstatat): Deal with lstat and stat being function
6705         macros.
6706         * modules/openat (Depends-on): Add inline.
6707         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6708         * doc/posix-functions/stat.texi (stat): Likewise.
6709         * modules/stat-tests: New test.
6710         * tests/test-stat.c: Likewise.
6711
6712 2009-09-19  Jim Meyering  <meyering@redhat.com>
6713
6714         syntax-check: detect unnecessary inclusion of canonicalize.h
6715         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
6716
6717 2009-09-19  Eric Blake  <ebb9@byu.net>
6718
6719         canonicalize-lgpl: adjust clients to use correct header
6720         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
6721         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
6722         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
6723         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
6724         * lib/progreloc.c (includes): Likewise.
6725
6726 2009-09-19  Jim Meyering  <meyering@redhat.com>
6727
6728         test-posixtm.c: correct a comment
6729         * tests/test-posixtm.c: Correct first-line comment.
6730         Spotted by Eric Blake.
6731
6732 2009-09-16  Jim Meyering  <meyering@redhat.com>
6733
6734         posixtm-tests: make T const-correct; add a test case
6735         * tests/test-posixtm.c (T): Declare const.
6736         Add a test for -(2^31+1).
6737         Remove useless can-succeed-only-in-2002 test.
6738
6739         posixtm-tests: adjust the sole failing test
6740         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
6741         expected output matches what mktime now produces.  Cross-checked via
6742         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
6743
6744         posixtm: move #ifdef'd tests into a new module
6745         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
6746         * tests/test-posixtm.c: ... this new file.
6747         * modules/posixtm-tests: New module.
6748
6749 2009-09-19  Eric Blake  <ebb9@byu.net>
6750
6751         openat: simplify use of at-func.c
6752         * lib/at-func.c (includes): Include prerequisites here, to
6753         simplify requirements on client files.
6754         * lib/openat-priv.h: Add double-inclusion guard.
6755         * lib/faccessat.c (includes): Simplify.
6756         * lib/fchmodat.c (includes): Likewise.
6757         * lib/fchownat.c (includes): Likewise.
6758         * lib/mkdirat.c (includes): Likewise.
6759         * lib/mkfifoat.c (includes): Likewise.
6760         * lib/symlinkat.c (includes): Likewise.
6761
6762         openat: allow return of fd 0
6763         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
6764         * modules/save-cwd (Depends-on): Replace fcntl-safer with
6765         unistd-safer.
6766         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
6767         <fcntl.h>; this module does not leak fds.
6768         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
6769         must be allowed to return 0, leaving openat_safer to add the
6770         safety.
6771         (openat_permissive): Avoid writing to just-opened fd 2 if
6772         restoring the current directory fails.
6773         * lib/openat-die.c (openat_restore_fail): Add comment.
6774         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
6775         (save_cwd): Guarantee safe fd, but without use of open_safer.
6776         * tests/test-openat.c: New test.
6777         * modules/openat-tests (Files, Makefile.am): Distribute and build
6778         new file.
6779
6780         relocatable-prog-wrapper: fix build
6781         * modules/relocatable-prog-wrapper (Files): Update name of
6782         canonicalize m4 file, broken on 2009-09-17.
6783         Reported by emad hajjar <aleppos@hotmail.com>.
6784
6785 2009-09-19  Bruno Haible  <bruno@clisp.org>
6786
6787         * lib/safe-alloc.h: Use the standard header with GPL copyright.
6788         * lib/safe-alloc.c: Likewise.
6789         Reported by Ian Beckwith <ianb@erislabs.net>.
6790
6791 2009-09-18  Bruno Haible  <bruno@clisp.org>
6792
6793         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
6794         Reported by <erobles@sensacd.com.mx>.
6795
6796 2009-09-17  Eric Blake  <ebb9@byu.net>
6797
6798         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
6799         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
6800         slashes when checking if last component is missing.
6801         * tests/test-canonicalize.c (main): Test this.
6802
6803         canonicalize, canonicalize-lgpl: honor // if distinct from /
6804         * modules/canonicalize (Files): Add double-slash-root.m4.
6805         * modules/canonicalize-lgpl (Files): Likewise.
6806         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
6807         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
6808         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
6809         fallback definition.
6810         (canonicalize_filename_mode): Use it to protect //.
6811         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
6812         (__realpath): Likewise.
6813         * tests/test-canonicalize.c (main): Test this.
6814         * tests/test-canonicalize-lgpl.c (main): Likewise.
6815         * modules/canonicalize-tests (Depends-on): Add same-inode.
6816         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6817
6818         canonicalize-lgpl: fix glibc bug with trailing slash
6819         * m4/canonicalize-lgpl.m4: Move contents...
6820         * m4/canonicalize.m4: ...here.
6821         (gl_CANONICALIZE_LGPL): Factor realpath check...
6822         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
6823         glibc 2.3.5 bug, fixed 2005-04-27.
6824         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
6825         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
6826         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
6827         * modules/canonicalize-lgpl (Files): Manage file rename.
6828         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
6829         * modules/stdlib (Makefile.am): Substitute witness.
6830         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
6831         is needed.
6832         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
6833         replacement is required.
6834         * lib/canonicalize.c (canonicalize_file_name): Likewise.
6835         * doc/glibc-functions/canonicalize_file_name.texi
6836         (canonicalize_file_name): Document this.
6837         * doc/posix-functions/realpath.texi (realpath): Likewise.
6838
6839         canonicalize-lgpl: reject non-directory with trailing slash
6840         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
6841         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
6842         catches failures in glibc 2.3.5.
6843         * tests/test-canonicalize.c (main): Likewise.
6844
6845         canonicalize-lgpl: use native realpath if it works
6846         * lib/canonicalize-lgpl.c (realpath): Guard with
6847         FUNC_REALPATH_WORKS.
6848         * lib/stdlib.in.h (realpath): Make declaration optional based on
6849         HAVE_REALPATH.
6850         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
6851         native realpath works.
6852         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
6853         * modules/stdlib (Makefile.am): Substitute witness.
6854
6855         canonicalize, canonicalize-lgpl: use <stdlib.h>
6856         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
6857         (Include): Mention <stdlib.h>.
6858         (configure.ac): Mention functions we provide.
6859         * modules/canonicalize (configure.ac): Likewise.
6860         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
6861         realpath if canonicalize_file_name is missing.
6862         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
6863         * modules/stdlib (Makefile.am): Substitute witnesses.
6864         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
6865         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
6866         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
6867         * NEWS: Document this.
6868         * doc/glibc-functions/canonicalize_file_name.texi
6869         (canonicalize_file_name): Likewise.
6870         * doc/posix-functions/realpath.texi (realpath): Likewise.
6871         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
6872
6873         test-canonicalize: consolidate into single C program
6874         * tests/test-canonicalize.sh: Delete; move setup into...
6875         * tests/test-canonicalize.c (main): ...the program, making it
6876         easier to run in debugger.  Add some tests.
6877         * modules/canonicalize-tests (Files): Remove unused file.
6878         (Depends-on): Add progname.
6879         (configure.ac, Makefile.am): Simplify.
6880
6881         test-canonicalize-lgpl: consolidate into single C program
6882         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
6883         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
6884         easier to run in debugger.  Add some tests.
6885         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
6886         (configure.ac, Makefile.am): Simplify.
6887
6888         canonicalize: avoid resolvepath
6889         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
6890         unnecessary checks.
6891         * lib/canonicalize.c (includes): Simplify.
6892         (canonicalize_file_name): Drop resolvepath implementation.
6893         * modules/canonicalize (Depends-on): Drop filenamecat.
6894
6895         canonicalize: don't lose errno
6896         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
6897         over calls to free.
6898
6899         canonicalize: simplify errno handling
6900         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
6901         assignment.
6902
6903         canonicalize, canonicalize-lgpl: update module dependencies
6904         * modules/canonicalize (Depends-on): Add extensions, lstat,
6905         pathmax, stdlib.
6906         (Files): Drop pathmax.h.
6907         (configure.ac): Adjust macro name.
6908         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
6909         lstat, stdlib, sys_stat.
6910         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
6911         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
6912         extensions.
6913         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
6914         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
6915         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
6916         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
6917         declaration, if available.
6918         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
6919         we can rely on the readlink module.
6920         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
6921         (includes): Use <unistd.h> unconditionally.
6922
6923 2009-09-17  Eric Blake  <ebb9@byu.net>
6924
6925         maint: make Include sections of modules consistent
6926         * modules/alloca: Use only header name; no need to list #include.
6927         * modules/alloca-opt: Likewise.
6928         * modules/arpa_inet: Likewise.
6929         * modules/canon-host: Likewise.
6930         * modules/configmake: Likewise.
6931         * modules/dirent: Likewise.
6932         * modules/eealloc: Likewise.
6933         * modules/environ: Likewise.
6934         * modules/fchdir: Likewise.
6935         * modules/fcntl: Likewise.
6936         * modules/fcntl-h: Likewise.
6937         * modules/gethrxtime: Likewise.
6938         * modules/gettime: Likewise.
6939         * modules/ignore-value: Likewise.
6940         * modules/inet_ntop: Likewise.
6941         * modules/inet_pton: Likewise.
6942         * modules/inttypes: Likewise.
6943         * modules/isnand-nolibm: Likewise.
6944         * modules/isnanf-nolibm: Likewise.
6945         * modules/mbchar: Likewise.
6946         * modules/mbfile: Likewise.
6947         * modules/mbiter: Likewise.
6948         * modules/mbuiter: Likewise.
6949         * modules/netdb: Likewise.
6950         * modules/netinet_in: Likewise.
6951         * modules/nproc: Likewise.
6952         * modules/pagealign_alloc: Likewise.
6953         * modules/poll: Likewise.
6954         * modules/printf-frexp: Likewise.
6955         * modules/pthread: Likewise.
6956         * modules/putenv: Likewise.
6957         * modules/random_r: Likewise.
6958         * modules/relocatable-prog: Likewise.
6959         * modules/search: Likewise.
6960         * modules/select: Likewise.
6961         * modules/selinux-h: Likewise.
6962         * modules/settime: Likewise.
6963         * modules/signal: Likewise.
6964         * modules/size_max: Likewise.
6965         * modules/socklen: Likewise.
6966         * modules/ssize_t: Likewise.
6967         * modules/stdarg: Likewise.
6968         * modules/stdbool: Likewise.
6969         * modules/stddef: Likewise.
6970         * modules/stdint: Likewise.
6971         * modules/stdio: Likewise.
6972         * modules/stdlib: Likewise.
6973         * modules/string: Likewise.
6974         * modules/strings: Likewise.
6975         * modules/sys_file: Likewise.
6976         * modules/sys_ioctl: Likewise.
6977         * modules/sys_select: Likewise.
6978         * modules/sys_socket: Likewise.
6979         * modules/sys_stat: Likewise.
6980         * modules/sys_time: Likewise.
6981         * modules/sys_times: Likewise.
6982         * modules/sys_utsname: Likewise.
6983         * modules/sys_wait: Likewise.
6984         * modules/sysexits: Likewise.
6985         * modules/time: Likewise.
6986         * modules/times: Likewise.
6987         * modules/tmpfile: Likewise.
6988         * modules/trim: Likewise.
6989         * modules/unistd: Likewise.
6990         * modules/wchar: Likewise.
6991         * modules/wctype: Likewise.
6992
6993 2009-09-17  Bruno Haible  <bruno@clisp.org>
6994
6995         Make getdate.y compile on QNX and NetBSD 5 / i386.
6996         * m4/getdate.m4 (gl_GETDATE): Conditionally define
6997         TIME_T_FITS_IN_LONG_INT.
6998         * lib/getdate.y (long_time_t): New type.
6999         (relative_time): Change type of 'seconds' field to long_time_t.
7000         (get_date): Update types of local variables. Check against overflow
7001         during conversion from long_time_t to time_t.
7002         Reported by Matt Kraai <kraai@ftbfs.org>
7003         and Hasso Tepper <hasso@netbsd.org>.
7004
7005 2009-09-17  Bruno Haible  <bruno@clisp.org>
7006
7007         * modules/COPYING: Update copyright years.
7008         * modules/README: Likeiwse.
7009         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
7010         Reported by Ian Beckwith <ianb@erislabs.net>.
7011
7012 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
7013
7014         * users.txt: Update references for gnuit package.
7015
7016 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
7017
7018         * m4/getdelim.m4: Fix typo in copyright line.
7019
7020 2009-09-17  Bruno Haible  <bruno@clisp.org>
7021
7022         * lib/atoll.c: Use the standard header with GPL copyright.
7023         * lib/argz.in.h: Likewise.
7024         * lib/glob.c: Likewise.
7025         * lib/glob-libc.h: Likewise.
7026         * lib/random_r.c: Likewise.
7027         * lib/siglist.h: Likewise.
7028         * lib/strsignal.c: Likewise.
7029         Reported by Ian Beckwith <ianb@erislabs.net>.
7030
7031 2009-09-17  Eric Blake  <ebb9@byu.net>
7032
7033         rmdir: ensure correct dependency order
7034         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
7035
7036 2009-09-17  Bruno Haible  <bruno@clisp.org>
7037
7038         Disable assertion that fails on NetBSD 5 / i386.
7039         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
7040         Reported by Sam Steingold <sds@gnu.org>
7041         and Hasso Tepper <hasso@netbsd.org>.
7042
7043 2009-09-16  Eric Blake  <ebb9@byu.net>
7044
7045         unlinkdir: port to mingw
7046         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
7047         on which no one can unlink a directory.
7048
7049         stdlib: sort witness names
7050         * modules/stdlib (Makefile.am): Sort replacements.
7051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
7052         * lib/stdlib.in.h: Likewise.
7053
7054         parse-duration-tests: avoid link failure
7055         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
7056         LIBINTL.
7057         Reported by Tom G. Christensen.
7058
7059         openat-tests: ensure unlinkat behaves like rmdir
7060         * tests/test-rmdir.c (main): Factor guts...
7061         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
7062         * modules/rmdir-tests (Files): Ship new file.
7063         * modules/openat-tests: New test.
7064         * tests/test-unlinkat.c: Likewise.
7065
7066         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
7067         * modules/rmdir-errno (Status, Notice): Now obsolete.
7068
7069         rmdir: work around cygwin 1.5.x and mingw bugs
7070         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
7071         * lib/rmdir.c (rmdir): Work around it.
7072         * modules/rmdir (Status, Notice): No longer obsolete.
7073         (Files): Add dos.m4.
7074         (Depends-on): Add unistd.
7075         (configure.ac): Set witnesses.
7076         (License): Relax to LGPLv2+.
7077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
7078         * modules/unistd (Makefile.am): Substitute witnesses.
7079         * lib/unistd.in.h (rmdir): Declare replacement.
7080         * doc/posix-functions/rmdir.texi (rmdir): Document this.
7081         * modules/rmdir-tests: New tests.
7082         * tests/test-rmdir.c: Likewise.
7083
7084 2009-09-15  Eric Blake  <ebb9@byu.net>
7085
7086         fchdir: improve use of replacement functions
7087         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
7088         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
7089         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
7090         REPLACE_CLOSEDIR.
7091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
7092         * modules/sys_stat (Makefile.am): Substitute correct witness.
7093         * modules/dirent (Makefile.am): Likewise.
7094         * modules/unistd (Makefile.am): Likewise.
7095         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
7096         * lib/unistd.in.h (dup): Likewise.
7097         * lib/sys_stat.in.h (fstat): Likewise.
7098
7099         maint: ignore gnulib-tool temp files
7100         * .gitignore: Ignore files created during gnulib-tool --test.
7101
7102 2009-09-13  Jim Meyering  <meyering@redhat.com>
7103
7104         posixtm: don't reject a time that specify "60" as the number of seconds
7105         * lib/posixtm.c (posixtime): The code to reject invalid dates
7106         would also reject a time specified with the .60 suffix.
7107         But POSIX allows that, in order to accommodate leap seconds.
7108         So don't reject it.
7109         (main): Adjust tests accordingly.
7110         * modules/posixtm (Depends-on): Add stpcpy.
7111
7112 2009-09-11  Jim Meyering  <meyering@redhat.com>
7113
7114         announce-gen: include [$release_type] in emitted Subject:
7115         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
7116         e.g., [stable] in the emitted Subject: line.
7117
7118 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7119
7120         Remove obsolete macros from several modules.
7121         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
7122         obsolete Autoconf macros with their modern counterparts.
7123         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
7124         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
7125         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
7126         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
7127         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
7128         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7129         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7130         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7131         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7132         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
7133         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7134         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7135         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
7136         * m4/sockets.m4 (gl_SOCKETS): Likewise.
7137         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
7138         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
7139         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
7140         * m4/time_r.m4 (gl_TIME_R): Likewise.
7141         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7142         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
7143         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
7144
7145         Fix copyright header in build-aux scripts.
7146         * build-aux/git-version-gen: Fix copyright header to match GPLv3
7147         recommendation.
7148         * build-aux/ncftpput-ftp: Likewise.
7149         * build-aux/update-copyright: Likewise.
7150
7151 2009-09-09  Eric Blake  <ebb9@byu.net>
7152
7153         test-link: allow Linux choice of errno
7154         * tests/test-link.c (main): Relax test for alternate error.
7155
7156         strndup: fix improper m4 caching
7157         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
7158         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
7159         (gl_PREREQ_STRNDUP): Delete.
7160         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
7161         * modules/string (Makefile.am): Substitute it.
7162         * lib/string.in.h (strndup): Modernize prototype.
7163
7164         getcwd: port to mingw
7165         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
7166         different from the POSIX assumptions made throughout the getcwd
7167         module; fortunately, the mingw getcwd does not need replacement.
7168         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
7169         * modules/getcwd-tests: New test.
7170         * tests/test-getcwd.c: Likewise.
7171
7172         link: fix platform bugs
7173         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
7174         * lib/link.c (link): Work around them.  Fix related mingw bug.
7175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
7176         * modules/unistd (Makefile.am): Substitute it.
7177         * lib/unistd.in.h (link): Declare replacement.
7178         * doc/posix-functions/link.texi (link): Document this.
7179         * modules/link (Depends-on): Add strdup-posix, sys_stat.
7180
7181         test-link: consolidate into single C program, test more cases
7182         * tests/test-link.sh: Delete.
7183         * tests/test-link.c: Test more error conditions.  Exposes bugs on
7184         at least Cygwin and Solaris.
7185         * modules/link-tests (Files): Remove unused file.
7186         (Depends-on): Add errno, sys_stat.
7187         (Makefile.am): Simplify.
7188
7189 2009-09-08  Bruno Haible  <bruno@clisp.org>
7190
7191         Work around towlower, towupper bug on mingw.
7192         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
7193         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
7194         * doc/posix-functions/towlower.texi: Mention the mingw bug.
7195         * doc/posix-functions/towupper.texi: Likewise.
7196         Reported by Eric Blake.
7197
7198 2009-09-08  Jim Meyering  <meyering@redhat.com>
7199
7200         build: don't try to run autoheader if we don't use it
7201         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
7202         is not used in configure.ac.
7203
7204 2009-09-08  Eric Blake  <ebb9@byu.net>
7205
7206         euidaccess: fix compilation error
7207         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
7208
7209         rawmemchr: relax license
7210         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
7211         okay.
7212         Reported by Jim Meyering.
7213
7214         mkfifoat: new module
7215         * modules/mkfifoat: New file.
7216         * lib/mkfifoat.c: Likewise.
7217         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
7218         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7219         * modules/sys_stat (Makefile.am): Use them.
7220         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
7221         * MODULES.html.sh (File system functions): Mention module.
7222         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
7223         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
7224         * modules/mkfifoat-tests: New test.
7225         * tests/test-mkfifoat.c: Likewise.
7226
7227         strchrnul: relax license
7228         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
7229         okay.
7230         Reported by Jim Meyering.
7231
7232 2009-09-08  Eric Blake  <ebb9@byu.net>
7233
7234         fstatat: fix compilation on Solaris
7235         * lib/fstatat.c (includes): Add fcntl.h.
7236         Reported by Pádraig Brady.
7237
7238 2009-09-07  Eric Blake  <ebb9@byu.net>
7239
7240         rename: modernize replacement
7241         * modules/rename (Depends-on): Add stdio.
7242         (configure.ac): Declare witness.
7243         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
7244         stdio take care of replacement.
7245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
7246         * modules/stdio (Makefile.am): Substitute them.
7247         * lib/stdio.in.h (rename): Declare replacement.
7248         * lib/rename.c (includes): Allow cross-compilation to non-windows
7249         machines.
7250         * doc/posix-functions/rename.texi (rename): Improve
7251         documentation.
7252
7253         stdio: sort witness names
7254         * modules/stdio (Makefile.am): Sort replacements.
7255         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
7256         * lib/stdio.in.h: Likewise.
7257
7258         getcwd: minor cleanups
7259         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
7260         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
7261
7262         openat: provide more convenience names
7263         * modules/faccessat (configure.ac): Add C witness.
7264         * lib/unistd.in.h (readlinkat): Fix typo.
7265         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
7266         convenience wrappers.
7267         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
7268         wrappers in syntax checks.
7269
7270 2009-09-06  Eric Blake  <ebb9@byu.net>
7271
7272         doc: fix comments in recent patches
7273         * lib/faccessat.c: Mention correct function.
7274         * lib/fchmodat.c: Likewise.
7275         * lib/fchownat.c: Likewise.
7276         * lib/symlinkat.c: Likewise.
7277         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
7278         constants.
7279
7280         faccessat, symlinkat: continue cleanup of previous patch
7281         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
7282         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
7283         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
7284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
7285         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
7286         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
7287         set.
7288
7289 2009-09-06  Bruno Haible  <bruno@clisp.org>
7290
7291         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
7292         (fstatat): Declare if GNULIB_FSTATAT is set.
7293         (mkdirat): Declare if GNULIB_MKDIRAT is set.
7294         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
7295         (unlinkat): Declare if GNULIB_UNLINKAT is set.
7296         * modules/fcntl-h (Files): Remove m4/openat.m4.
7297         * modules/sys_stat (Files): Remove m4/openat.m4.
7298         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
7299         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
7300         * modules/unistd (Files): Remove m4/openat.m4.
7301         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
7302         GNULIB_OPENAT.
7303         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
7304         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
7305         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
7306         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
7307         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
7308         gl_OPENAT_DEFAULTS.
7309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
7310         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
7311         Don't require gl_OPENAT_DEFAULTS.
7312         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
7313         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
7314         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
7315         (gl_OPENAT_DEFAULTS): Remove macro.
7316
7317 2009-09-06  Bruno Haible  <bruno@clisp.org>
7318
7319         * modules/openat (configure.ac): Remove unneeded witness.
7320
7321 2009-09-06  Bruno Haible  <bruno@clisp.org>
7322
7323         Set errno to ENOSYS when a function is entirely unsupported.
7324         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
7325         EOPNOTSUPP.
7326         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
7327         * modules/chown (Depends-on): Remove errno.
7328
7329 2009-09-06  Bruno Haible  <bruno@clisp.org>
7330
7331         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
7332
7333 2009-09-06  Bruno Haible  <bruno@clisp.org>
7334
7335         * lib/sys_stat.in.h: Fix preprocessor command indentation.
7336
7337 2009-09-06  Ben Pfaff  <blp@gnu.org>
7338             Bruno Haible  <bruno@clisp.org>
7339
7340         Work around a glibc bug in strtok_r.
7341         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
7342         Undefine if UNDEFINE_STRTOK_R is set.
7343         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
7344         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7345         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
7346         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
7347         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
7348         UNDEFINE_STRTOK_R.
7349         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
7350
7351 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
7352
7353         exclude: minor fix
7354         * lib/exclude.c: Include wctype.h
7355
7356 2009-09-06  Akim Demaille  <demaille@gostai.com>
7357
7358         bootstrap: improve error message
7359         * build-aux/bootstrap (find_tool): Upon failure, report the list
7360         of candidates.
7361         Honor the initial value of the envvar.
7362
7363 2009-09-05  Eric Blake  <ebb9@byu.net>
7364
7365         symlinkat: new module
7366         * modules/symlinkat: New file.
7367         * lib/symlinkat.c: Likewise.
7368         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
7369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
7370         * modules/unistd (Makefile.am): Use them.
7371         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
7372         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
7373         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
7374         * MODULES.html.sh (File system functions): Mention module.
7375         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7376         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7377         * modules/symlinkat-tests: New test.
7378         * tests/test-symlinkat.c: Likewise.
7379
7380         test-openat-safer: add more checks
7381         * tests/test-openat-safer.c (main): Check more code paths.
7382
7383 2009-09-05  Jim Meyering  <meyering@redhat.com>
7384
7385         syntax-check: detect unnecessary inclusion of openat.h
7386         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
7387
7388 2009-09-05  Bruno Haible  <bruno@clisp.org>
7389
7390         Support towlower, towupper.
7391         * doc/posix-functions/towlower.texi: Mention module wctype.
7392         * doc/posix-functions/towupper.texi: Likewise.
7393         * lib/wctype.in.h (towlower, towupper): New functions.
7394         * tests/test-wctype.c: Include stdio.h, stdlib.h.
7395         (ASSERT): New macro.
7396         (e): New variable.
7397         (main): Test also towlower, towupper. Test WEOF argument.
7398         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
7399
7400 2009-09-05  Bruno Haible  <bruno@clisp.org>
7401
7402         Fix conversion behaviour when the input is invalid.
7403         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
7404         mark occurring in first pass of indirect conversion.
7405         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
7406         input.
7407         Found by clang's static analyzer.
7408
7409 2009-09-05  Bruno Haible  <bruno@clisp.org>
7410
7411         * tests/test-striconveh.c (main): Test indirect conversion on platforms
7412         where direct conversion is possible.
7413
7414 2009-09-04  Eric Blake  <ebb9@byu.net>
7415
7416         openat: fail with ENOENT on empty name
7417         * lib/openat-proc.c (openat_proc_name): Special-case the empty
7418         buffer.
7419
7420         link-follow: fix logic bug in prior patch
7421         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
7422         reversed sense of yes and no in prior patch.  Avoid confusing
7423         compilation failure with desired semantics.
7424
7425         link-follow: accomodate mingw and cross-compilation
7426         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
7427         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
7428         cross-compilation results to -1, to make linkat easier to
7429         implement when cross-compiling.  Trivially support mingw.
7430         * modules/link-follow (configure.ac): Call new name.
7431         * NEWS: Mention this.
7432
7433 2009-09-03  Eric Blake  <ebb9@byu.net>
7434
7435         faccessat: compile replacement
7436         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
7437         needed.
7438
7439         fts: fix compilation error
7440         * lib/fts.c (includes): Re-add "openat.h", for
7441         openat_needs_fchdir.
7442
7443         faccessat: new module
7444         * modules/faccessat: New file.
7445         * lib/faccessat.c: Likewise.
7446         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
7447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7448         * modules/unistd (Makefile.am): Use it.
7449         * lib/unistd.in.h (faccessat): Declare it.
7450         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
7451         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
7452         * MODULES.html.sh (File system functions): Mention it.
7453         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
7454         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7455
7456         euidaccess: prefer POSIX over non-standard implementation
7457         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
7458         * lib/euidaccess.c (euidaccess): Use it if available.
7459
7460         openat: make template easier to use
7461         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
7462         AT_FUNC_F2 to be undefined.
7463         (VALIDATE_FLAG): New macro; use it to reject bad flags.
7464         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
7465         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
7466         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
7467         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
7468         Likewise.
7469         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
7470         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
7471         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
7472         Likewise.
7473
7474         openat: declare in POSIX headers
7475         * NEWS: Mention this.
7476         * modules/openat (configure.ac): Declare witnesses.
7477         (Depends-on): Add fcntl-h, sys_stat, unistd.
7478         (Include): Mention correct headers.
7479         * modules/fcntl-h (Depends-on): Add link-warning.
7480         (Files): Add openat.m4.
7481         (Makefile.am): Substitute witnesses.
7482         * modules/sys_stat (Files, Makefile.am): Likewise.
7483         * modules/unistd (Files, Makefile.am): Likewise.
7484         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
7485         (gl_OPENAT_DEFAULTS): New macro.
7486         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
7487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
7488         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
7489         (SYS_STAT_H): Remove unused variable.
7490         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
7491         * lib/fcntl--.h (includes): Remove unneeded header.
7492         * lib/openat-safer.c (includes): Likewise.
7493         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
7494         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
7495         appropriate headers.
7496         (__OPENAT_PREFIX): Delete.
7497         * lib/fcntl.in.h (openat): Provide declaration.
7498         (AT_FDCWD): Fix Solaris bug.
7499         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
7500         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
7501         * lib/fchmodat.c (includes):  Adjust to find declaration.
7502         * lib/fchownat.c (includes): Likewise.
7503         * lib/mkdirat.c (includes): Likewise.
7504         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
7505         still visible.
7506
7507 2009-09-02  Eric Blake  <ebb9@byu.net>
7508
7509         errno: use consistently
7510         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
7511         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
7512         * lib/canonicalize.c (ELOOP): Likewise.
7513         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
7514         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
7515         * lib/lchown.c (EOPNOTSUPP): Likewise.
7516         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
7517         * lib/savewd.c (ESTALE): Likewise.
7518         * lib/settime.c (ENOSYS): Likewise.
7519         * lib/utimens.c (ENOSYS): Likewise.
7520         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
7521         * lib/chdir-safer.c (ELOOP): Likewise.
7522         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
7523         * modules/c-stack (Depends-on): Add errno.
7524         * modules/canonicalize (Depends-on): Likewise.
7525         * modules/chdir-safer (Depends-on): Likewise.
7526         * modules/fdopendir (Depends-on): Likewise.
7527         * modules/inet_ntop (Depends-on): Likewise.
7528         * modules/inet_pton (Depends-on): Likewise.
7529         * modules/lchown (Depends-on): Likewise.
7530         * modules/openat (Depends-on): Likewise.
7531         * modules/savewd (Depends-on): Likewise.
7532         * modules/settime (Depends-on): Likewise.
7533         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
7534
7535         fts: avoid leaking fds
7536         * modules/fts (Depends-on): Add cloexec.
7537         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
7538         flag.
7539
7540         fts: make directory fds more robust
7541         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
7542         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
7543
7544         backupfile, chdir-long, fts, savedir: make safer
7545         * lib/backupfile.c (includes): Use "dirent--.h", since
7546         numbered_backup can write to stderr during readdir.
7547         * lib/savedir.c (includes): Likewise.
7548         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
7549         emulation can write to stderr on failure.
7550         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
7551         * lib/getcwd.c: Document why opendir_safer is unused.
7552         * lib/glob.c: Likewise.
7553         * lib/scandir.c: Likewise.
7554         * lib/openat-proc.c: Likewise, for open_safer.
7555         * modules/backupfile (Depends-on): Add dirent-safer.
7556         * modules/savedir (Depends-on): Likewise.
7557         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
7558         * modules/chdir-long (Depends-on): Add openat-safer.
7559
7560         openat-safer: new module
7561         * modules/openat-safer: New file.
7562         * lib/openat-safer.c: Likewise.
7563         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
7564         * lib/fcntl-safer.h (openat_safer): Declare.
7565         * lib/fcntl--.h (openat): Override.
7566         * MODULES.html.sh (File descriptor based I/O): Mention it.
7567         * lib/openat.h: Add double-inclusion guards.
7568         * lib/openat.c (includes): Only include "fcntl-safer.h", not
7569         "fcntl--.h", so we can implement openat.
7570         * modules/openat-safer-tests: New test.
7571         * tests/test-openat-safer.c: New file.
7572
7573         dirent-safer: new module
7574         * modules/dirent-safer: New file.
7575         * lib/dirent--.h: Likewise.
7576         * lib/dirent-safer.h: Likewise.
7577         * lib/opendir-safer.c: Likewise.
7578         * m4/dirent-safer.m4: Likewise.
7579         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
7580         * modules/dirent-safer-tests: New test.
7581         * tests/test-dirent-safer.c: New file.
7582         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
7583
7584         fdopendir: optimize on mingw
7585         * lib/unistd.in.h (_gl_directory_name): New prototype.
7586         * lib/fchdir.c (_gl_directory_name): Implement it.
7587         (fchdir): Use it to simplify implementation.
7588         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
7589         fchdir, when available, to avoid calling [f]chdir().
7590
7591         fdopendir: split into its own module
7592         * lib/openat.c (fdopendir): Move...
7593         * lib/fdopendir.c: ...into new file.
7594         * modules/fdopendir: New module.
7595         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
7596         * modules/openat (Depends-on): Add fdopendir.
7597         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
7598         fdopendir here.
7599         * modules/savedir (Depends-on): Only need fdopendir, not full
7600         openat.
7601         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
7602         * lib/openat.h (fdopendir): Drop prototype.
7603         * lib/dirent.in.h (fdopendir): Provide prototype.
7604         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
7605         * modules/dirent (Makefile.am): Substitute them.
7606         * MODULES.html.sh (File system functions): Mention it.
7607         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
7608         * modules/fdopendir-tests: New file.
7609         * tests/test-fdopendir.c: Likewise.
7610
7611         fchdir: use more consistent macro convention
7612         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
7613         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
7614         REPLACE_FCHDIR, rather than relying on config.h macros.
7615         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
7616         inside a single make-time REPLACE_FCHDIR block, rather than using
7617         the config.h FCHDIR_REPLACEMENT.
7618         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
7619         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
7620         Manage fstat replacement.
7621         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
7622         REPLACE_FCHDIR.
7623         * modules/sys_stat (Files): Add m4/unistd_h.m4.
7624         (Makefile.am): Substitute REPLACE_FCHDIR.
7625         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
7626         FCHDIR_REPLACEMENT.
7627         * lib/dup-safer.c (dup_safer): Likewise.
7628         * lib/dup2.c (rpl_dup2): Likewise.
7629         * lib/dup3.c (rpl_dup3): Likewise.
7630         * lib/open.c (rpl_open): Likewise.
7631
7632         fchdir: simplify error handling, and support dup3
7633         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
7634         stdbool, malloc-posix, realloc-posix.
7635         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
7636         (ensure_dirs_slot): Return false on allocation failure.
7637         (rpl_dup2): Delete.
7638         (_gl_register_dup): New function.
7639         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
7640         (_gl_register_fd): Close fd on allocation failure.
7641         * lib/fcntl.in.h (_gl_register_fd): Update signature.
7642         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
7643         prototype.
7644         (rpl_dup2_fchdir): Delete prototype.
7645         * lib/open.c (open): Update caller.
7646         * lib/dup2.c (dup2): Track fchdir metadata.
7647         * lib/dup3.c (dup3): Likewise.
7648         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
7649         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
7650
7651 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7652
7653         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
7654         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
7655         don't pass arguments to AC_OUTPUT.
7656
7657 2009-09-02  Bruno Haible  <bruno@clisp.org>
7658
7659         * modules/mkdtemp (License): Relicense under LGPLv2+.
7660         Reported by Paolo Bonzini.
7661
7662 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7663
7664         Replace uses of obsolete autoconf macros in Jim's modules.
7665         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
7666         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
7667         can evoke a warning from autoconf when run with -Wobsolete
7668         enabled.  They were declared obsolete for good reasons (see
7669         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
7670         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
7671         should not continue using the deprecated macros.
7672         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
7673         obsolete Autoconf macros with modern counterparts.
7674         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7675         * m4/dos.m4 (gl_AC_DOS): Likewise.
7676         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
7677         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
7678         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
7679         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
7680         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
7681         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
7682         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
7683         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
7684         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
7685         Likewise.
7686         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7687         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
7688         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
7689         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
7690         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
7691         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
7692
7693 2009-09-01  Eric Blake  <ebb9@byu.net>
7694
7695         fchdir: fix off-by-one bug in previous patch
7696         * lib/fchdir.c (rpl_fstat): Use correct bounds.
7697         (_gl_unregister_fd): Delete useless if.
7698
7699 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
7700
7701         maint.mk: sort the list of syntax-check rules
7702         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
7703         easier to get a sense of progress when the rules are run sequentially
7704         and take a long time.
7705
7706 2009-09-01  Simon Josefsson  <simon@josefsson.org>
7707
7708         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
7709         * modules/netinet_in: Likewise.
7710         * modules/sys_file: Likewise.
7711         * modules/sys_ioctl: Likewise.
7712         * modules/sys_select: Likewise.
7713         * modules/sys_socket: Likewise.
7714         * modules/sys_stat: Likewise.
7715         * modules/sys_time: Likewise.
7716         * modules/sys_times: Likewise.
7717         * modules/sys_utsname: Likewise.
7718         * modules/sys_wait: Likewise.
7719
7720 2009-09-01  Jim Meyering  <meyering@redhat.com>
7721
7722         fts: help ensure that return values are not ignored
7723         * lib/fts_.h (__GNUC_PREREQ): Define.
7724         (__attribute_warn_unused_result__): Define.
7725         (fts_children, fts_close, fts_open, fts_read): Declare with
7726         __attribute_warn_unused_result__.
7727
7728         fts: fts_close now fails also when closing a dir file descriptor fails
7729         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
7730         and propagate to caller, along with errno.
7731
7732         announce-gen: correct formatting in --help output
7733         * build-aux/announce-gen (usage): Move the one-line description in
7734         --help output "up", to where it belongs, just after Usage:.
7735
7736 2009-08-31  Eric Blake  <ebb9@byu.net>
7737
7738         fchdir: port to mingw
7739         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
7740         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
7741         opened, then use a substitute.
7742         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
7743         replacement.
7744         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
7745         (_gl_register_fd): No need to check stat if open already filters
7746         all directories.
7747         (fchdir): Fix error condition to match POSIX.
7748         * modules/fchdir (Depends-on): Add sys_stat.
7749         * doc/posix-functions/open.texi (open): Document the limitation.
7750         * modules/fchdir-tests: New file.
7751         * tests/test-fchdir.c: Likewise.
7752
7753         canonicalize: allow cross-testing from cygwin to mingw
7754         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
7755         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
7756         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
7757         Likewise.
7758         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
7759         target does not support symlinks.
7760         * tests/test-canonicalize-lgpl.sh: Likewise.
7761
7762         chown: avoid compilation warning on mingw
7763         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
7764         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
7765         mingw.
7766         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
7767         * modules/chown (Depends-on): Add errno.
7768
7769 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7770
7771         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
7772         command.
7773
7774 2009-08-31  Jim Meyering  <meyering@redhat.com>
7775
7776         canonicalize: remove useless initialization
7777         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
7778         initialization of local, "end".
7779
7780 2009-08-30  Bruno Haible  <bruno@clisp.org>
7781
7782         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
7783         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
7784         ENOSYS.
7785
7786 2009-08-30  Bruno Haible  <bruno@clisp.org>
7787
7788         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
7789         /usr/xpg4/bin/tr when it exists.
7790         * tests/test-pipe-filter-gi1.sh: Likewise.
7791
7792 2009-08-30  Bruno Haible  <bruno@clisp.org>
7793
7794         Work around deficient /usr/bin/id program on Solaris.
7795         * tests/test-file-has-acl.sh (ID): New variable.
7796         * tests/test-set-mode-acl.sh (ID): Likewise.
7797         * tests/test-copy-acl.sh (ID): Likewise.
7798         * tests/test-copy-file.sh (ID): Likewise.
7799
7800 2009-08-30  Bruno Haible  <bruno@clisp.org>
7801
7802         New module 'xstriconveh'.
7803         * lib/xstriconveh.h: New file.
7804         * lib/xstriconveh.c: New file.
7805         * modules/xstriconveh: New file.
7806
7807 2009-08-30  Bruno Haible  <bruno@clisp.org>
7808
7809         Make it easier to use mem_cd_iconveh.
7810         * lib/striconveh.h (iconveh_t): New type.
7811         (iconveh_open, iconveh_close): New declarations.
7812         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
7813         with a single 'const iconveh_t *' argument.
7814         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
7815         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
7816         with a single 'const iconveh_t *' argument.
7817         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
7818         * tests/test-striconveh.c (main): Update.
7819         * NEWS: Mention the change.
7820
7821 2009-08-30  Bruno Haible  <bruno@clisp.org>
7822
7823         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
7824         problem.
7825
7826 2009-08-30  Bruno Haible  <bruno@clisp.org>
7827
7828         Work around iconv_open problem on Solaris.
7829         * lib/iconv_open-solaris.gperf: New file.
7830         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
7831         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
7832         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
7833         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
7834         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
7835         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
7836
7837 2009-08-29  Jim Meyering  <meyering@redhat.com>
7838
7839         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
7840         * top/maint.mk (cvs-check): Remove target; it was just an alias
7841         to the better-named vc-diff-check.
7842         (maintainer-distcheck): Remove rule.  It was used only from
7843         the (alpha/beta/major) target, and all of its commands but one
7844         were coreutils-specific.
7845         (vc-dist): Remove rule.
7846         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
7847         Run vc-diff-check, not vc-dist.
7848         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
7849
7850 2009-08-27  Bruno Haible  <bruno@clisp.org>
7851
7852         * tests/test-bitrotate.c (main): Remove test that uses a shift count
7853         of 0.
7854
7855 2009-08-27  Bruno Haible  <bruno@clisp.org>
7856
7857         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
7858         compilers.
7859         * doc/func.texi: Document the SunPRO C bug.
7860
7861 2009-08-27  Bruno Haible  <bruno@clisp.org>
7862
7863         Fix link error on Solaris.
7864         * tests/test-parse-duration.c (xstrdup): Remove function.
7865
7866 2009-08-26  Pádraig Brady  <P@draigbrady.com>
7867
7868         ignore-value: handle pointer types, too
7869         * lib/ignore-value.h (__attribute__): Remove definition.
7870         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
7871         of a more concise and more-often effective "(void) i" statement.
7872         (ignore_ptr): New function to suppress warnings from functions that
7873         return pointers, and to make it explicit that one function doesn't
7874         handle all cases.
7875
7876 2009-08-25  Bruno Haible  <bruno@clisp.org>
7877
7878         dup2: work around a Linux bug.
7879         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
7880         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
7881         * doc/posix-functions/dup2.texi: Mention the Linux bug.
7882         Reported by Simon Josefsson.
7883
7884 2009-08-25  Jim Meyering  <meyering@redhat.com>
7885
7886         libguestfs uses gnulib
7887         * users.txt: Add libguestfs.
7888
7889 2009-08-24  Eric Blake  <ebb9@byu.net>
7890
7891         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
7892         * lib/pipe2.c (includes): Add binary-io.h.
7893         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
7894
7895 2009-08-24  Bruno Haible  <bruno@clisp.org>
7896
7897         Tolerate declared but missing accept4 syscall.
7898         * lib/accept4.c (accept4): Invoke original accept4 function first, if
7899         available.
7900         * lib/sys_socket.in.h (accept4): If the function is already present,
7901         override it.
7902         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
7903         * modules/accept4 (Makefile.am): Compile accept4.c always.
7904         Reported by Paolo Bonzini and Eric Blake.
7905
7906 2009-08-23  Bruno Haible  <bruno@clisp.org>
7907
7908         New module 'accept4'.
7909         * lib/sys_socket.in.h (accept4): New declaration.
7910         * lib/accept4.c: New file.
7911         * m4/accept4.m4: New file.
7912         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7913         GNULIB_ACCEPT4, HAVE_ACCEPT4.
7914         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
7915         HAVE_ACCEPT4.
7916         * modules/accept4: New file.
7917         * doc/glibc-functions/accept4.texi: Mention the new module.
7918
7919 2009-08-24  Jim Meyering  <meyering@redhat.com>
7920
7921         progname: also set global program_invocation_name, when possible
7922         Before this change, a libtool-enabled program that calls glibc's
7923         error function would report the program name as
7924         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
7925         * modules/progname (configure.ac): Check for a declaration of
7926         program_invocation_name.
7927         * lib/progname.c:  Include <errno.h>.
7928         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
7929         Set program_invocation_name.
7930
7931 2009-08-23  Bruno Haible  <bruno@clisp.org>
7932
7933         * lib/dup3.c: Include <string.h>.
7934
7935 2009-08-23  Bruno Haible  <bruno@clisp.org>
7936
7937         * lib/dup3.c (dup3): Test only once whether the system actually exists.
7938         * lib/pipe2.c (pipe2): Likewise.
7939         Suggested by Eric Blake.
7940
7941 2009-08-23  Bruno Haible  <bruno@clisp.org>
7942
7943         Tolerate declared but missing dup3 syscall.
7944         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
7945         * lib/unistd.in.h (dup3): If the function is already present,
7946         override it.
7947         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
7948         * modules/dup3 (Makefile.am): Compile dup3.c always.
7949         Reported by Paolo Bonzini.
7950
7951 2009-08-23  Bruno Haible  <bruno@clisp.org>
7952
7953         Tolerate declared but missing pipe2 syscall.
7954         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
7955         available.
7956         * lib/unistd.in.h (pipe2): If the function is already present,
7957         override it.
7958         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
7959         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
7960         Reported by Paolo Bonzini.
7961
7962 2009-08-23  Bruno Haible  <bruno@clisp.org>
7963
7964         * lib/pipe2.c (pipe2): Move #ifs inside function.
7965
7966 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
7967
7968         quotearg: document limitations of quote_these_too
7969         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
7970         those limitations are created.
7971         * lib/quotearg.h (set_char_quoting): Document that digits and
7972         letters that are special after backslash are not permitted.
7973         (quotearg_char): Cross-reference set_char_quoting documentation.
7974
7975 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
7976
7977         quotearg: implement custom_quoting_style
7978         * lib/quotearg.c: (struct quoting_options): Add left_quote and
7979         right_quote fields.
7980         (set_custom_quoting): New public function.
7981         (quotearg_buffer_restyled): Add left_quote and right_quote
7982         arguments, handle them very much like locale quoting, and update
7983         all uses.
7984         (quotearg_n_custom): New public function.
7985         (quotearg_n_custom_mem): New public function.
7986         (quotearg_custom): New public function.
7987         (quotearg_custom_mem): New public function.
7988         * lib/quotearg.h: Prototype and document new public functions.
7989         (enum quoting_style): For escape_quoting_style and
7990         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
7991         ignored even though they're otherwise like c_quoting_style.
7992         Add custom_quoting_style member and document with comparison to
7993         clocale_quoting_style.
7994         * tests/test-quotearg.c (custom_quotes): New array.
7995         (custom_results): New array.
7996         (main): Extend to test custom quoting.
7997
7998 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
7999
8000         quotearg: fix right quote escaping when it's in quote_these_too
8001         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
8002         quote, be sure to prepend only one backslash.
8003         * tests/test-quotearg.c (use_quote_double_quotes): New function.
8004         (main): Test it.
8005
8006 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
8007
8008         quotearg-tests: test escaping of embedded locale quotes
8009         * tests/test-quotearg.c (struct result_strings): Add member for
8010         new input.
8011         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
8012         (inputs): Add new input.
8013         (results_g): Add expected results.
8014         (flag_results): Likewise.
8015         (locale_results): Likewise.
8016         (compare_strings): Check those.
8017
8018 2009-08-23  Bruno Haible  <bruno@clisp.org>
8019
8020         Tests for module 'dup3'.
8021         * modules/dup3-tests: New file.
8022         * tests/test-dup3.c: New file.
8023
8024         New module 'dup3'.
8025         * lib/unistd.in.h (dup3): New declaration.
8026         * lib/dup3.c: New file.
8027         * m4/dup3.m4: New file.
8028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
8029         HAVE_DUP3.
8030         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
8031         * modules/dup3: New file.
8032         * doc/glibc-functions/dup3.texi: Mention the new module.
8033
8034 2009-08-23  Bruno Haible  <bruno@clisp.org>
8035
8036         Tweak the dup2 test.
8037         * tests/test-dup2.c (main): Create the test file empty. Verify that an
8038         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
8039         the test file is still empty. Fix argument order of lseek.
8040
8041 2009-08-23  Bruno Haible  <bruno@clisp.org>
8042
8043         Avoid test link errors when the modules getopt-gnu, gettext are used.
8044         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
8045         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8046
8047 2009-08-23  Bruno Haible  <bruno@clisp.org>
8048
8049         Fix getdtablesize() on mingw.
8050         * lib/getdtablesize.c (getdtablesize): Implement differently.
8051         * lib/unistd.in.h (getdtablesize): Improve comment.
8052
8053 2009-08-23  Bruno Haible  <bruno@clisp.org>
8054
8055         New module 'mkostemp'.
8056         Based on Ulrich Drepper's 2007-08-10 change in glibc.
8057         * lib/stdlib.in.h (mksotemp): New declaration.
8058         * lib/mkostemp.c: New file, from glibc with modifications.
8059         * lib/tempname.h (GT_FILE): Remove outdated comment.
8060         (gen_tempname): Add flags argument.
8061         * lib/tempname.c (__GT_BIGFILE): Remove macro.
8062         (__GT_FILE): Map to 1.
8063         (small_open, large_open): Remove macros.
8064         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
8065         * lib/mkstemp.c (mkstemp): Update.
8066         * lib/mkdtemp.c (mkdtemp): Likewise.
8067         * m4/mkostemp.m4: New file.
8068         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
8069         HAVE_MKOSTEMP.
8070         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
8071         HAVE_MKOSTEMP.
8072         * modules/mkostemp: New file, based on modules/mkstemp.
8073         * doc/glibc-functions/mkostemp.texi: Mention the new module.
8074         * NEWS: Mention the change.
8075
8076 2009-08-23  Bruno Haible  <bruno@clisp.org>
8077
8078         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
8079         Reported by Eric Blake.
8080
8081 2009-08-23  Bruno Haible  <bruno@clisp.org>
8082
8083         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
8084         Reported by Eric Blake.
8085
8086 2009-08-23  Bruno Haible  <bruno@clisp.org>
8087
8088         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
8089         * modules/pipe2 (Depends-on): Likewise.
8090
8091 2009-08-23  Eric Blake  <ebb9@byu.net>
8092
8093         fcntl-h: add O_TTY_INIT support
8094         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
8095         * tests/test-fcntl-h.c (o): Test it.
8096         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
8097
8098         fcntl-h: rename from fcntl, in preparation for fcntl(2)
8099         * modules/fcntl: Move <fcntl.h> header replacement...
8100         * modules/fcntl-h: ...to new name, so as not to collide with
8101         like-named function.
8102         * tests/test-fcntl.c: Rename...
8103         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
8104         * modules/fcntl-tests: Rename...
8105         * modules/fcntl-h-tests: ...to this.  Update test file name.
8106         * modules/chdir-long (Depends-on): Update clients.
8107         * modules/chdir-safer (Depends-on): Likewise.
8108         * modules/fcntl-safer (Depends-on): Likewise.
8109         * modules/fts (Depends-on): Likewise.
8110         * modules/mkancesdirs (Depends-on): Likewise.
8111         * modules/mkdir-p (Depends-on): Likewise.
8112         * modules/open (Depends-on): Likewise.
8113         * modules/savewd (Depends-on): Likewise.
8114         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
8115         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
8116
8117 2009-08-22  Bruno Haible  <bruno@clisp.org>
8118
8119         * modules/binary-io (License): Relicense under LGPL.
8120         * modules/pipe2 (License): Likewise.
8121
8122 2009-08-22  Bruno Haible  <bruno@clisp.org>
8123
8124         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
8125         return value.
8126         * lib/pipe-filter-gi.c (filter_init): Likewise.
8127         Reported by Eric Blake.
8128
8129 2009-08-22  Bruno Haible  <bruno@clisp.org>
8130
8131         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
8132         * modules/pipe (Depends-on): Add pipe2.
8133
8134 2009-08-22  Bruno Haible  <bruno@clisp.org>
8135
8136         Tests for module 'pipe2'.
8137         * modules/pipe2-tests: New file.
8138         * tests/test-pipe2.c: New file.
8139
8140         New module 'pipe2'.
8141         * lib/unistd.in.h (pipe2): New declaration.
8142         * lib/pipe2.c: New file.
8143         * m4/pipe2.m4: New file.
8144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
8145         HAVE_PIPE2.
8146         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
8147         * modules/pipe2: New file.
8148         * doc/glibc-functions/pipe2.texi: Mention the new module.
8149
8150 2009-08-22  Bruno Haible  <bruno@clisp.org>
8151
8152         Reference some new glibc functions.
8153         * doc/glibc-functions/accept4.texi: New file.
8154         * doc/glibc-functions/dup3.texi: New file.
8155         * doc/glibc-functions/mkostemp.texi: New file.
8156         * doc/glibc-functions/pipe2.texi: New file.
8157         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
8158         (Glibc sys/socket.h): Refer to accept4.
8159         (Glibc unistd.h): Refer to dup3, pipe2.
8160         Reported by Eric Blake.
8161
8162 2009-08-22  Jim Meyering  <meyering@redhat.com>
8163             Bruno Haible  <bruno@clisp.org>
8164
8165         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
8166         This makes it so packages using automake-1.11's silent-rules option
8167         can print e.g., a single "GEN    configmake.h" line, rather than
8168         the 30+ statements that perform the job.  If you want to see the
8169         actual commands, you can still run "make V=1".
8170         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
8171         so that make output is abbreviated when those variables are defined
8172         appropriately.
8173         * modules/argz: Likewise.
8174         * modules/arpa_inet: Likewise.
8175         * modules/byteswap: Likewise.
8176         * modules/configmake: Likewise.
8177         * modules/dirent: Likewise.
8178         * modules/errno: Likewise.
8179         * modules/fcntl: Likewise.
8180         * modules/float: Likewise.
8181         * modules/fnmatch: Likewise.
8182         * modules/getopt-posix: Likewise.
8183         * modules/glob: Likewise.
8184         * modules/iconv_open: Likewise.
8185         * modules/inttypes: Likewise.
8186         * modules/localcharset: Likewise.
8187         * modules/locale: Likewise.
8188         * modules/math: Likewise.
8189         * modules/netdb: Likewise.
8190         * modules/netinet_in: Likewise.
8191         * modules/poll: Likewise.
8192         * modules/posix_spawnp-tests: Likewise.
8193         * modules/sched: Likewise.
8194         * modules/search: Likewise.
8195         * modules/selinux-h: Likewise.
8196         * modules/signal: Likewise.
8197         * modules/spawn: Likewise.
8198         * modules/stdarg: Likewise.
8199         * modules/stdbool: Likewise.
8200         * modules/stddef: Likewise.
8201         * modules/stdint: Likewise.
8202         * modules/stdio: Likewise.
8203         * modules/stdlib: Likewise.
8204         * modules/string: Likewise.
8205         * modules/strings: Likewise.
8206         * modules/sys_file: Likewise.
8207         * modules/sys_ioctl: Likewise.
8208         * modules/sys_select: Likewise.
8209         * modules/sys_socket: Likewise.
8210         * modules/sys_stat: Likewise.
8211         * modules/sys_time: Likewise.
8212         * modules/sys_times: Likewise.
8213         * modules/sys_utsname: Likewise.
8214         * modules/sys_wait: Likewise.
8215         * modules/sysexits: Likewise.
8216         * modules/time: Likewise.
8217         * modules/unistd: Likewise.
8218         * modules/wchar: Likewise.
8219         * modules/wctype: Likewise.
8220
8221 2009-08-22  Jim Meyering  <meyering@redhat.com>
8222
8223         announce-gen: detect write failure
8224         * build-aux/announce-gen: Add Coda at end.
8225         Remove equivalent-but-more-verbose block at top.
8226
8227 2009-08-19  Akim Demaille  <demaille@gostai.com>
8228
8229         bootstrap: --help to stdout.
8230         * bootstrap (usage): Don't send --help to stderr.
8231         Use a here doc instead of a long string.
8232
8233 2009-08-21  Eric Blake  <ebb9@byu.net>
8234
8235         test-popen-safer: split from test-popen
8236         * tests/test-popen.c (main): Move...
8237         * tests/test-popen.h: ...into new file.
8238         * tests/test-popen-safer2.c: New file.
8239         * modules/popen-tests (Files): Add test-popen.h.
8240         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
8241         Suggested by Bruno Haible.
8242
8243         test-fcntl-safer: split from test-open
8244         * tests/test-open.c (main): Move...
8245         * tests/test-open.h: ...into new file.
8246         * tests/test-fcntl-safer.c: New file.
8247         * modules/open-tests (Files): Add test-open.h.
8248         * modules/fcntl-safer-tests: New file.
8249         Suggested by Bruno Haible.
8250
8251         test-fopen-safer: split from test-fopen
8252         * tests/test-fopen.c (main): Move...
8253         * tests/test-fopen.h: ...into new file.
8254         * tests/test-fopen-safer.c: New file.
8255         * modules/fopen-tests (Files): Add test-fopen.h.
8256         * modules/fopen-safer-tests: New file.
8257         Suggested by Bruno Haible.
8258
8259 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
8260
8261         popen-safer: test O_CLOEXEC at run-time.
8262         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
8263
8264 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
8265
8266         fcntl: move more flags to the header
8267         * lib/cloexec.c: Do not define FD_CLOEXEC here.
8268         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
8269         * lib/fcntl.in.h: Do both things here.
8270
8271 2009-08-21  Jim Meyering  <meyering@redhat.com>
8272
8273         consistently remove $@-t before redirecting to it
8274         * modules/argz: Remove $@-t and $@ before redirecting to the former.
8275         * modules/alloca-opt: Likewise.
8276         * modules/byteswap: Likewise.
8277         * modules/fnmatch: Likewise.
8278         * modules/getopt-posix: Likewise.
8279         * modules/glob: Likewise.
8280         * modules/poll: Likewise.
8281         * modules/posix_spawnp-tests: Likewise.
8282         * modules/sys_socket: Likewise.
8283         * modules/sysexits: Likewise.
8284
8285 2009-08-21  Eric Blake  <ebb9@byu.net>
8286
8287         popen: simplify access to original popen
8288         * lib/popen.c (rpl_popen): No need to worry about popen being a
8289         macro.
8290         Reported by Bruno Haible.
8291
8292 2009-08-20  Eric Blake  <ebb9@byu.net>
8293
8294         build: avoid some compiler warnings
8295         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
8296         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
8297         type.
8298         (new_exclude_segment, excluded_file_pattern_p)
8299         (excluded_file_name_p): Reduce scope.
8300         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
8301         old-style declaration.
8302
8303 2009-08-20  Simon Josefsson  <simon@josefsson.org>
8304
8305         * tests/test-exclude1.sh: Handle Windows EOL.
8306         * tests/test-exclude2.sh: Likewise.
8307         * tests/test-exclude3.sh: Likewise.
8308         * tests/test-exclude4.sh: Likewise.
8309         * tests/test-exclude5.sh: Likewise.
8310         * tests/test-exclude6.sh: Likewise.
8311         * tests/test-exclude7.sh: Likewise.
8312
8313 2009-08-19  Akim Demaille  <demaille@gostai.com>
8314
8315         bootstrap: find sha1sum when named gsha1sum.
8316         * bootstrap (find_tool): New.
8317         ($SHA1SUM): New.
8318         Use it.
8319
8320 2009-08-20  Jim Meyering  <meyering@redhat.com>
8321
8322         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
8323         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
8324         expression that converts "." in a file name to "\." in the resulting
8325         regexp.  Start with a dummy statement, so that prior shell variable
8326         definitions are expanded portably.  Reported by Simon Josefsson.
8327
8328 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
8329
8330         Fix polling for writeability of a screen buffer.
8331         * lib/poll.c: Distinguish input and screen buffers for the
8332         Win32 implementation.
8333         * lib/select.c: Likewise.
8334
8335 2009-08-19  Eric Blake  <ebb9@byu.net>
8336
8337         popen-safer: prevent popen from clobbering std descriptors
8338         * modules/popen-safer: New file.
8339         * lib/popen-safer.c: Likewise.
8340         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
8341         * lib/stdio--.h (popen): Provide override.
8342         * lib/stdio-safer.h (popen_safer): Provide declaration.
8343         * tests/test-popen.c (includes): Partially test this.
8344         * modules/popen-safer-tests: New file, for more tests.
8345         * tests/test-popen-safer.c: Likewise.
8346         * MODULES.html.sh (file stream based Input/Output): Mention it.
8347
8348         tests: test some of the *-safer modules
8349         * modules/fopen-safer (Depends-on): Add fopen.
8350         * modules/fcntl-safer (Depends-on): Add fcntl.
8351         * modules/stdlib-safer (Depends-on): Add stdlib.
8352         (configure.ac): Set indicator.
8353         * modules/unistd-safer (configure.ac): Likewise.
8354         * modules/tmpfile-safer (configure.ac): Likewise.
8355         (Depends-on): Add tmpfile.
8356         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
8357         active.
8358         * tests/test-fopen.c (includes): Test safer versions when they are
8359         in use.
8360         * tests/test-open.c (includes): Likewise.
8361
8362         popen: fix cygwin 1.5 bug when stdin closed
8363         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
8364         * modules/popen: New file.
8365         * modules/popen-tests: Likewise.
8366         * tests/test-popen.c: Likewise.
8367         * m4/popen.m4: Likewise.
8368         * lib/popen.c: Likewise.
8369         * lib/stdio.in.h (popen): New declaration.
8370         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
8371         * modules/stdio (Makefile.am): Likewise.
8372         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
8373
8374 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
8375
8376         maint.mk: give full control over update-copyright exclusions
8377         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
8378         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
8379         (update-copyright): Don't force inclusion of top-level
8380         ChangeLog.  Don't force exclusion of all COPYING files, but make
8381         them the default exclusion instead.
8382
8383 2009-08-16  Bruno Haible  <bruno@clisp.org>
8384
8385         Fix test failures on Solaris 10.
8386         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
8387         tests when Solaris iconv() is used.
8388         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
8389         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
8390         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
8391         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
8392         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
8393
8394 2009-08-16  Bruno Haible  <bruno@clisp.org>
8395
8396         Fix test failures on Solaris 10.
8397         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
8398         'tr' program and pass it as first argument.
8399         * tests/test-pipe-filter-gi1.sh: Likewise.
8400         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
8401         program as first argument.
8402         * tests/test-pipe-filter-gi1.c (main): Likewise.
8403
8404 2009-08-16  Eric Blake  <ebb9@byu.net>
8405
8406         fpurge: fix previous commits
8407         * modules/fpurge (Makefile.am): Make replacement conditional,
8408         partially reverting 2007-04-29 change; missed in previous
8409         attempt.
8410         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
8411         is missing.
8412
8413 2009-08-16  Bruno Haible  <bruno@clisp.org>
8414
8415         Clarify fpurge's effect on the file position.
8416         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
8417         * tests/test-fpurge.c (main): Make a second pass for checking the file
8418         position.
8419
8420 2009-08-16  Bruno Haible  <bruno@clisp.org>
8421
8422         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
8423         declaration of fpurge is missing.
8424         * tests/test-fpurge.c (main): Check that the file has not more contents
8425         than expected. Close the file before removing it.
8426
8427 2009-08-15  Eric Blake  <ebb9@byu.net>
8428
8429         fpurge: don't wrap working cygwin implementation
8430         * lib/fpurge.c (fpurge): Fix comment typo.
8431         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
8432         1.7 to avoid replacement.
8433         * tests/test-fpurge.c (main): Enhance test.
8434
8435 2009-08-15  Eric Blake  <ebb9@byu.net>
8436         and Jim Meyering  <meyering@redhat.com>
8437
8438         test-update-copyright: skip if perl is insufficient
8439         * tests/test-update-copyright.sh: Failure to run maintainer tool
8440         should not cause testsuite failure on cygwin 1.5.
8441
8442 2009-08-14  Eric Blake  <ebb9@byu.net>
8443
8444         doc: mention more functions added in cygwin 1.7.0
8445         * doc/posix-headers/limits.texi (limits.h): Update for recent
8446         cygwin additions.
8447         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
8448         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8449         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
8450         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
8451         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
8452
8453 2009-08-14  Eric Blake  <ebb9@byu.net>
8454
8455         maint.mk: simplify update-copyright rule
8456         * top/maint.mk (update-copyright-local): Delete, and document how
8457         to do it in cfg.mk instead.
8458         (update-copyright-exclude-regexp): Delete, and document how to do
8459         it in .x-update-copyright instead.
8460         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
8461         exclude ChangeLog.
8462
8463 2009-08-14  Bruno Haible  <bruno@clisp.org>
8464
8465         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
8466
8467 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
8468
8469         maint.mk: support update-copyright-env
8470         * top/maint.mk (update-copyright-env): Define place-holder.
8471         (update-copyright): Expand $(update-copyright-env) before
8472         invoking update-copyright.
8473
8474 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
8475
8476         update-copyright: implement forced reformatting
8477         * build-aux/update-copyright: Implement and document
8478         UPDATE_COPYRIGHT_FORCE.
8479         * tests/test-update-copyright.sh: Test it.
8480
8481 2009-08-14  Eric Blake  <ebb9@byu.net>
8482         and Bruno Haible  <bruno@clisp.org>
8483
8484         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
8485         * tests/test-locale.c: Revert previous patch related to NULL.
8486         * tests/test-stdio.c: Likewise.
8487         * tests/test-stdlib.c: Likewise.
8488         * tests/test-string.c: Likewise.
8489         * tests/test-unistd.c: Likewise.
8490         * modules/time-tests (Depends-on): Add verify.
8491         * modules/wchar-tests (Depends-on): Likewise.
8492         * tests/test-time.c: Test for NULL compliance.
8493         * tests/test-wchar.c: Likewise.
8494         * modules/locale (Depends-on): Add stddef.
8495         * modules/stdio (Depends-on): Likewise.
8496         * modules/stdlib (Depends-on): Likewise.
8497         * modules/string (Depends-on): Likewise.
8498         * modules/time (Depends-on): Likewise.
8499         * modules/unistd (Depends-on): Likewise.
8500         * modules/wchar (Depends-on): Likewise.
8501         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
8502         * lib/stdlib.in.h (includes): Likewise.
8503         * lib/string.in.h (includes): Likewise.
8504         * lib/time.in.h (includes): Likewise.
8505         * lib/unistd.in.h (includes): Likewise.
8506         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
8507         replaced.
8508         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8509         * m4/stddef_h.m4: New file.
8510         * modules/stddef: Likewise.
8511         * lib/stddef.in.h: Likewise.
8512         * modules/stddef-tests: Likewise.
8513         * tests/test-stddef.c: Likewise.
8514         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
8515         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
8516         * doc/posix-headers/locale.texi (locale.h): Likewise.
8517         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
8518         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8519         * doc/posix-headers/string.texi (string.h): Likewise.
8520         * doc/posix-headers/time.texi (time.h): Likewise.
8521         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
8522         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
8523
8524 2009-08-14  Eric Blake  <ebb9@byu.net>
8525
8526         doc: improve git diff of texinfo files
8527         * .gitattributes: Add rule for *.texi files, with hint on how to
8528         use it.
8529         Copied from m4, and based on a report by Bruno Haible.
8530
8531 2009-08-14  Bruno Haible  <bruno@clisp.org>
8532
8533         Disable multithread support by default on Cygwin 1.5.x for real.
8534         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
8535
8536 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
8537
8538         update-copyright: much ado about intervals
8539         * build-aux/update-copyright: Implement and document
8540         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
8541         of copyright year intervals.
8542         Also, document UPDATE_COPYRIGHT_YEAR.
8543         * tests/test-update-copyright.sh: Test it.
8544
8545         update-copyright: convert 2-digit to 4-digit years
8546         * build-aux/update-copyright: Implement and document.
8547         * tests/test-update-copyright.sh: Update.
8548
8549 2009-08-14  Jim Meyering  <meyering@redhat.com>
8550
8551         test-exclude: avoid coreutils "make check" failure
8552         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
8553         just as in test-argmatch.c.
8554
8555 2009-08-13  Eric Blake  <ebb9@byu.net>
8556
8557         test-dup2: fix bad assumption
8558         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
8559         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
8560
8561         test-version-etc: fix CRLF portability issue
8562         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
8563         recognize \r.
8564         * tests/test-argp-version-etc-1.sh: Likewise.
8565
8566         getopt: update client modules
8567         * modules/argp (Depends-on): Use getopt-gnu.
8568         * modules/git-merge-changelog (Depends-on): Likewise.
8569         * modules/long-options (Depends-on): Likewise.
8570         * modules/xstrtol (Depends-on): Likewise.
8571
8572 2009-08-13  Simon Josefsson  <simon@josefsson.org>
8573
8574         * tests/test-version-etc.sh: Don't fail on different
8575         project/version.  Don't fail on CRLF differences.  Rewrite to use
8576         multiple -e instead of multiple sed forks, suggested by Eric Blake
8577         <ebb9@byu.net>.
8578         * tests/test-argp-version-etc-1.sh: Likewise.
8579
8580 2009-08-13  Simon Josefsson  <simon@josefsson.org>
8581
8582         * tests/test-version-etc.sh: Don't fail on different
8583         project/version.
8584
8585 2009-08-12  Bruno Haible  <bruno@clisp.org>
8586
8587         Tests for modules 'getopt-posix', 'getopt-gnu'.
8588         * modules/getopt-posix-tests: New file.
8589         * tests/test-getopt.c: New file.
8590         * tests/test-getopt.h: New file.
8591         * tests/test-getopt_long.h: New file.
8592
8593         New modules 'getopt-posix', 'getopt-gnu'.
8594         * modules/getopt-gnu: New file, renamed from modules/getopt.
8595         * modules/getopt-posix: New file.
8596         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
8597         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
8598         (gl_GETOPT): Remove macro.
8599         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
8600         Disable the test against BSD systems that declare optreset. Test
8601         against mingw bug. Test against lack of support of optional arguments
8602         on many platforms.
8603         * doc/glibc-headers/getopt.texi: Update module name and list of
8604         relevant platforms.
8605         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
8606         'getopt-gnu' and more portability problems.
8607         * NEWS: Mention the changes.
8608
8609 2009-08-12  Bruno Haible  <bruno@clisp.org>
8610
8611         Ensure that optarg etc. get declared by <unistd.h>.
8612         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
8613         AC_USE_SYSTEM_EXTENSIONS.
8614         * modules/getopt (Depends-on): Add 'extensions'.
8615
8616 2009-08-12  Bruno Haible  <bruno@clisp.org>
8617
8618         Avoid test link errors.
8619         * modules/pipe-filter-ii-tests (Makefile.am): Define
8620         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
8621         * modules/pipe-filter-gi-tests (Makefile.am): Define
8622         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
8623         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8624
8625 2009-08-12  Bruno Haible  <bruno@clisp.org>
8626
8627         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
8628         gl_GETOPT_SUBSTITUTE before.
8629         (gl_GETOPT): Use it.
8630         * m4/argp.m4 (gl_ARGP): Update.
8631         Reported by Sergey Poznyakoff.
8632
8633         * m4/getopt.m4: Reorder macros.
8634         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
8635         (gl_GETOPT_SUBSTITUTE): Remove macro.
8636
8637 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
8638
8639         Minor improvement in gitlog-to-changelog
8640
8641         * build-aux/gitlog-to-changelog: New option `--format' makes
8642         output format string configurable.
8643
8644 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
8645
8646         Optimize exclude: use hash tables for non-wildcard patterns.
8647
8648         * lib/exclude.c: Include hash.h and mbuiter.h
8649         (struct exclude_pattern, exclude_segment): New data types.
8650         (struct exclude): Rewrite.
8651         (fnmatch_pattern_has_wildcards): New function.
8652         (new_exclude_segment, free_exclude_segment): New functions.
8653         (excluded_file_pattern_p, excluded_file_name_p): New functions.
8654         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
8655         * lib/exclude.h (is_fnmatch_pattern): New prototype.
8656         * modules/exclude: Depend on hash and mbuiter.
8657
8658         * modules/exclude-tests: New file.
8659         * tests/test-exclude.c: New file.
8660         * tests/test-exclude1.sh: New file.
8661         * tests/test-exclude2.sh: New file.
8662         * tests/test-exclude3.sh: New file.
8663         * tests/test-exclude4.sh: New file.
8664         * tests/test-exclude5.sh: New file.
8665         * tests/test-exclude6.sh: New file.
8666         * tests/test-exclude7.sh: New file.
8667
8668 2009-08-12  Bruno Haible  <bruno@clisp.org>
8669
8670         Ensure that getopt() gets declared by <unistd.h>.
8671         * lib/unistd.in.h: Conditionally include getopt.h.
8672         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
8673         Set GNULIB_UNISTD_H_GETOPT.
8674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8675         GNULIB_UNISTD_H_GETOPT.
8676         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
8677
8678 2009-08-12  Bruno Haible  <bruno@clisp.org>
8679
8680         Clarify logic.
8681         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
8682         gl_replace_getopt instead of GETOPT_H.
8683
8684 2009-08-12  Bruno Haible  <bruno@clisp.org>
8685
8686         * m4/getopt.m4: Add comments.
8687
8688 2009-08-12  Bruno Haible  <bruno@clisp.org>
8689
8690         Disable multithread support by default on Cygwin 1.5.x.
8691         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
8692         set gl_use_threads=no if not specified otherwise.
8693
8694 2009-08-11  Bruno Haible  <bruno@clisp.org>
8695
8696         Avoid compilation error on NetBSD 5.0.
8697         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
8698         * tests/test-stdio.c: Likewise.
8699         * tests/test-stdlib.c: Likewise.
8700         * tests/test-string.c: Likewise.
8701         * tests/test-unistd.c: Likewise.
8702         Reported by Greg Troxel <gdt@ir.bbn.com>
8703         at <https://savannah.gnu.org/support/?106973>.
8704
8705 2009-08-11  Bruno Haible  <bruno@clisp.org>
8706
8707         * modules/dup2-tests (Depends-on): Remove close.
8708
8709         Undo 2009-07-19 commit.
8710         * modules/acl-tests (Depends-on): Remove close.
8711         * modules/binary-io-tests (Depends-on): Likewise.
8712         * modules/closein-tests (Depends-on): Likewise.
8713         * modules/flock-tests (Depends-on): Likewise.
8714         * modules/fsync-tests (Depends-on): Likewise.
8715         * modules/lseek-tests (Depends-on): Likewise.
8716         * modules/pipe-tests (Depends-on): Likewise.
8717         * modules/posix_spawn-tests (Depends-on): Likewise.
8718         * modules/posix_spawnp-tests (Depends-on): Likewise.
8719         * modules/stat-time-tests (Depends-on): Likewise.
8720         * modules/yesno-tests (Depends-on): Likewise.
8721
8722 2009-08-10  Bruno Haible  <bruno@clisp.org>
8723
8724         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
8725
8726 2009-08-10  Bruno Haible  <bruno@clisp.org>
8727
8728         Fix a gcc warning.
8729         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
8730
8731 2009-08-10  Bruno Haible  <bruno@clisp.org>
8732
8733         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
8734         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
8735         not only the first time.
8736         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
8737         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
8738         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
8739         is 1, not only the the first time.
8740
8741 2009-08-10  Bruno Haible  <bruno@clisp.org>
8742
8743         Make it possible to use module 'gethostname' without module 'close'.
8744         * lib/unistd.in.h (close): Evoke a link error only if
8745         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
8746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8747         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8748         * modules/unistd (Makefile.am): Substitute
8749         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8750         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
8751         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
8752         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
8753         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8754         * modules/sys_ioctl (Makefile.am): Substitute
8755         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8756         * modules/socket (configure.ac): On native Windows, set
8757         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
8758         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8759         Reported by Sam Steingold <sds@gnu.org>.
8760
8761 2009-08-10  Bruno Haible  <bruno@clisp.org>
8762
8763         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
8764         * modules/ioctl (configure.ac): Likewise.
8765
8766 2009-08-10  Bruno Haible  <bruno@clisp.org>
8767
8768         Avoid collision between gnulib wrapper and libintl wrapper.
8769         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
8770         already defined in intl/printf.c.
8771         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
8772         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
8773
8774 2009-08-09  Bruno Haible  <bruno@clisp.org>
8775
8776         Make <sys/select.h> really self-contained, also on Solaris 10.
8777         * lib/sys_select.in.h: Include <string.h>.
8778         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
8779         Solaris 10 problem.
8780         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
8781         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
8782         Reported by Jim Meyering.
8783
8784 2009-08-09  Bruno Haible  <bruno@clisp.org>
8785
8786         Avoid warnings from 'aclocal' that are due to a use of macro name
8787         AM_XGETTEXT_OPTION that is not defined in automake.
8788         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
8789         automake.
8790         * modules/error (configure.ac): Likewise.
8791         * modules/propername (configure.ac): Likewise.
8792         * modules/vasprintf (configure.ac): Likewise.
8793         * modules/verror (configure.ac): Likewise.
8794         * modules/xprintf (configure.ac): Likewise.
8795         * modules/xvasprintf (configure.ac): Likewise.
8796
8797 2009-08-08  Bruno Haible  <bruno@clisp.org>
8798
8799         Avoid compilation error in C++ mode.
8800         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
8801         Reported by Sam Steingold <sds@gnu.org>.
8802
8803 2009-08-08  Bruno Haible  <bruno@clisp.org>
8804
8805         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
8806         for the various Unix platforms.
8807         * doc/posix-headers/limits.texi: Update platforms list regarding
8808         HOST_NAME_MAX.
8809         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8810
8811 2009-08-07  Jim Meyering  <meyering@redhat.com>
8812
8813         selinux-at: fix typo in a comment
8814         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
8815         Spotted by Paolo Bonzini.
8816
8817         selinux-at: remove redundant m4 code, add documentation
8818         * modules/selinux-at (configure.ac): Remove redundant code.
8819         LIB_SELINUX is already set via the dependent module, selinux-h.
8820         (Include): Add quotes around selinux-at.h.
8821         * lib/selinux-at.h: Add documentation.
8822         Reported by Bruno Haible in
8823         http://marc.info/?l=gnulib-bug&m=124958988300749
8824
8825 2009-08-07  Bruno Haible  <bruno@clisp.org>
8826
8827         Avoid link error on MacOS X 10.3 and 10.4.
8828         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
8829         on non-ELF systems.
8830         * lib/argp-pv.c (argp_program_version): Likewise.
8831         Reported by Simon Josefsson.
8832
8833 2009-08-07  Simon Josefsson  <simon@josefsson.org>
8834
8835         * tests/test-version-etc.sh: Use $EXEEXT.
8836
8837 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
8838
8839         update-copyright: update documentation to point to maint.mk
8840         * build-aux/update-copyright: Here.
8841
8842 2009-08-06  Jim Meyering  <meyering@redhat.com>
8843
8844         maint.mk: support update-copyright-local
8845         * top/maint.mk (update-copyright-local): Define place-holder.
8846         (update-copyright): Depend on $(update-copyright-local).
8847
8848 2009-08-06  Jim Meyering  <meyering@redhat.com>
8849
8850         selinux-at: new module
8851         Initially written for coreutils, this module will soon be
8852         used by findutils, too.
8853         * MODULES.html.sh [Misc]: Add selinux-at.
8854         * lib/selinux-at.h: New file, from coreutils.
8855         * lib/selinux-at.c: Likewise.
8856         * modules/selinux-at: Likewise.
8857         (License): Change from LGPL to GPL, since it depends
8858         on the GPL'd openat module.
8859
8860         doc: update README
8861         * README: Remove references to cogito.
8862         Remove cvs-repo-updating instructions from 2007.
8863         Don't imply that CVS is better if you have limited disk space.
8864
8865 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8866
8867         update-copyright: support C-style comments
8868         * build-aux/update-copyright: Implement and document.
8869         * tests/test-update-copyright.sh: Test.
8870
8871 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8872
8873         update-copyright: support omitted "(C)"
8874         * build-aux/update-copyright: Implement and document.  Also,
8875         allow variable whitespace before "(C)".
8876         * tests/test-update-copyright.sh: Test.
8877
8878 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8879
8880         update-copyright: don't trip on non-FSF copyright statements
8881         * build-aux/update-copyright: Fix so that the first correctly
8882         formatted FSF copyright statement is recognized no matter what
8883         appears before it.  Update documentation.
8884         * tests/test-update-copyright.sh: Test that.
8885
8886 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8887
8888         update-copyright: clean up code a little
8889         * build-aux/update-copyright: Append "_re" to the name of any
8890         variable holding a regular expression.
8891         Replace "old" and "new" with "stmt" in variable names.
8892         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
8893         handled correctly.
8894         Format code more consistently.
8895
8896 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8897
8898         update-copyright-tests: improve portability
8899         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
8900         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
8901
8902 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
8903
8904         update-copyright: support @copyright{} and &copy;
8905         * build-aux/update-copyright: Implement and document.
8906         * tests/test-update-copyright.sh: Test.
8907
8908 2009-08-04  Jim Meyering  <meyering@redhat.com>
8909
8910         update-copyright-tests: correctly test EOL=\r\n handling
8911         * tests/test-update-copyright.sh: Put \r at the end of some lines
8912         for the dos-eol tests.  Based on a patch by Joel E. Denny.
8913
8914         maint.mk: make update-copyright exclusion list more configurable
8915         * top/maint.mk (update-copyright): Default to excluding COPYING,
8916         but allow an override, in case someone does want to update that file.
8917
8918         maint.mk: don't update copyright date in COPYING
8919         * top/maint.mk (update-copyright): Exclude COPYING.
8920
8921         maint.mk: add a copyright-updating rule
8922         * top/maint.mk (update-copyright): New rule.
8923         Derived from coreutils/Makefile.am.
8924
8925         update-copyright: rename some variables
8926         * build-aux/update-copyright: Rename a few variables for clarity.
8927         Tweak syntax.  List Joel E. Denny as coauthor.
8928
8929 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
8930
8931         update-copyright: fix bug for 2-digit last year and add tests
8932         * build-aux/update-copyright: Fix bug.
8933         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
8934         specified.
8935         * modules/update-copyright-tests: New
8936         * tests/test-update-copyright.sh: New.
8937
8938 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
8939
8940         update-copyright: handle leading tabs in line prefix
8941         * build-aux/update-copyright: Count leading tabs as 8 spaces
8942         when computing margin.  This helps with the formatting of
8943         ChangeLogs, for example.
8944         Fix documentation a little.
8945
8946 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
8947
8948         update-copyright: support EOL=\r\n
8949         * build-aux/update-copyright: Implement that.
8950
8951 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
8952
8953         update-copyright: automatically format copyright statements
8954         * build-aux/update-copyright: Implement that.
8955         Also, be a little more predictable and safer by always failing
8956         when the full copyright format is not perfectly recognized as an
8957         unbroken whole.  Discussed at
8958         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
8959         Rewrite documentation.
8960
8961 2009-08-03  Bruno Haible  <bruno@clisp.org>
8962
8963         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
8964
8965 2009-08-02  Bruno Haible  <bruno@clisp.org>
8966
8967         Tests for module 'uname'.
8968         * modules/uname-tests: New file.
8969         * tests/test-uname.c: New file.
8970
8971         New module 'uname'.
8972         * lib/uname.c: New file.
8973         * m4/uname.m4: New file.
8974         * modules/uname: New file.
8975         * doc/posix-functions/uname.texi: Mention the new module.
8976
8977 2009-08-02  Bruno Haible  <bruno@clisp.org>
8978
8979         Tests for module 'sys_utsname'.
8980         * modules/sys_utsname-tests: New file.
8981         * tests/test-sys_utsname.c: New file.
8982
8983         New module 'sys_utsname'.
8984         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
8985         * m4/sys_utsname_h.m4: New file.
8986         * modules/sys_utsname: New file.
8987         * doc/posix-headers/sys_utsname.texi: Mention the new module.
8988
8989 2009-08-02  Bruno Haible  <bruno@clisp.org>
8990
8991         Implicitly initialize the sockets library.
8992         * lib/gethostname.c: Include sockets.h.
8993         (rpl_gethostname): Invoke gl_sockets_startup.
8994         * lib/socket.c: Include sockets.h.
8995         (rpl_socket): Invoke gl_sockets_startup.
8996         * modules/gethostname (Depends-on): Add sockets.
8997         * modules/socket (Depends-on): Likewise.
8998         * tests/test-poll.c: Don't include sockets.h.
8999         (main): Don't invoke gl_sockets_startup.
9000         * tests/test-select.c: Don't include sockets.h.
9001         (main): Don't invoke gl_sockets_startup.
9002
9003 2009-08-02  Bruno Haible  <bruno@clisp.org>
9004
9005         Allow multiple calls to gl_sockets_startup.
9006         * lib/sockets.c (initialized_sockets_version): New variable.
9007         (gl_sockets_startup): Do nothing if already called for this or a higher
9008         version.
9009         (gl_sockets_cleanup): Reset initialized_sockets_version.
9010
9011 2009-08-03  Simon Josefsson  <simon@josefsson.org>
9012
9013         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
9014         different project/version.
9015
9016 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
9017             Bruno Haible  <bruno@clisp.org>
9018
9019         Tests for module 'pipe-filter-gi'.
9020         * modules/pipe-filter-gi-tests: New file.
9021         * tests/test-pipe-filter-gi1.sh: New file.
9022         * tests/test-pipe-filter-gi1.c: New file.
9023         * tests/test-pipe-filter-gi2.sh: New file.
9024         * tests/test-pipe-filter-gi2-main.c: New file.
9025         * tests/test-pipe-filter-gi2-child.c: New file.
9026
9027         New module 'pipe-filter-gi'.
9028         * lib/pipe-filter-gi.c: New file.
9029         * modules/pipe-filter-gi: New file.
9030
9031 2009-08-02  Bruno Haible  <bruno@clisp.org>
9032             Paolo Bonzini  <bonzini@gnu.org>
9033
9034         Tests for module 'pipe-filter-ii'.
9035         * modules/pipe-filter-ii-tests: New file.
9036         * tests/test-pipe-filter-ii1.sh: New file.
9037         * tests/test-pipe-filter-ii1.c: New file.
9038         * tests/test-pipe-filter-ii2.sh: New file.
9039         * tests/test-pipe-filter-ii2-main.c: New file.
9040         * tests/test-pipe-filter-ii2-child.c: New file.
9041
9042         New module 'pipe-filter-ii'.
9043         * lib/pipe-filter.h: New file.
9044         * lib/pipe-filter-ii.c: New file.
9045         * lib/pipe-filter-aux.h: New file.
9046         * modules/pipe-filter-ii: New file.
9047
9048 2009-08-02  Simon Josefsson  <simon@josefsson.org>
9049
9050         * lib/gc-libgcrypt.c: Change copyright to FSF.
9051         * lib/gc-gnulib.c: Likewise.
9052
9053 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
9054
9055         * lib/gethostname.c: Include limits.h.
9056
9057 2009-08-02  Simon Josefsson  <simon@josefsson.org>
9058             Bruno Haible  <bruno@clisp.org>
9059
9060         Ensure HOST_NAME_MAX as part of the gethostname module.
9061         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
9062         define also HOST_NAME_MAX.
9063         * tests/test-gethostname.c: Include <limits.h>.
9064         (main): Check also HOST_NAME_MAX.
9065         * doc/posix-headers/limits.texi: Document the mingw problem.
9066
9067 2009-08-02  Bruno Haible  <bruno@clisp.org>
9068
9069         * lib/gethostname.c (gethostname): Fix handling of large len argument.
9070         Add comments.
9071
9072 2009-03-31  Simon Josefsson  <simon@josefsson.org>
9073
9074         * lib/gethostname.c: Add Windows wrapper.
9075         * m4/gethostname.m4: Look for gethostname in -lws2_32.
9076         * modules/gethostname: Depend on sys_socket & errno, for also
9077         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
9078         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
9079
9080 2009-07-31  Jim Meyering  <meyering@redhat.com>
9081
9082         getloadavg: fix symbol name in comment
9083         * lib/getloadavg.c: Correct a typo I introduced when adding
9084         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
9085         Matt Kraai spotted the problem.
9086
9087 2009-07-29  Matt Kraai  <mkraai@beckman.com>
9088
9089         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
9090         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
9091         code also if ! defined N_NAME_POINTER.
9092         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
9093         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
9094         but the n_name member is a 12-byte array.
9095
9096 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
9097
9098         update-copyright: generalize comment handling
9099         * build-aux/update-copyright: Handle copyright statements
9100         within more comment styles.
9101         Document usage.
9102         Report any file with an external copyright holder or parse failure.
9103
9104 2009-07-29  Jim Meyering  <meyering@redhat.com>
9105
9106         mktime: correct setting of REPLACE_MKTIME
9107         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
9108
9109         update-copyright: new module
9110         * modules/update-copyright: New file.
9111         * build-aux/update-copyright: New file.
9112         * MODULES.html.sh (maint+release support): Add update-copyright.
9113
9114 2009-07-27  Bruno Haible  <bruno@clisp.org>
9115
9116         Fix compilation error when <ctime> is used and mktime is replaced.
9117         * lib/time.in.h (mktime): New declaration.
9118         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
9119         REPLACE_MKTIME instead of defining mktime in config.h.
9120         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
9121         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
9122         Reported by Ross McFarland <rwmcfa1@neces.com>.
9123
9124 2009-07-27  Bruno Haible  <bruno@clisp.org>
9125
9126         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
9127         Reported by Matt Kraai <mkraai@beckman.com>.
9128
9129 2009-07-25  Jim Meyering  <meyering@redhat.com>
9130
9131         maint.mk: avoid warnings about missing files
9132         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
9133         diagnostic when .prev-version does not exist.
9134         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
9135         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
9136         nonexistent cfg.mk.
9137         Suggestions from Simon Josefsson.
9138
9139 2009-07-25  Bruno Haible  <bruno@clisp.org>
9140
9141         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
9142         defined as macros. Needed on QNX 6.4.1.
9143         Reported by Matt Kraai <mkraai@beckman.com>.
9144
9145 2009-07-23  Jim Meyering  <meyering@redhat.com>
9146
9147         maint.mk: invoke "make dist" with a working value of XZ_OPT
9148         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
9149
9150 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
9151
9152         Make fseeko.c compile on QNX.
9153         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
9154
9155 2009-07-22  Peter Simons  <simons@cryp.to>
9156
9157         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
9158         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
9159         * lib/md4.h: Likewise.
9160         * lib/md5.h: Likewise.
9161         * lib/sha1.h: Likewise.
9162         * lib/sha256.h: Likewise.
9163         * lib/sha512.h: Likewise.
9164
9165         tests-sha1: don't assign literal string to 'char *' variable
9166         * tests/test-sha1.c (main): Declare locals with "const" to match
9167         attributes of the right hand side.
9168
9169 2009-07-21  Eric Blake  <ebb9@byu.net>
9170
9171         dup2: fix more mingw problems
9172         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
9173         fd to itself.
9174         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9175         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
9176         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
9177         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
9178         care of mingw bugs.
9179
9180 2009-07-21  Jim Meyering  <meyering@redhat.com>
9181
9182         vc-list-files: avoid failure when /bin/sh is dash
9183         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
9184         On some Debian based systems, /bin/sh is a symlink to dash, and running
9185         this command would omit the "/" following each 'tests' prefix:
9186           dash -x build-aux/vc-list-files -C . tests
9187         That is because bash and dash work differently:
9188           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
9189           bash ok
9190           dash odd
9191
9192 2009-07-21  Eric Blake  <ebb9@byu.net>
9193
9194         dup2-tests: test previous patch
9195         * modules/dup2-tests: New file.
9196         * tests/test-dup2.c: Likewise.
9197         * tests/test-open.c (main): Avoid unspecified behavior.
9198         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
9199         test.
9200
9201         dup2: work around mingw and cygwin 1.5 bug
9202         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
9203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9204         * modules/unistd (Makefile.am): Substitute it.
9205         * lib/unistd.in.h (dup2): Declare the replacement.
9206         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
9207         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
9208         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
9209         * modules/execute (Depends-on): Add dup2.
9210         * modules/fseterr (Depends-on): Likewise.
9211         * modules/pipe (Depends-on): Likewise.
9212         * modules/posix_spawn-internal (Depends-on): Likewise.
9213
9214 2009-07-21  Bruno Haible  <bruno@clisp.org>
9215
9216         * modules/.gitattributes: New file.
9217
9218 2009-07-20  Bruno Haible  <bruno@clisp.org>
9219
9220         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
9221         (main): Use it.
9222
9223 2009-07-20  Eric Blake  <ebb9@byu.net>
9224
9225         test-pipe: make a bit more robust.
9226         * tests/test-pipe.c (myerr): Allow error messages regardless of
9227         what we do to stderr.
9228         (test_pipe): Rearrange to avoid deadlock.
9229         (child_main): Try a larger read, to ensure we avoided deadlock.
9230         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
9231         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
9232         if misused.
9233
9234 2009-07-19  Jim Meyering  <meyering@redhat.com>
9235
9236         fts: avoid false-positive cycle-detection
9237         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
9238         for each new command line argument.
9239
9240 2009-07-19  Bruno Haible  <bruno@clisp.org>
9241
9242         Fix build error on mingw with the modules sys_select and unistd.
9243         * modules/acl-tests (Depends-on): Add close.
9244         * modules/binary-io-tests (Depends-on): Likewise.
9245         * modules/closein-tests (Depends-on): Likewise.
9246         * modules/flock-tests (Depends-on): Likewise.
9247         * modules/fsync-tests (Depends-on): Likewise.
9248         * modules/lseek-tests (Depends-on): Likewise.
9249         * modules/pipe-tests (Depends-on): Likewise.
9250         * modules/posix_spawn-tests (Depends-on): Likewise.
9251         * modules/posix_spawnp-tests (Depends-on): Likewise.
9252         * modules/stat-time-tests (Depends-on): Likewise.
9253         * modules/yesno-tests (Depends-on): Likewise.
9254
9255 2009-07-19  Bruno Haible  <bruno@clisp.org>
9256
9257         Unify conditionals.
9258         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
9259         macros, not at the compiler macros.
9260         * lib/pipe.c: Likewise.
9261         * lib/execute.c: Likewise.
9262         * lib/spawni.c: Likewise.
9263
9264 2009-07-19  Bruno Haible  <bruno@clisp.org>
9265
9266         Fix handling of closed stdin/stdout/stderr on mingw.
9267         * lib/w32spawn.h: Include unistd.h.
9268         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
9269         file descriptor with O_NOINHERIT flag.
9270         (fd_safer_noinherit): New function, based on fd-safer.c.
9271         (dup_safer_noinherit): New function, based on dup-safer.c.
9272         (undup_safer_noinherit): New function.
9273         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
9274         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
9275         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
9276         instead of fd_safer.
9277         * tests/test-pipe.c: Include <windows.h>.
9278         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
9279
9280         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
9281         from main.
9282         (test_pipe): Pass an extra argument for disambiguation.
9283         (main): Invoke parent_main or child_main.
9284
9285         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
9286         consistently.
9287
9288 2009-07-18  Eric Blake  <ebb9@byu.net>
9289
9290         test-pipe: fix mingw build
9291         * tests/test-pipe.c (main): Avoid fcntl on mingw.
9292
9293 2009-07-18  Bruno Haible  <bruno@clisp.org>
9294
9295         * modules/pipe-tests (Makefile.am): Fix typo.
9296
9297 2009-07-18  Eric Blake  <ebb9@byu.net>
9298
9299         error: fix mingw build
9300         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
9301         Reported by Bruno Haible.
9302
9303         error: avoid undefined use of stdout
9304         * lib/error.c (error, error_at_line): Check that fd 1 is open
9305         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
9306         is handling faults and the close_stdout module wants to report the
9307         detection of closed stdout as an error.
9308
9309 2009-07-17  Eric Blake  <ebb9@byu.net>
9310
9311         pipe: be robust in face of closed fds
9312         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
9313         should cause child to misbehave.
9314         * modules/pipe-tests: New module.
9315         * tests/test-pipe.c: New file.
9316         * tests/test-pipe.sh: New file.
9317         Reported by Akim Demaille.
9318
9319 2009-07-14  Bruno Haible  <bruno@clisp.org>
9320
9321         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
9322         Reported by anonymous kc.
9323
9324 2009-07-07  Jim Meyering  <meyering@redhat.com>
9325
9326         maint.mk: don't look for translatable strings in *.m4 or *.mk
9327         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
9328         when searching for translatable strings.
9329
9330 2009-07-05  Jim Meyering  <meyering@redhat.com>
9331
9332         remove superfluous parentheses in STREQ definition
9333         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
9334         * lib/getugroups.c (STREQ): Likewise.
9335         * lib/fnmatch.c (STREQ): Likewise.
9336         Spotted by Bruno Haible.
9337
9338 2009-07-04  Jim Meyering  <meyering@redhat.com>
9339
9340         argv-iter: new module
9341         * MODULES.html.sh: Add argv-iter.
9342         * lib/argv-iter.c, lib/argv-iter.h: New files.
9343         * modules/argv-iter: New file.
9344         * modules/argv-iter-tests: New file.
9345         * tests/test-argv-iter.c: Test it.
9346
9347 2009-07-04  Bruno Haible  <bruno@clisp.org>
9348
9349         Fix assertion.
9350         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
9351         contains more exact copies of a given entry than file2, leave the extra
9352         copies unpaired rather than aborting.
9353         Reported by Eric Blake.
9354
9355 2009-07-02  Bruno Haible  <bruno@clisp.org>
9356
9357         Speedup git-merge-changelog for git cherry-pick.
9358         * lib/git-merge-changelog.c (struct entries_mapping): New type.
9359         (entries_mapping_get): New function, extracted from compute_mapping.
9360         (entries_mapping_reverse_get): New function.
9361         (compute_mapping): Add a 'full' argument. Return the result in a
9362         'struct entries_mapping'.
9363         (main): Update. Access the mappings through entries_mapping_get.
9364         Reported by Eric Blake.
9365
9366 2009-07-02  Bruno Haible  <bruno@clisp.org>
9367
9368         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
9369         best_i.
9370
9371 2009-07-02  Bruno Haible  <bruno@clisp.org>
9372
9373         Speed up approximate search for matching ChangeLog entries.
9374         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
9375         argument. Call fstrcmp_bounded instead of fstrcmp.
9376         (compute_mapping, try_split_merged_entry, main): Update callers.
9377
9378 2009-07-02  Bruno Haible  <bruno@clisp.org>
9379
9380         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
9381
9382 2009-06-30  Bruno Haible  <bruno@clisp.org>
9383
9384         Reduce the number of uc_is_cased calls.
9385         * lib/unicase.h (casing_suffix_context_t): Add
9386         'first_char_except_ignorable' field.
9387         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
9388         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
9389         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
9390         Update initializer.
9391         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
9392         case-ignorable characters.
9393         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
9394         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
9395         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
9396         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
9397         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
9398
9399 2009-06-30  Bruno Haible  <bruno@clisp.org>
9400
9401         Tests for module 'unicase/ignorable'.
9402         * modules/unicase/ignorable-tests: New file.
9403         * tests/unicase/test-ignorable.c: New file, generated by
9404         gen-uni-tables.
9405
9406         Tests for module 'unicase/cased'.
9407         * modules/unicase/cased-tests: New file.
9408         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
9409         * tests/unicase/test-predicate-part1.h: New file, derived from
9410         tests/unictype/test-predicate-part1.h.
9411         * tests/unicase/test-predicate-part2.h: New file, same as
9412         tests/unictype/test-predicate-part2.h.
9413
9414         Fix evaluation of "Before C" condition of FINAL_SIGMA.
9415         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
9416         (output_casing_properties): New function.
9417         (main): Call it.
9418         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
9419         * lib/unicase/cased.c: Include unictype/bitmap.h.
9420         (uc_is_cased): Define through a bitmap lookup.
9421         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
9422         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
9423         (uc_is_case_ignorable): Define through a bitmap lookup.
9424         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
9425         lib/unictype/bitmap.h.
9426         (Depends-on): Add inline. Clean up.
9427         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
9428         lib/unictype/bitmap.h.
9429         (Depends-on): Add inline. Clean up.
9430         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
9431         recognition.
9432         * tests/unicase/test-u16-tolower.c (main): Likewise.
9433         * tests/unicase/test-u32-tolower.c (main): Likewise.
9434
9435 2009-06-30  Bruno Haible  <bruno@clisp.org>
9436
9437         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
9438         * lib/unicase/u16-casemap.c: Likewise.
9439         * lib/unicase/u32-casemap.c: Likewise.
9440
9441 2009-06-29  Bruno Haible  <bruno@clisp.org>
9442
9443         Define u32_casefold as a wrapper around u32_ct_casefold.
9444         * lib/unicase/u32-casefold.c: Update.
9445         * modules/unicase/u32-casefold (Depends-on): Add
9446         unicase/u32-ct-casefold, unicase/empty-prefix-context,
9447         unicase/empty-suffix-context. Clean up.
9448
9449         Define u16_casefold as a wrapper around u16_ct_casefold.
9450         * lib/unicase/u16-casefold.c: Update.
9451         * modules/unicase/u16-casefold (Depends-on): Add
9452         unicase/u16-ct-casefold, unicase/empty-prefix-context,
9453         unicase/empty-suffix-context. Clean up.
9454
9455         Define u8_casefold as a wrapper around u8_ct_casefold.
9456         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
9457         * lib/unicase/u8-casefold.c: Update.
9458         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
9459         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9460
9461         Define u32_totitle as a wrapper around u32_ct_totitle.
9462         * lib/unicase/u32-totitle.c: Update.
9463         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
9464         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9465
9466         Define u16_totitle as a wrapper around u16_ct_totitle.
9467         * lib/unicase/u16-totitle.c: Update.
9468         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
9469         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9470
9471         Define u8_totitle as a wrapper around u8_ct_totitle.
9472         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
9473         functions.
9474         (FUNC): Delegate to U_CT_TOTITLE.
9475         * lib/unicase/u8-totitle.c: Update.
9476         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
9477         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9478
9479         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
9480         invocation.
9481         * modules/unicase/u32-tolower (Depends-on): Add
9482         unicase/empty-prefix-context, unicase/empty-suffix-context.
9483
9484         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
9485         invocation.
9486         * modules/unicase/u16-tolower (Depends-on): Add
9487         unicase/empty-prefix-context, unicase/empty-suffix-context.
9488
9489         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
9490         * modules/unicase/u8-tolower (Depends-on): Add
9491         unicase/empty-prefix-context, unicase/empty-suffix-context.
9492
9493         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
9494         invocation.
9495         * modules/unicase/u32-toupper (Depends-on): Add
9496         unicase/empty-prefix-context, unicase/empty-suffix-context.
9497
9498         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
9499         invocation.
9500         * modules/unicase/u16-toupper (Depends-on): Add
9501         unicase/empty-prefix-context, unicase/empty-suffix-context.
9502
9503         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
9504         * modules/unicase/u8-toupper (Depends-on): Add
9505         unicase/empty-prefix-context, unicase/empty-suffix-context.
9506
9507         New module 'unicase/u32-ct-casefold'.
9508         * lib/unicase/u32-ct-casefold.c: New file.
9509         * modules/unicase/u32-ct-casefold: New file.
9510
9511         New module 'unicase/u16-ct-casefold'.
9512         * lib/unicase/u16-ct-casefold.c: New file.
9513         * modules/unicase/u16-ct-casefold: New file.
9514
9515         New module 'unicase/u8-ct-casefold'.
9516         * lib/unicase/u8-ct-casefold.c: New file.
9517         * lib/unicase/u-ct-casefold.h: New file, derived from
9518         lib/unicase/u-casefold.h.
9519         * modules/unicase/u8-ct-casefold: New file.
9520
9521         New module 'unicase/u32-ct-totitle'.
9522         * lib/unicase/u32-ct-totitle.c: New file.
9523         * modules/unicase/u32-ct-totitle: New file.
9524
9525         New module 'unicase/u16-ct-totitle'.
9526         * lib/unicase/u16-ct-totitle.c: New file.
9527         * modules/unicase/u16-ct-totitle: New file.
9528
9529         New module 'unicase/u8-ct-totitle'.
9530         * lib/unicase/u8-ct-totitle.c: New file.
9531         * lib/unicase/u-ct-totitle.h: New file, derived from
9532         lib/unicase/u-totitle.h.
9533         * modules/unicase/u8-ct-totitle: New file.
9534
9535         New module 'unicase/u32-ct-tolower'.
9536         * lib/unicase/u32-ct-tolower.c: New file.
9537         * modules/unicase/u32-ct-tolower: New file.
9538
9539         New module 'unicase/u16-ct-tolower'.
9540         * lib/unicase/u16-ct-tolower.c: New file.
9541         * modules/unicase/u16-ct-tolower: New file.
9542
9543         New module 'unicase/u8-ct-tolower'.
9544         * lib/unicase/u8-ct-tolower.c: New file.
9545         * modules/unicase/u8-ct-tolower: New file.
9546
9547         New module 'unicase/u32-ct-toupper'.
9548         * lib/unicase/u32-ct-toupper.c: New file.
9549         * modules/unicase/u32-ct-toupper: New file.
9550
9551         New module 'unicase/u16-ct-toupper'.
9552         * lib/unicase/u16-ct-toupper.c: New file.
9553         * modules/unicase/u16-ct-toupper: New file.
9554
9555         New module 'unicase/u8-ct-toupper'.
9556         * lib/unicase/u8-ct-toupper.c: New file.
9557         * modules/unicase/u8-ct-toupper: New file.
9558
9559         Add context arguments to u*_casemap functions.
9560         * lib/unicase/unicasemap.h: Include unicase.h.
9561         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
9562         suffix_context arguments.
9563         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
9564         functions.
9565         (FUNC): Add prefix_context and suffix_context arguments. Use
9566         uc_is_cased and uc_is_case_ignorable.
9567         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
9568         * lib/unicase/u16-casemap.c: Likewise.
9569         * lib/unicase/u32-casemap.c: Likewise.
9570         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
9571         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9572         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
9573         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9574         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
9575         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9576
9577         New module 'unicase/u32-suffix-context'.
9578         * lib/unicase/u32-suffix-context.c: New file.
9579         * modules/unicase/u32-suffix-context: New file.
9580
9581         New module 'unicase/u16-suffix-context'.
9582         * lib/unicase/u16-suffix-context.c: New file.
9583         * modules/unicase/u16-suffix-context: New file.
9584
9585         New module 'unicase/u8-suffix-context'.
9586         * lib/unicase/u8-suffix-context.c: New file.
9587         * lib/unicase/u-suffix-context.h: New file.
9588         * modules/unicase/u8-suffix-context: New file.
9589
9590         New module 'unicase/empty-suffix-context'.
9591         * lib/unicase/empty-suffix-context.c: New file.
9592         * modules/unicase/empty-suffix-context: New file.
9593
9594         New module 'unicase/u32-prefix-context'.
9595         * lib/unicase/u32-prefix-context.c: New file.
9596         * modules/unicase/u32-prefix-context: New file.
9597
9598         New module 'unicase/u16-prefix-context'.
9599         * lib/unicase/u16-prefix-context.c: New file.
9600         * modules/unicase/u16-prefix-context: New file.
9601
9602         New module 'unicase/u8-prefix-context'.
9603         * lib/unicase/u8-prefix-context.c: New file.
9604         * lib/unicase/u-prefix-context.h: New file.
9605         * lib/unicase/context.h: New file.
9606         * modules/unicase/u8-prefix-context: New file.
9607
9608         New module 'unicase/empty-prefix-context'.
9609         * lib/unicase/empty-prefix-context.c: New file.
9610         * modules/unicase/empty-prefix-context: New file.
9611
9612         New module 'unicase/ignorable'.
9613         * lib/unicase/ignorable.c: New file.
9614         * modules/unicase/ignorable: New file.
9615
9616         New module 'unicase/cased'.
9617         * lib/unicase/caseprop.h: New file.
9618         * lib/unicase/cased.c: New file.
9619         * modules/unicase/cased: New file.
9620
9621         New functions for case mapping of substrings.
9622         * lib/unicase.h (casing_prefix_context_t): New type.
9623         (unicase_empty_prefix_context): New variable.
9624         (u8_casing_prefix_context, u16_casing_prefix_context,
9625         u32_casing_prefix_context, u8_casing_prefixes_context,
9626         u16_casing_prefixes_context, u32_casing_prefixes_context): New
9627         declarations.
9628         (casing_suffix_context_t): New type.
9629         (unicase_empty_suffix_context): New variable.
9630         (u8_casing_suffix_context, u16_casing_suffix_context,
9631         u32_casing_suffix_context, u8_casing_suffixes_context,
9632         u16_casing_suffixes_context, u32_casing_suffixes_context,
9633         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
9634         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
9635         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
9636         declarations.
9637
9638 2009-06-28  Jim Meyering  <meyering@redhat.com>
9639
9640         boostrap: indent only with spaces
9641         * build-aux/bootstrap: Indent only with spaces, never TABs.
9642
9643         bootstrap: split long lines
9644         * build-aux/bootstrap: Keep line length < 80.
9645
9646         bootstrap: sync from coreutils
9647         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
9648         just as autoreconf does.  Verify a list of prerequisite
9649         package-name,version-number pairs if defined in bootstrap.conf.
9650         Refer to README-prereq, if prerequisites are not satisfied.
9651
9652 2009-06-27  Eric Blake  <ebb9@byu.net>
9653
9654         tests: add test for bogus NULL definition
9655         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
9656         * tests/test-stdlib.c: Likewise.
9657         * tests/test-string.c: Likewise.
9658         * tests/test-locale.c: Likewise.
9659         * tests/test-unistd.c: Likewise.
9660         * modules/stdio-tests (Depends-on): Add verify.
9661         * modules/stdlib-tests (Depends-on): Likewise.
9662         * modules/string-tests (Depends-on): Likewise.
9663         * modules/locale-tests (Depends-on): Likewise.
9664         * modules/unistd-tests (Depends-on): Likewise.
9665
9666 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
9667
9668         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
9669         self-explaining comment.
9670         * m4/selinux-selinux-h: Update serial.
9671         (gl_LIBSELINUX): New macro, adding a warning for missing development
9672         packages to code extracted from...
9673         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
9674         Add warning for missing development packages here, too.
9675
9676 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
9677
9678         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
9679
9680 2009-06-25  Eric Blake  <ebb9@byu.net>
9681
9682         version-etc: fix regression
9683         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
9684         gcc.
9685         (version_etc): Use it, to catch bugs with trailing NULL.
9686         * lib/version-etc.c (version_etc_arn): Delete unused argument.
9687         (version_etc_va): Fix logic bug.
9688         * modules/version-etc-tests: Add test.
9689         * tests/test-version-etc.c: New file.
9690         * tests/test-version-etc.sh: Likewise.
9691
9692 2009-06-25  Sam Steingold  <sds@gnu.org>
9693
9694         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
9695         mbtowc declaration.
9696
9697 2009-06-25  Eric Blake  <ebb9@byu.net>
9698
9699         fpurge: migrate into <stdio.h>
9700         * lib/fpurge.h: Delete...
9701         * lib/stdio.in.h (fpurge): ...and declare here, instead.
9702         * lib/fpurge.c (fpurge): Change declaring header.
9703         * modules/fpurge (Files): Drop deleted file.
9704         (Depends-on): Add stdio.
9705         (configure.ac): Set witness.
9706         * modules/stdio (Makefile.am): Support fpurge macros.
9707         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9708         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
9709         * lib/fflush.c: Update client.
9710         * tests/test-fpurge.c: Likewise.
9711         * NEWS: Mention the change.
9712
9713 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9714
9715         * lib/argp-version-etc.c (program_authors): Add const
9716         qualifier.
9717         * lib/version-etc.c: Fix typos in the comments.
9718         * modules/argp-version-etc: Depends on version-etc.
9719
9720 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9721
9722         argp-version-etc: new module.
9723
9724         * lib/argp-version-etc.c: New file.
9725         * lib/argp-version-etc.h: New file.
9726         * modules/argp-version-etc: New file.
9727         * modules/argp-version-etc-tests: New file.
9728         * tests/test-argp-version-etc.c: New test.
9729         * tests/test-argp-version-etc-1.sh: New test.
9730
9731 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9732
9733         Provide additional interfaces and documentation for version-etc
9734         module.
9735
9736         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
9737         interfaces.
9738         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
9739         prototypes.
9740
9741 2009-06-24  Bruno Haible  <bruno@clisp.org>
9742
9743         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
9744         HAVE_LIB${NAME} macro.
9745         Reported by Sam Steingold <sds@gnu.org>.
9746
9747 2009-06-23  Simon Josefsson  <simon@josefsson.org>
9748
9749         * modules/hash-tests (test_hash_LDADD): Link to libintl when
9750         needed.
9751
9752 2009-06-21  Bruno Haible  <bruno@clisp.org>
9753
9754         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
9755         work.
9756         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
9757         together with LIB${NAME}, LTLIB${NAME}.
9758         Reported by Sam Steingold <sds@gnu.org>.
9759
9760 2009-06-20  Jim Meyering  <meyering@redhat.com>
9761
9762         tests: make sc_require_test_exit_idiom more generic
9763         * top/maint.mk (Exit_witness_file): New overridable variable.
9764         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
9765         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
9766
9767 2009-06-19  Jim Meyering  <meyering@redhat.com>
9768
9769         hash: reverse order of src/dst parameters in an internal interface
9770         * lib/hash.c (transfer_entries): Reverse order of parameters to
9771         put DST before SRC.  Adjust callers.
9772
9773         tests: test-hash: avoid wholesale duplication
9774         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
9775         Instead, use a loop and add a single conditional.
9776
9777         tests: test-hash: allow seed selection via a command line argument
9778         * tests/test-hash.c (get_seed): New function.
9779         (main): Use it.
9780
9781 2009-06-19  Eric Blake  <ebb9@byu.net>
9782
9783         hash: avoid memory leak on allocation failure
9784         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
9785         failure.  Factor repeated algorithm...
9786         (transfer_entries): ...into new helper routine.
9787         (hash_delete): React to hash_rehash return value.
9788
9789         hash: reduce memory pressure in hash_rehash no-op case
9790         * lib/hash.c (next_prime): Avoid overflow.
9791         (hash_initialize): Factor bucket size computation...
9792         (compute_bucket_size): ...into new helper function.
9793         (hash_rehash): Use new function and open coding to reduce memory
9794         pressure, and avoid a memory leak in USE_OBSTACK code.
9795         Reported by Jim Meyering.
9796
9797 2009-06-18  Eric Blake  <ebb9@byu.net>
9798
9799         hash: make rotation more obvious
9800         * modules/hash (Depends-on): Add bitrotate and stdint.
9801         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
9802         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
9803         (SIZE_MAX): Rely on headers for definition.
9804         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
9805         (raw_hasher): Use rotr_sz.
9806         Suggested by Jim Meyering.
9807
9808         hash: fix memory leak in last patch
9809         * lib/hash.c (hash_rehash): Avoid memory leak.
9810
9811         hash: avoid no-op rehashing
9812         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
9813
9814         hash: provide default callback functions
9815         * lib/hash.c (raw_hasher, raw_comparator): New functions.
9816         (hash_initialize): Use them as defaults.
9817         * tests/test-hash.c (main): Test this.
9818
9819         hash: minor optimization
9820         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
9821         when possible.
9822         (hash_initialize): Document this promise.
9823         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
9824         * tests/test-hash.c (hash_compare_strings): Test this.
9825
9826 2009-06-18  Bruno Haible  <bruno@clisp.org>
9827
9828         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
9829         going to be replaced anyway.
9830
9831 2009-06-18  Bruno Haible  <bruno@clisp.org>
9832
9833         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
9834         in one place.
9835         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
9836         be replaced anyway.
9837
9838 2009-06-18  Eric Blake  <ebb9@byu.net>
9839
9840         hash: check for resize before insertion
9841         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
9842         threshold before insertion, so that a pathological hash_rehash
9843         that fills every bucket can still trigger another rehash.
9844
9845 2009-06-18  Jim Meyering  <meyering@redhat.com>
9846
9847         hash-tests: add a loop around the small tests
9848         * tests/test-hash.c (main): Repeat small tests with selected
9849         small initial table sizes.
9850
9851 2009-06-17  Eric Blake  <ebb9@byu.net>
9852
9853         hash: minor cleanups
9854         * lib/hash.h (hash_entry): Make opaque, by moving...
9855         * lib/hash.c (hash_entry): ...here.
9856         (hash_insert): Clarify restrictions on what can be inserted.
9857         (hash_get_next): Clarify when it is safe to remove an element
9858         during traversal.
9859         (check_tuning): Skip verification when tuning is known safe.
9860         (hash_initialize): Clarify restrictions on tuning.
9861
9862 2009-06-17  Jim Meyering  <jim@meyering.net>
9863         and Eric Blake  <ebb9@byu.net>
9864
9865         hash-tests: new module
9866         * modules/hash-tests: New file.
9867         * tests/test-hash.c: New file.
9868
9869 2009-06-17  Eric Blake  <ebb9@byu.net>
9870
9871         strstr-simple: document new module
9872         * MODULES.html.sh: Document new module.
9873
9874         strstr, strcasestr: replace on platforms with broken memchr
9875         * modules/strstr: Split into...
9876         * modules/strstr-simple: ...new module that does not care about
9877         performance, but does care about glibc bug.
9878         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
9879         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
9880         if platform memchr is broken, per Debian bug 521737.
9881         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
9882         memchr.
9883         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
9884         * doc/posix-functions/strstr.texi (strstr): Document the fix.
9885         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9886         * modules/mountlist (Depends-on): Add strstr-simple.
9887         * modules/gen-uni-tables (Depends-on): Likewise.
9888         * modules/argz (Depends-on): Add strstr.
9889
9890 2009-06-17  Bruno Haible  <bruno@clisp.org>
9891
9892         * modules/posix_spawn-internal (Depends-on): Add errno.
9893
9894 2009-06-17  Bruno Haible  <bruno@clisp.org>
9895
9896         Define missing ESTALE on Interix 3.5.
9897         * lib/errno.in.h (ESTALE): Assign a value if missing.
9898         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
9899         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
9900         missing.
9901         * doc/posix-headers/errno.texi: Mention the Interix bug.
9902         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
9903
9904 2009-06-15  Eric Blake  <ebb9@byu.net>
9905
9906         memchr, memchr2: add valgrind exception
9907         * lib/memchr.valgrind: New file.
9908         * lib/memchr2.valgrind: New file.
9909         * modules/memchr (Files): Distribute valgrind file.
9910         * modules/memchr2 (Files): Likewise.
9911
9912         docs: memchr is no longer obsolete
9913         * MODULES.html.sh: Move memchr from obsolete to string.h section.
9914         * lib/string.in.h (memchr): Simplify logic.
9915
9916 2009-06-14  Jim Meyering  <meyering@redhat.com>
9917
9918         link-follow: fix the "checking..." message to not mention trailing slash
9919         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
9920         never considered trailing slashes.
9921
9922 2009-06-14  Bruno Haible  <bruno@clisp.org>
9923
9924         * m4/memchr.m4: Mention also the bug on IA-64.
9925         * doc/posix-functions/memchr.texi: Likewise.
9926
9927 2009-06-12  Eric Blake  <ebb9@byu.net>
9928
9929         memchr: detect broken x86_64 and alpha implementations
9930         * modules/memchr-tests (Depends-on): Move mmap detection...
9931         * modules/memchr (Depends-on): ...here.
9932         (configure.ac): Set indicator.
9933         * lib/string.in.h (memchr): Declare replacement.
9934         * modules/string (Makefile.am): Trigger replacement.
9935         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
9936         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
9937         bugs.
9938         * doc/posix-functions/memchr.texi (memchr): Document the bug.
9939         * modules/getpagesize (License): Relax license.
9940
9941 2009-06-11  Bruno Haible  <bruno@clisp.org>
9942
9943         * lib/idpriv.h: Add more references.
9944
9945 2009-06-08  Bruno Haible  <bruno@clisp.org>
9946
9947         Tests for module 'idpriv-droptemp'.
9948         * modules/idpriv-droptemp-tests: New file.
9949         * tests/test-idpriv-droptemp.sh: New file.
9950         * tests/test-idpriv-droptemp.su.sh: New file.
9951         * tests/test-idpriv-droptemp.c: New file.
9952
9953         New module 'idpriv-droptemp'.
9954         * lib/idpriv-droptemp.c: New file.
9955         * modules/idpriv-droptemp: New file.
9956
9957 2009-06-08  Bruno Haible  <bruno@clisp.org>
9958
9959         Tests for module 'idpriv-drop'.
9960         * modules/idpriv-drop-tests: New file.
9961         * tests/test-idpriv-drop.sh: New file.
9962         * tests/test-idpriv-drop.su.sh: New file.
9963         * tests/test-idpriv-drop.c: New file.
9964
9965         New module 'idpriv-drop'.
9966         * lib/idpriv.h: New file.
9967         * lib-idpriv-drop.c: New file.
9968         * m4/idpriv.m4: New file.
9969         * modules/idpriv-drop: New file.
9970
9971 2009-06-08  Bruno Haible  <bruno@clisp.org>
9972
9973         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
9974         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9975         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9976         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9977         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9978         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9979         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9980
9981 2009-06-08  Eric Blake  <ebb9@byu.net>
9982
9983         test-strstr: use memory fence, when possible
9984         * tests/test-strstr.c (main): Use memory fence, in order to be
9985         more likely to trigger Debian bug 521737.
9986         * modules/strstr-tests (Files): Pull in additional files.
9987
9988         memchr: no longer obsolete, for wider field testing
9989         * modules/memchr (Status, Notice): Delete, this module is no
9990         longer obsolete.
9991         * modules/vasnprintf (Depends-on): Add memchr.
9992
9993 2009-06-07  Jim Meyering  <meyering@redhat.com>
9994
9995         hash: declare some functions with the warn_unused_result attribute
9996         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
9997
9998 2009-06-07  Bruno Haible  <bruno@clisp.org>
9999
10000         * tests/test-alignof.c: Don't test int64_t if it does not exist.
10001         Reported by Eric Blake.
10002
10003 2009-06-06  Eric Blake  <ebb9@byu.net>
10004
10005         test-alignof: fix typo with long double
10006         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
10007         compiler error.
10008
10009 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
10010
10011         Escape non-texinfo { and }s.
10012         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
10013         markup error.
10014
10015 2009-06-04  Jim Meyering  <meyering@redhat.com>
10016
10017         gitlog-to-changelog: don't infloop on an empty commit log
10018         * build-aux/gitlog-to-changelog: Warn about an empty log message.
10019         Reported by Boris Petersen <transacid@centerim.org>.
10020
10021 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
10022
10023         version-etc: extend for packagers
10024         Add three new configure options, intended for packagers:
10025           --with-packager="packager name"
10026           --with-packager-version="packager-specific version"
10027           --with-packager-bug-reports="packager bug reporting"
10028         An example with coreutils:
10029           $ ./configure \
10030             --with-packager=Gentoo \
10031             --with-packager-bug-report=http://bugs.gentoo.org/ \
10032             --with-packager-version="patchset 1.6"
10033           $ ./src/ls --version | head -n2
10034           ls (GNU coreutils) 7.1-dirty
10035           Packaged by Gentoo (patchset 1.6)
10036         Note that the bug reporting info via --help doesn't show up because
10037         coreutils uses its own custom emit_bug_reporting_address() implementation
10038         in src/system.h.  If it didn't, it'd look like:
10039           $ ./src/ls --help | tail -n4
10040           Report bugs to <bug-coreutils@gnu.org>.
10041           Report Gentoo bugs to <http://bugs.gentoo.org/>.
10042           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
10043           General help using GNU software: <http://www.gnu.org/gethelp/>.
10044         * lib/version-etc.c: Print new information, if provided.
10045         * m4/version-etc.m4: New file.
10046         * modules/version-etc (Files): Add m4/version-etc.m4.
10047         (configure.ac): Add gl_VERSION_ETC.
10048
10049 2009-05-31  Bruno Haible  <bruno@clisp.org>
10050
10051         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
10052         and 'int64_t'.
10053         * modules/alignof-tests (Dependencies): Add stdint.
10054         Reported by Eric Blake.
10055
10056 2009-05-31  Bruno Haible  <bruno@clisp.org>
10057
10058         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
10059         restriction due to compiler bugs.
10060         Reported by Eric Blake.
10061
10062 2009-05-31  Simon Josefsson  <simon@josefsson.org>
10063             Bruno Haible  <bruno@clisp.org>
10064
10065         Fix test-alignof failure.
10066         * lib/alignof.h (alignof_slot): New macro.
10067         (alignof_type): New macro, with the same semantics as the previous
10068         'alignof'.
10069         (alignof): Alias to alignof_slot.
10070         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
10071         check that the results are usable as constant expressions.
10072
10073 2009-05-31  Bruno Haible  <bruno@clisp.org>
10074
10075         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
10076         * tests/test-memchr.c (main): Check that memchr does not read past the
10077         first occurrence of the byte.
10078         * tests/test-strstr.c (main): Update comment.
10079         Suggested by Eric Blake.
10080
10081 2009-05-30  Bruno Haible  <bruno@clisp.org>
10082
10083         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
10084         detail how to use dumpbin.
10085         Reported by David Byron <dbyron@dbyron.com>.
10086
10087 2009-06-02  Simon Josefsson  <simon@josefsson.org>
10088
10089         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
10090
10091 2009-06-02  Simon Josefsson  <simon@josefsson.org>
10092
10093         * m4/manywarnings.m4: Add GCC 4.4 warnings.
10094
10095 2009-05-28  Bruno Haible  <bruno@clisp.org>
10096
10097         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
10098         build-aux/ files.
10099
10100 2009-05-28  Simon Josefsson  <simon@josefsson.org>
10101
10102         * gnulib-tool (func_import): Transform license on build-aux/ files too.
10103
10104 2009-05-27  Simon Josefsson  <simon@josefsson.org>
10105
10106         * gnulib-tool (sed_transform_main_lib_file)
10107         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
10108         regexps.
10109
10110 2009-05-26  Simon Josefsson  <simon@josefsson.org>
10111
10112         * tests/test-strstr.c: Add another self-test.
10113         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
10114         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
10115
10116 2009-05-23  Bruno Haible  <bruno@clisp.org>
10117
10118         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
10119         change.
10120
10121 2009-05-21  Bruno Haible  <bruno@clisp.org>
10122
10123         Simplify use of mode_t varargs.
10124         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
10125         uses 'mode_t' or 'int'.
10126         * lib/openat.c (openat): Likewise.
10127         * lib/open-safer.c (open_safer): Likewise.
10128         * m4/mode_t.m4: New file.
10129         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
10130         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
10131         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
10132         * modules/open (Files): Add m4/mode_t.m4.
10133         * modules/openat (Files): Likewise.
10134         * modules/fcntl-safer (Files): Likewise.
10135         Suggested by Eric Blake.
10136
10137 2009-05-21  Pádraig Brady  <P@draigbrady.com>
10138
10139         * doc/glibc-functions/fallocate.texi: New file.
10140         * doc/gnulib.texi: Include it.
10141
10142 2009-05-21  Eric Blake  <ebb9@byu.net>
10143             Bruno Haible  <bruno@clisp.org>
10144
10145         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
10146         invocations.
10147         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
10148
10149 2009-05-21  Eric Blake  <ebb9@byu.net>
10150             Bruno Haible  <bruno@clisp.org>
10151
10152         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
10153         include_next. Fix of 2008-11-20 commit.
10154         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
10155         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
10156         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
10157         NEXT_MATH_H.
10158         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
10159         instead of NEXT_MATH_H.
10160
10161 2009-05-21  Bruno Haible  <bruno@clisp.org>
10162
10163         Avoid redefinition warnings for SIZE_MAX.
10164         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
10165         Reported by Simon Josefsson.
10166
10167 2009-05-21  Bruno Haible  <bruno@clisp.org>
10168
10169         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
10170         AC_CACHE_VAL.
10171
10172 2009-05-20  Bruno Haible  <bruno@clisp.org>
10173
10174         Make zeroptr.h work on mingw.
10175         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
10176         mprotect.
10177         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
10178         * modules/memchr2-tests (configure.ac): Likewise.
10179         * modules/memcmp-tests (configure.ac): Likewise.
10180         * modules/memmem-tests (configure.ac): Likewise.
10181         * modules/memrchr-tests (configure.ac): Likewise.
10182         Reported by Simon Josefsson.
10183
10184 2009-05-20  Simon Josefsson  <simon@josefsson.org>
10185
10186         * tests/test-glob.c: Include string.h for strcmp prototype.
10187
10188 2009-05-20  Simon Josefsson  <simon@josefsson.org>
10189
10190         * modules/getdelim (Depends-on): Add explicit stdint, although it
10191         was implicitly already pulled in via realloc-posix.
10192         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
10193
10194 2009-05-20  Simon Josefsson  <simon@josefsson.org>
10195
10196         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
10197         G. Christensen" <tgc@jupiterrise.com>.
10198         * m4/sys_socket_h.m4: Check for sa_family_t.
10199         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
10200         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
10201         * tests/test-sys_socket.c: Check that sa_family_t works.
10202
10203 2009-05-18  Eric Blake  <ebb9@byu.net>
10204
10205         maint.mk: allow gnulib_dir in VPATH build
10206         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
10207
10208 2009-05-15  Jim Meyering  <meyering@redhat.com>
10209
10210         maint.mk: Give gnulib_dir a default definition.
10211         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
10212         Thus, most packages no longer need to specify this variable in cfg.mk
10213
10214 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
10215
10216         rename.m4: fix typos that would make non-mingw cross-configure fail
10217         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
10218
10219 2009-05-13  Eric Blake  <ebb9@byu.net>
10220
10221         mmap-anon: avoid out-of-order autoconf expansion
10222         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
10223         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
10224         * modules/memchr-tests (Depends-on): Add extensions.
10225         * modules/memchr2-tests (Depends-on): Add extensions.
10226         * modules/memcmp-tests (Depends-on): Add extensions.
10227         * modules/memmem-tests (Depends-on): Add extensions.
10228         * modules/memrchr-tests (Depends-on): Add extensions.
10229
10230 2009-05-13  Bruno Haible  <bruno@clisp.org>
10231
10232         Make some tests ISO C 99 compliant.
10233         * tests/zerosize-ptr.h: New file.
10234         * tests/test-memchr.c: Include zerosize-ptr.h.
10235         (main): Use a zero-size object pointer instead of NULL.
10236         * tests/test-memchr2.c: Include zerosize-ptr.h.
10237         (main): Use a zero-size object pointer instead of NULL.
10238         * tests/test-memcmp.c: Include zerosize-ptr.h.
10239         (main): Use a zero-size object pointer instead of NULL.
10240         * tests/test-memmem.c: Include zerosize-ptr.h.
10241         (main): Use a zero-size object pointer instead of NULL.
10242         * tests/test-memrchr.c: Include zerosize-ptr.h.
10243         (main): Use a zero-size object pointer instead of NULL.
10244         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
10245         m4/mmap-anon.m4.
10246         (Depends-on): Add getpagesize.
10247         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10248         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
10249         m4/mmap-anon.m4.
10250         (Depends-on): Add getpagesize.
10251         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10252         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
10253         m4/mmap-anon.m4.
10254         (Depends-on): Add getpagesize.
10255         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10256         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
10257         m4/mmap-anon.m4.
10258         (Depends-on): Add getpagesize.
10259         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10260         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
10261         m4/mmap-anon.m4.
10262         (Depends-on): Add getpagesize.
10263         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10264
10265 2009-05-12  Bruno Haible  <bruno@clisp.org>
10266
10267         Tests for module 'alignof'.
10268         * modules/alignof-tests: New file.
10269         * tests/test-alignof.c: New file.
10270
10271 2009-05-12  Bruno Haible  <bruno@clisp.org>
10272
10273         Fix alignof macro.
10274         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
10275         vendor compilers that are always correct.
10276
10277 2009-05-12  Bruno Haible  <bruno@clisp.org>
10278
10279         Make the MAP_ANONYMOUS detection work on HP-UX 11.
10280         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
10281         not whether its fully works.
10282
10283 2009-05-12  Bruno Haible  <bruno@clisp.org>
10284
10285         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
10286
10287 2009-05-12  Jim Meyering  <meyering@redhat.com>
10288
10289         * top/maint.mk: Adjust backslash alignment.
10290
10291 2009-05-11  Simon Josefsson  <simon@josefsson.org>
10292
10293         * top/maint.mk: Make $(srcdir)/build-aux configurable.
10294
10295 2009-05-11  Eric Blake  <ebb9@byu.net>
10296
10297         argp: avoid undefined behavior
10298         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
10299         macros.
10300
10301 2009-05-08  Simon Josefsson  <simon@josefsson.org>
10302
10303         * tests/test-vc-list-files-git.sh: Do git config of user.email and
10304         user.name to prevent git commit from complaining.
10305
10306 2009-05-10  Bruno Haible  <bruno@clisp.org>
10307
10308         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
10309         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
10310         it rewrites every file name only once.
10311         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
10312
10313 2009-05-08  Bruno Haible  <bruno@clisp.org>
10314
10315         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
10316         instead of 'max'.
10317
10318 2009-05-08  Simon Josefsson  <simon@josefsson.org>
10319
10320         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
10321         sockaddr_storage test.
10322
10323 2009-05-07  Simon Josefsson  <simon@josefsson.org>
10324
10325         * modules/sys_socket (Makefile.am): Substitute
10326         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
10327         * m4/sys_socket_h.m4: Check for sockaddr_storage.
10328         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
10329         * tests/test-sys_socket.c: Check sockaddr_storage.
10330
10331 2009-05-08  Bruno Haible  <bruno@clisp.org>
10332
10333         New module 'alignof'.
10334         * lib/alignof.h: New file.
10335         * modules/alignof: New file.
10336
10337 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10338             Bruno Haible  <bruno@clisp.org>
10339
10340         Fix test-file-has-acl on FreeBSD.
10341         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
10342         mask is implicitly added.
10343         * tests/test-file-has-acl.c: Include <signal.h>.
10344         (main): Terminate the test after 5 seconds.
10345         * modules/acl-tests (configure.ac): Check for alarm function.
10346
10347 2009-05-04  Bruno Haible  <bruno@clisp.org>
10348
10349         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
10350         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
10351         * modules/errno (configure.ac): Drop AC_REQUIRE.
10352         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
10353         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
10354
10355 2009-05-04  Simon Josefsson  <simon@josefsson.org>
10356
10357         * modules/glob-tests: New module.
10358         * tests/test-glob.c: Add.
10359
10360 2009-05-04  Simon Josefsson  <simon@josefsson.org>
10361
10362         * modules/fnmatch-tests: New module.
10363         * tests/test-fnmatch.c: Add.
10364
10365 2009-05-04  Eric Blake  <ebb9@byu.net>
10366
10367         maint: make the new no-submodule-changes rule VPATH-safe
10368         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
10369
10370 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10371             Bruno Haible  <bruno@clisp.org>
10372
10373         acl: Fix infinite loop on FreeBSD.
10374         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
10375         of return value from acl_get_entry.
10376         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
10377         Likewise.
10378
10379 2009-05-03  Bruno Haible  <bruno@clisp.org>
10380
10381         * lib/acl-internal.h (acl_entries): Clarify return value.
10382         * lib/acl_entries.c (acl_entries): Likewise.
10383
10384 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10385
10386         Bug fix in acl module.
10387         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
10388
10389 2009-05-03  Bruno Haible  <bruno@clisp.org>
10390
10391         Create gperf-generated file in the source dir, not in the build dir.
10392         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
10393         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
10394         * modules/unicase/locale-language (unicase/locale-languages.h):
10395         Likewise.
10396         * modules/unicase/special-casing (unicase/special-casing-table.h):
10397         Likewise.
10398         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
10399         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
10400         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
10401         Reported by Ralf Wildenhues.
10402
10403 2009-05-03  Bruno Haible  <bruno@clisp.org>
10404
10405         * modules/fnmatch (Description, configure.ac): Taken from
10406         fnmatch-posix.
10407         * modules/fnmatch-posix: Turn into a symbolic reference to the
10408         'fnmatch' module, and deprecate.
10409         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
10410
10411 2009-05-03  Bruno Haible  <bruno@clisp.org>
10412
10413         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
10414         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
10415         Reported by Ralf Wildenhues.
10416
10417 2009-05-04  Simon Josefsson  <simon@josefsson.org>
10418
10419         * m4/fnmatch.m4: Fix fnmatch re-define.
10420
10421 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10422
10423         priv-set: new module and tests; adapt write-any-file
10424         * lib/priv-set.c: New file.
10425         * lib/priv-set.h: New file.
10426         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
10427         * lib/write-any-file.c: Simplify by using priv-set module.
10428         * m4/priv-set.m4: New file.
10429         * modules/priv-set: New file.
10430         * modules/unlinkdir: Add dependency on priv-set module.
10431         * modules/write-any-file: Likewise.
10432
10433         Tests for module 'priv-set'.
10434         * modules/priv-set-tests: New file.
10435         * tests/test-priv-set.c: New file.
10436
10437 2009-05-03  Jim Meyering  <meyering@redhat.com>
10438             Bruno Haible  <bruno@clisp.org>
10439
10440         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
10441         use the converted UTF-8 variant of the name instead.
10442
10443 2009-05-03  Jim Meyering  <meyering@redhat.com>
10444
10445         tests: tighten some getdate tests
10446         * tests/test-getdate.c (main): Tighten tests: require equality,
10447         not just greater than.  Set TZ envvar to UTC0.
10448
10449 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
10450
10451         getdate: correctly interpret "next monday" when run on a Monday
10452         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
10453         that e.g., "next tues" (when run on a tuesday) results in a date
10454         that is one week in the future, and not today's date.
10455         I.e., add a week when the wday is the same as the current one.
10456         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
10457         and earlier by Martin Bernreuther and Jan Minář.
10458         * tests/test-getdate.c (main): Check that "next DAY" is always in
10459         the future and that "last DAY" is always in the past.
10460
10461 2009-05-02  Jim Meyering  <meyering@redhat.com>
10462
10463         build: ensure that a release build fails when a submodule is unclean
10464         * top/maint.mk (no-submodule-changes): New rule.
10465         (alpha beta major): Depend on it.
10466
10467 2009-05-02  Bruno Haible  <bruno@clisp.org>
10468
10469         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
10470         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
10471         shell variable gl_fnmatch_required to detect which variant is
10472         requested.
10473         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
10474         gl_FUNC_FNMATCH_POSIX.
10475         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
10476         exclude fnmatch-posix.
10477
10478 2009-05-02  Bruno Haible  <bruno@clisp.org>
10479
10480         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
10481         * modules/mbsrtowcs (License): Change to LGPLv2+.
10482         * modules/strnlen1 (License): Likewise.
10483         Reported by Simon Josefsson.
10484
10485 2009-05-02  Bruno Haible  <bruno@clisp.org>
10486
10487         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
10488         "cross".
10489         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
10490         gnulib-tool was called with option --source-base=lib.
10491
10492 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10493
10494         Use automake *-local hooks without commands, for extensibility.
10495         * modules/localcharset (Makefile.am): Rename install-exec-local
10496         rule to install-exec-localcharset, and make it a prerequisite of
10497         install-exec-local.  Likewise, rename the uninstall-local rule to
10498         uninstall-localcharset, and make it a prerequisite of the former.
10499
10500 2009-05-01  Bruno Haible  <bruno@clisp.org>
10501
10502         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
10503         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
10504         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
10505         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
10506         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
10507         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
10508         m4/locale-zh.m4, m4/codeset.m4.
10509
10510         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
10511         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
10512         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
10513         m4/locale-zh.m4.
10514
10515         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
10516         REPLACE_WCRTOMB if mbstate_t must be replaced.
10517         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
10518         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
10519
10520 2009-05-01  Bruno Haible  <bruno@clisp.org>
10521
10522         Avoid compiler warnings when redefining macros defined by <libintl.h>.
10523         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
10524         dngettext, dcngettext, textdomain, bindtextdomain,
10525         bind_textdomain_codeset): Undefine before redefining.
10526
10527 2009-04-30  Bruno Haible  <bruno@clisp.org>
10528
10529         Fix bug introduced on 2009-04-25.
10530         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
10531         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
10532         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
10533         is defined.
10534         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
10535         is defined.
10536         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
10537         is defined.
10538         Reported by Elbert_Pol <elbert.pol@gmail.com>.
10539
10540 2009-04-28  Bruno Haible  <bruno@clisp.org>
10541
10542         Comment tweaks.
10543         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
10544         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
10545         * lib/unicase.h (u*_casexfrm): Likewise.
10546         Reported by Paolo Bonzini.
10547
10548 2009-04-28  Bruno Haible  <bruno@clisp.org>
10549
10550         Fix a compilation error.
10551         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
10552         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
10553         Reported by Jim Meyering.
10554
10555 2009-04-27  Bruno Haible  <bruno@clisp.org>
10556
10557         New module 'libunistring'.
10558         * modules/libunistring: New file.
10559         * m4/libunistring.m4: New file.
10560         * MODULES.html.sh (Unicode string functions): Add it.
10561
10562 2009-04-27  Eric Blake  <ebb9@byu.net>
10563
10564         maint.mk: allow package-specific header to provide <config.h>
10565         * top/maint.mk (sc_require_config_h): New variable.
10566         (sc_require_config_h, sc_require_config_h_first): Use it.
10567
10568 2009-04-27  Simon Josefsson  <simon@josefsson.org>
10569
10570         * top/maint.mk (sc_avoid_if_before_free): Except
10571         useless-if-before-free script.
10572
10573 2009-04-27  Eric Blake  <ebb9@byu.net>
10574
10575         maintainer-makefile: depend on all required helper scripts
10576         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
10577         useless-if-before-free.
10578         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
10579         version, rather than assuming gnulib checkout is available.
10580         Reported by Simen Josefsson.
10581
10582 2009-04-26  Bruno Haible  <bruno@clisp.org>
10583
10584         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
10585         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
10586         "../" or "..".
10587
10588 2009-04-26  Bruno Haible  <bruno@clisp.org>
10589
10590         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
10591         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
10592         AC_LIB_HAVE_LINKFLAGS.
10593
10594 2009-04-26  Bruno Haible  <bruno@clisp.org>
10595
10596         Simplify calling convention of u*_conv_from_encoding.
10597         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
10598         u32_conv_from_encoding): Expect a resultbuf argument and return the
10599         result directly as a pointer.
10600         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
10601         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
10602         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
10603         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
10604         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
10605         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
10606         Update.
10607         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
10608         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
10609         * lib/vasnprintf.c (VASNPRINTF): Update.
10610         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
10611         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
10612         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
10613         * NEWS: Mention the change.
10614
10615 2009-04-26  Bruno Haible  <bruno@clisp.org>
10616
10617         Simplify calling convention of u*_conv_to_encoding.
10618         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
10619         u32_conv_to_encoding): Expect a resultbuf argument and return the
10620         result directly as a pointer.
10621         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10622         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
10623         freeing scaled_offsets if mem_iconveha failed.
10624         * lib/unicase/u-casexfrm.h (FUNC): Update.
10625         * lib/uninorm/u-normxfrm.h (FUNC): Update.
10626         * lib/vasnprintf.c (VASNPRINTF): Update.
10627         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
10628         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
10629         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
10630         * NEWS: Mention the change.
10631
10632 2009-04-26  Bruno Haible  <bruno@clisp.org>
10633
10634         Avoid test failures on AIX and OSF/1.
10635         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
10636         malloc(0).
10637         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10638         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
10639         Likewise.
10640         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
10641         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
10642         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
10643         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
10644         * doc/posix-functions/malloc.texi: Document the portability problem
10645         related to malloc(0).
10646
10647 2009-04-26  Bruno Haible  <bruno@clisp.org>
10648
10649         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
10650         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
10651         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
10652
10653 2009-04-25  Bruno Haible  <bruno@clisp.org>
10654
10655         Avoid link error when creating a namespace clean library.
10656         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
10657         as macro with arguments if already defined as an alias.
10658         * lib/signbitf.c (gl_signbitf): Don't undefine.
10659         * lib/signbitd.c (gl_signbitd): Don't undefine.
10660         * lib/signbitl.c (gl_signbitl): Don't undefine.
10661
10662 2009-04-25  Jim Meyering  <meyering@redhat.com>
10663
10664         vc-list-files: fix another quoting bug
10665         * build-aux/vc-list-files: Avoid sed backslash expansion
10666         of pathological directory names.
10667
10668 2009-04-25  Eric Blake  <ebb9@byu.net>
10669
10670         vc-list-files: fix shell quoting error
10671         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
10672         timestamp.
10673
10674 2009-04-25  Jim Meyering  <meyering@redhat.com>
10675
10676         vc-list-files: restore lost functionality with subdir argument
10677         * build-aux/vc-list-files: When given a non-"." sub-directory
10678         argument, substitute the $dir/ prefix back onto each resulting name.
10679         Otherwise, coreutils' root_tests check would fail.
10680
10681 2009-04-24  Eric Blake  <ebb9@byu.net>
10682
10683         vc-list-files: ignore git symlinks
10684         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
10685         than ls-files, to ignore git symlinks.
10686
10687         maint.mk: import improvements from m4
10688         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
10689         (move_if_change): Delete unused macro.
10690         (news-date-check, vc-diff-check): Support VPATH builds.
10691         (announcement): Likewise.  Split --bootstrap-tools list...
10692         (boostrap-tools): ...into separate list, which can be overridden
10693         in cfg.mk.
10694         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
10695         requiring dependency on useless-if-before-free module.
10696         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
10697         Support VPATH builds.
10698
10699 2009-04-24  Jim Meyering  <meyering@redhat.com>
10700
10701         maint.mk: remove coreutils-specific rules and variables
10702         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
10703         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
10704         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
10705
10706         maint.mk: remove obsolete rule
10707         * top/maint.mk (rel-check): Remove rule.
10708         (WGET, WGETFLAGS): Remove now-unused variables.
10709
10710 2009-04-24  Simon Josefsson  <simon@josefsson.org>
10711
10712         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
10713         consistency.
10714
10715         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
10716         '$(PATH_SEPARATOR)' instead of ':'.
10717
10718 2009-04-24  Simon Josefsson  <simon@josefsson.org>
10719
10720         * lib/getopt1.c (main): Use 'const' for static array.
10721
10722 2009-04-24  Simon Josefsson  <simon@josefsson.org>
10723
10724         * top/maint.mk: Sync with coreutils.
10725         * NEWS: Explain incompatibilities.
10726
10727 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10728             Bruno Haible  <bruno@clisp.org>
10729
10730         Fix cross-compilation results.
10731         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
10732         statement, as third argument of AC_TRY_RUN.
10733         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10734         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10735         Likewise.
10736         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10737         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
10738         Likewise.
10739         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10740         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
10741         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
10742
10743 2009-04-20  Bruno Haible  <bruno@clisp.org>
10744
10745         Avoid test failure on mingw.
10746         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
10747
10748 2009-04-20  Bruno Haible  <bruno@clisp.org>
10749
10750         Avoid compilation error on mingw.
10751         * modules/localename-tests (Depends-on): Add locale.
10752
10753 2009-04-19  Bruno Haible  <bruno@clisp.org>
10754
10755         Support for building a shared library on Windows platforms.
10756         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
10757         (main): Test the presence of UNINORM_NFC here.
10758         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
10759         (main): Test the presence of UNINORM_NFD here.
10760         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
10761         (main): Test the presence of UNINORM_NFKC here.
10762         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
10763         (main): Test the presence of UNINORM_NFKD here.
10764
10765 2009-04-19  Bruno Haible  <bruno@clisp.org>
10766
10767         Avoid a compiler warning.
10768         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
10769         Change type of variable 'sequence'.
10770
10771 2009-04-19  Bruno Haible  <bruno@clisp.org>
10772
10773         * modules/configmake (Makefile.am): When the contents of configmake.h
10774         does not change, arrange to preserve its modification time.
10775
10776 2009-04-17  Simon Josefsson  <simon@josefsson.org>
10777
10778         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
10779         gettext domain.
10780
10781 2009-04-16  Jim Meyering  <meyering@redhat.com>
10782
10783         useless-if-before-free: improve conversion code
10784         * build-aux/useless-if-before-free: Adjust code-in-comment to match
10785         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
10786
10787 2009-04-14  Bruno Haible  <bruno@clisp.org>
10788
10789         * modules/fcntl (Depends-on): Add extensions.
10790         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
10791
10792 2009-04-12  Ben Pfaff  <blp@gnu.org>
10793
10794         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
10795         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
10796
10797 2009-03-20  Ben Pfaff  <blp@gnu.org>
10798
10799         Make rename replace existing destinations on Windows.
10800         * m4/rename.m4: Add test for Mingw.
10801         * lib/rename.c: Add rename replacement that uses MoveFileEx with
10802         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
10803         * doc/posix-functions/rename.texi: Document.
10804
10805 2009-04-10  Bruno Haible  <bruno@clisp.org>
10806
10807         New include file "iconveh.h".
10808         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
10809         * lib/striconveh.h: Include it.
10810         (enum iconv_ilseq_handler): Remove definition.
10811         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
10812         striconveh.h.
10813         * lib/striconveha.c: Include striconveh.h.
10814         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
10815         * modules/striconveh (Files): Add lib/iconveh.h.
10816         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
10817         lib/striconveh.h.
10818
10819 2009-04-10  Bruno Haible  <bruno@clisp.org>
10820
10821         * lib/uniconv.h: Update comment.
10822
10823 2009-04-10  Bruno Haible  <bruno@clisp.org>
10824
10825         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
10826         always.
10827         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
10828         * lib/unistr/u16-mbtouc-aux.c: Likewise.
10829         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
10830         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
10831         "unistring-notinline.h", so that the function gets defined always.
10832         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
10833         * lib/unistr/u8-uctomb.c: Likewise.
10834         * lib/unistr/u16-mbtouc.c: Likewise.
10835         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
10836         * lib/unistr/u16-uctomb.c: Likewise.
10837         * lib/unistr/u32-mbtouc.c: Likewise.
10838         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
10839         * lib/unistr/u32-uctomb.c: Likewise.
10840
10841 2009-04-10  Bruno Haible  <bruno@clisp.org>
10842
10843         Mark 'utime' obsolete.
10844         * modules/utime (Status, Notice): New sections.
10845         Suggested by Jim Meyering.
10846
10847         Fix cross-compile guess for utime test.
10848         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
10849         autoconf.
10850         * doc/posix-functions/utime.texi: Give more precisions.
10851         Reported by Jan <ipif@ymail.com>.
10852
10853 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
10854
10855         filevercmp: correct today's change
10856         * lib/filevercmp.c: Also handle coreutils' test inputs.
10857         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
10858
10859         Fix regression in 'filevercmp' module. Thanks Sven Joachim
10860         for reporting it.
10861         * lib/filevercmp.c: Special handle for "", "." and "..".
10862         * tests/test-filevercmp.c: Enlarge the set suite.
10863
10864 2009-04-07  Jim Meyering  <meyering@redhat.com>
10865
10866         useless-if-before-free: show how to remove braced useless free, too
10867         * build-aux/useless-if-before-free: still only in a comment, though.
10868
10869 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
10870
10871         maint.mk: import changes to syntax-check macros from coreutils
10872         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
10873         Use them in the relevant macros.
10874
10875 2009-04-06  Bruno Haible  <bruno@clisp.org>
10876
10877         Fix unportable use of bit-fields.
10878         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
10879         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
10880         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
10881
10882 2009-04-06  Bruno Haible  <bruno@clisp.org>
10883
10884         Avoid test failures on AIX and OSF/1.
10885         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
10886         that malloc(0) = NULL.
10887         * tests/unicase/test-u8-tolower.c (check): Likewise.
10888         * tests/unicase/test-u8-totitle.c (check): Likewise.
10889         * tests/unicase/test-u8-toupper.c (check): Likewise.
10890         * tests/unicase/test-u16-casefold.c (check): Likewise.
10891         * tests/unicase/test-u16-tolower.c (check): Likewise.
10892         * tests/unicase/test-u16-totitle.c (check): Likewise.
10893         * tests/unicase/test-u16-toupper.c (check): Likewise.
10894         * tests/unicase/test-u32-casefold.c (check): Likewise.
10895         * tests/unicase/test-u32-tolower.c (check): Likewise.
10896         * tests/unicase/test-u32-totitle.c (check): Likewise.
10897         * tests/unicase/test-u32-toupper.c (check): Likewise.
10898         * tests/uninorm/test-u8-nfc.c (check): Likewise.
10899         * tests/uninorm/test-u8-nfd.c (check): Likewise.
10900         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
10901         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
10902         * tests/uninorm/test-u16-nfc.c (check): Likewise.
10903         * tests/uninorm/test-u16-nfd.c (check): Likewise.
10904         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
10905         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
10906         * tests/uninorm/test-u32-nfc.c (check): Likewise.
10907         * tests/uninorm/test-u32-nfd.c (check): Likewise.
10908         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
10909         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
10910
10911 2009-04-05  Bruno Haible  <bruno@clisp.org>
10912
10913         Work around an autoconf limitation.
10914         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
10915         comment line if it would be longer than 3 KB.
10916
10917 2009-04-05  Bruno Haible  <bruno@clisp.org>
10918
10919         Avoid test failure with libiconv-1.13.
10920         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
10921         of the expected test results.
10922
10923 2009-04-05  Bruno Haible  <bruno@clisp.org>
10924
10925         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
10926         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
10927         that it should be installed.
10928
10929 2009-04-05  Bruno Haible  <bruno@clisp.org>
10930
10931         * gnulib-tool: New option --copy-file.
10932         (func_usage): Document it.
10933         (func_dest_tmpfilename): Moved out of func_import.
10934         (func_add_file, func_update_file): New functions, extracted from
10935         func_import.
10936         (func_import): Update.
10937
10938 2009-04-05  Karl Berry  <karl@gnu.org>
10939
10940         * README: prominently mention gnulib-tool.
10941         Rearrange sections so getting the code is near the top.
10942
10943 2009-04-05  Bruno Haible  <bruno@clisp.org>
10944
10945         * lib/unicase.h: Mention u*_cmp2.
10946         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
10947         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
10948         * lib/unicase/ulc-casecmp.c: Likewise.
10949         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
10950         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
10951         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
10952         unistr/u8-cmp.
10953         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
10954         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
10955         unistr/u16-cmp.
10956         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
10957         unistr/u32-cmp.
10958
10959         * lib/uninorm.h: Mention u*_cmp2.
10960         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
10961         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
10962         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
10963         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
10964         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
10965         unistr/u8-cmp.
10966         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
10967         unistr/u16-cmp.
10968         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
10969         unistr/u32-cmp.
10970
10971         New module 'unistr/u32-cmp2'.
10972         * lib/unistr/u32-cmp2.c: New file.
10973         * modules/unistr/u32-cmp2: New file.
10974
10975         New module 'unistr/u16-cmp2'.
10976         * lib/unistr/u16-cmp2.c: New file.
10977         * modules/unistr/u16-cmp2: New file.
10978
10979         New module 'unistr/u8-cmp2'.
10980         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
10981         * lib/unistr/u8-cmp2.c: New file.
10982         * lib/unistr/u-cmp2.h: New file.
10983         * modules/unistr/u8-cmp2: New file.
10984
10985 2009-04-05  Bruno Haible  <bruno@clisp.org>
10986
10987         * lib/unictype.h (uc_property_is_valid): New macro.
10988         * tests/unictype/test-pr_byname.c (main): Use it.
10989
10990         * lib/unistr.h: Doc fixes.
10991         * lib/uniconv.h: Doc fixes.
10992         * lib/unictype.h: Doc fixes.
10993
10994 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
10995
10996         Port coreutils 7.2 to Solaris 8.
10997
10998         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
10999         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
11000         for Solaris 8.  This is a bit of a hack, as it means it's the
11001         caller's responsibility to add -lnsl if needed, but most likely it
11002         won't be needed since only getaddrinfo uses this and getaddrinfo
11003         isn't needed on Solaris 8.
11004
11005         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
11006         problem to Solaris 8 encountered with coreutils 7.2, which
11007         resulted in a message "fnmatch.c:292: warning: passing argument 4
11008         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
11009         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
11010
11011 2009-04-03  Simon Josefsson  <simon@josefsson.org>
11012
11013         * m4/ld-version-script.m4: Add FIXME comment.
11014
11015 2009-04-02  Simon Josefsson  <simon@josefsson.org>
11016
11017         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
11018         SOVERSION variable.
11019
11020 2009-04-02  Bruno Haible  <bruno@clisp.org>
11021
11022         * Makefile (info, html, dvi, pdf): Combine the rules.
11023         Suggested by Jim Meyering.
11024
11025 2009-04-01  Bruno Haible  <bruno@clisp.org>
11026
11027         * Makefile (info, html, dvi, pdf): New targets.
11028         Reported by Reuben Thomas <rrt@sc3d.org>.
11029
11030 2009-04-01  Bruno Haible  <bruno@clisp.org>
11031
11032         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
11033         can be put into PATH.
11034         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
11035
11036 2009-04-01  Bruno Haible  <bruno@clisp.org>
11037
11038         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
11039
11040 2009-04-01  Bruno Haible  <bruno@clisp.org>
11041
11042         Rename module 'visibility'.
11043         * modules/lib-symbol-visibility: Renamed from modules/visibility.
11044         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
11045         * doc/gnulib.texi: Update.
11046         * MODULES.html.sh (Misc): Update.
11047         * NEWS: Mention the change.
11048
11049 2009-04-01  Simon Josefsson  <simon@josefsson.org>
11050
11051         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
11052         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
11053         Eric Blake <ebb9@byu.net> for review.
11054         * MODULES.html.sh: Add lib-msvc-compat.
11055         * doc/gnulib.texi: Link to new section.
11056         * m4/ld-output-def.m4: New file.
11057         * doc/ld-output-def.texi: New file.
11058
11059 2009-04-01  Simon Josefsson  <simon@josefsson.org>
11060
11061         Rename ld-version-script to lib-symbol-versions.  Suggested by
11062         Bruno Haible <bruno@clisp.org>.
11063         * modules/ld-version-script: Renamed to lib-symbol-versions.
11064         * doc/ld-version-script.texi: Fix module name.
11065         * MODULES.html.sh: Add lib-symbol-versions.
11066
11067 2009-03-31  Simon Josefsson  <simon@josefsson.org>
11068
11069         * modules/u64-tests: New file.
11070         * tests/test-u64.c: New file.
11071
11072 2009-03-04  Simon Josefsson  <simon@josefsson.org>
11073
11074         * MODULES.html.sh: Mention u64.
11075         * modules/u64: New module.
11076         * modules/crypto/sha512: Depend on u64 module instead of providing
11077         u64.h.
11078
11079 2009-03-27  Eric Blake  <ebb9@byu.net>
11080
11081         test-strerror: make debugging EAI_SYSTEM easier
11082         * modules/getaddrinfo-tests (Depends-on): Add strerror.
11083         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
11084         failure was EAI_SYSTEM.
11085
11086 2009-03-25  Bruno Haible  <bruno@clisp.org>
11087
11088         Fix a problem with --enable-relocatable on Solaris 7.
11089         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
11090         since 2008-02-24.
11091
11092 2009-03-25  Eric Blake  <ebb9@byu.net>
11093
11094         test-sockets: avoid gcc warning
11095         * tests/test-sockets.c (main): Silence compiler warning.
11096
11097 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
11098
11099         New modules nproc, pthread, contributed by Glen Lenker.
11100
11101         * MODULES.html.sh: Add pthread, nproc.
11102         * lib/nproc.c: New file.
11103         * lib/nproc.h: New file.
11104         * lib/pthread.in.h: New file.
11105         * m4/pthread.m4: New file.
11106         * modules/nproc: New file.
11107         * modules/pthread: New file.
11108
11109 2009-03-24  Simon Josefsson  <simon@josefsson.org>
11110
11111         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
11112         New variable.
11113
11114 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
11115
11116         filevercmp: handle simple~ and numbered.~3~ backup suffixes
11117         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
11118         * tests/test-filevercmp.c: Add tests for backup suffixes.
11119
11120 2009-03-24  Simon Josefsson  <simon@josefsson.org>
11121
11122         * modules/stdlib (Depends-on): Add stdint, needed when defining
11123         struct random_data on, for example, HP-UX 10.20.  Reported by
11124         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11125
11126 2009-03-24  Simon Josefsson  <simon@josefsson.org>
11127
11128         * lib/readline.c (readline): Call fflush on stdout after printing
11129         prompt.
11130
11131 2009-03-20  Bruno Haible  <bruno@clisp.org>
11132
11133         Remove dependency from 'close' module to -lws2_32 on native Windows.
11134         * lib/close-hook.h: New file.
11135         * lib/close-hook.c: New file.
11136         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
11137         w32sock.h.
11138         (_gl_close_fd_maybe_socket): Remove function.
11139         (rpl_close): Invoke execute_all_close_hooks instead of
11140         _gl_close_fd_maybe_socket.
11141         * lib/sockets.c: Include close-hook.h, w32sock.h.
11142         (close_fd_maybe_socket): New function, essentially from lib/close.c.
11143         (close_sockets_hook): New variable.
11144         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
11145         (gl_sockets_cleanup): Unregister it.
11146         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
11147         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
11148         * modules/close-hook: New file.
11149         * modules/close (Files): Remove lib/w32sock.h.
11150         (Depends-on): Add close-hook.
11151         (Link): Remove section.
11152         * modules/sockets (Files): Add lib/w32sock.h.
11153         (Depends-on): Add close-hook.
11154         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
11155         invocation.
11156         * NEWS: Mention that LIB_CLOSE is gone.
11157
11158 2009-03-23  Eric Blake  <ebb9@byu.net>
11159
11160         signal-tests: test previous patch
11161         * tests/test-signal.c: New file.
11162         * modules/signal-tests: Likewise.
11163
11164         signal.h: always support 'volatile sig_atomic_t'
11165         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
11166         (gl_SIGNAL_H_DEFAULTS): Add a default.
11167         * modules/signal (Makefile.am): Substitute if needed.
11168         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
11169         users can blindly add volatile.
11170         * doc/posix-headers/signal.texi (signal.h): Document it.
11171         Reported by Matthew Woehlke.
11172
11173 2009-03-23  Jim Meyering  <meyering@redhat.com>
11174
11175         pathmax: PATH_MAX: use pathconf only when available
11176         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
11177         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
11178         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
11179         This avoids a link failure in a PSP cross-compilation environment
11180         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
11181
11182         * lib/vasnprintf.c (divide): Fix typo in comment.
11183
11184 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11185
11186         * gnulib-tool (func_filter_filelist): Fix comment.
11187
11188 2009-03-20  Bruno Haible  <bruno@clisp.org>
11189
11190         Make sockets.h self-contained.
11191         * lib/sockets.c: Include sockets.h first.
11192         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
11193
11194 2009-03-19  Eric Blake  <ebb9@byu.net>
11195
11196         doc: mention more functions added in cygwin 1.7.0
11197         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
11198         addition.
11199         * doc/posix-functions/log2f.texi: Likewise.
11200
11201 2009-03-19  Jim Meyering  <meyering@redhat.com>
11202
11203         fsusage: avoid syntax error due to statement-before-declaration
11204         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
11205         after all declarations.  Reported by Matthew Woehlke in
11206         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
11207
11208 2009-03-18  Eric Blake  <ebb9@byu.net>
11209
11210         build-aux/compile: sync from automake
11211         * build-aux/compile: New file, from automake.
11212         * config/srclist.txt: Mention build-aux/compile.
11213
11214 2009-03-17  Bruno Haible  <bruno@clisp.org>
11215
11216         * lib/git-merge-changelog.c: Fix typo in comment.
11217         Reported by Reuben Thomas <rrt@sc3d.org>.
11218
11219 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
11220
11221         * m4/regex.m4: update and improve help for
11222         --without-included-regex.
11223
11224 2009-03-17  Simon Josefsson  <simon@josefsson.org>
11225
11226         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
11227         failure on missing include files.
11228
11229 2009-03-17  Eric Blake  <ebb9@byu.net>
11230
11231         doc: mention more functions added in cygwin 1.7.0
11232         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
11233         addition.
11234         * doc/posix-functions/fwscanf.texi: Likewise.
11235         * doc/posix-functions/swprintf.texi: Likewise.
11236         * doc/posix-functions/swscanf.texi: Likewise.
11237         * doc/posix-functions/vfwprintf.texi: Likewise.
11238         * doc/posix-functions/vfwscanf.texi: Likewise.
11239         * doc/posix-functions/vswprintf.texi: Likewise.
11240         * doc/posix-functions/vswscanf.texi: Likewise.
11241         * doc/posix-functions/vwprintf.texi: Likewise.
11242         * doc/posix-functions/vwscanf.texi: Likewise.
11243         * doc/posix-functions/wcscasecmp.texi: Likewise.
11244         * doc/posix-functions/wcsdup.texi: Likewise.
11245         * doc/posix-functions/wcsftime.texi: Likewise.
11246         * doc/posix-functions/wcsncasecmp.texi: Likewise.
11247         * doc/posix-functions/wprintf.texi: Likewise.
11248         * doc/posix-functions/wscanf.texi: Likewise.
11249         * doc/glibc-functions/gethostbyname2.texi: Likewise.
11250
11251 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11252
11253         maint.mk: really add $(AM_MAKEFLAGS)
11254         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
11255         was inadvertently omitted in the last commit.
11256         Spotted by Bruno Haible.
11257
11258         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
11259         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
11260         $(AM_MAKEFLAGS)' rather than plain `make'.
11261
11262         gnulib-tool: execute $MAKE not make
11263         * gnulib-tool: Default $MAKE to 'make'.
11264         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
11265         than make.  Initialize $MAKE in the do-autobuild script.
11266
11267         gnulib-tool: use $MAKE not make in generated files
11268         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
11269         make, in generated files.  Initialize $MAKE in the do-autobuild
11270         script.
11271
11272         * top/GNUmakefile (_have-git-version-gen): Fix typo.
11273
11274         GNUmakefile: disable parallelism only for multiple, recursive targets
11275         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
11276         additions in the Makefile.
11277         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
11278         by Automake.
11279         (.NOTPARALLEL): Only disable parallel builds if multiple targets
11280         are listed on the command line and at least one of them is
11281         listed in $(ALL_RECURSIVE_TARGETS).
11282
11283 2009-03-14  Bruno Haible  <bruno@clisp.org>
11284
11285         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
11286         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
11287         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
11288         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
11289         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
11290         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
11291         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
11292         unistr/u8-uctomb.
11293         * modules/unistr/u8-strchr (Depends-on): Likewise.
11294         * modules/unistr/u8-strrchr (Depends-on): Likewise.
11295         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
11296         unistr/u16-uctomb.
11297         * modules/unistr/u16-strchr (Depends-on): Likewise.
11298         * modules/unistr/u16-strrchr (Depends-on): Likewise.
11299
11300 2009-03-12  Bruno Haible  <bruno@clisp.org>
11301
11302         Work around select() bug on Interix 3.5.
11303         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
11304         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
11305         * m4/select.m4: New file.
11306         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
11307         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
11308         * modules/select (Files): Add m4/select.m4.
11309         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
11310         * modules/nanosleep (Depends-on): Add select.
11311         * modules/poll (Depends-on): Likewise.
11312         * doc/posix-functions/select.texi: Mention the Interix bug.
11313         Reported by Markus Duft <mduft@gentoo.org>.
11314
11315         * lib/select.c: Renamed from lib/winsock-select.c.
11316         * modules/select (Files): Add lib/select.c, remove
11317         lib/winsock-select.c.
11318         (configure.ac): Update.
11319
11320 2009-03-12  Jim Meyering  <meyering@redhat.com>
11321
11322         avoid gcc warnings about unused macro definitions
11323         * lib/readtokens.c (STREQ): Remove unused definition.
11324         * lib/xmalloc.c (SIZE_MAX): Likewise.
11325         * lib/openat-die.c (N_): Likewise.
11326         * lib/mountlist.c (SIZE_MAX): Remove definition.
11327         Instead, include <stdint.h>.
11328         * lib/readutmp.c: Likewise.
11329         * modules/readutmp (Depends-on): Add stdint.
11330         * modules/mountlist (Depends-on): Add stdint.
11331         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
11332
11333 2009-03-10  Bruno Haible  <bruno@clisp.org>
11334
11335         Tests for module 'mbmemcasecoll'.
11336         * modules/mbmemcasecoll-tests: New file.
11337         * tests/test-mbmemcasecoll1.sh: New file.
11338         * tests/test-mbmemcasecoll2.sh: New file.
11339         * tests/test-mbmemcasecoll3.sh: New file.
11340         * tests/test-mbmemcasecoll.c: New file.
11341
11342         New module 'mbmemcasecoll'.
11343         * lib/mbmemcasecoll.h: New file.
11344         * lib/mbmemcasecoll.c: New file.
11345         * modules/mbmemcasecoll: New file.
11346
11347         * tests/test-mbmemcasecmp.h: New file, extracted from
11348         tests/test-mbmemcasecmp.c.
11349         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
11350         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
11351         (main): Update.
11352         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
11353
11354 2009-03-09  Bruno Haible  <bruno@clisp.org>
11355
11356         Tests for module 'mbmemcasecmp'.
11357         * modules/mbmemcasecmp-tests: New file.
11358         * tests/test-mbmemcasecmp1.sh: New file.
11359         * tests/test-mbmemcasecmp2.sh: New file.
11360         * tests/test-mbmemcasecmp3.sh: New file.
11361         * tests/test-mbmemcasecmp.c: New file.
11362
11363         New module 'mbmemcasecmp'.
11364         * lib/mbmemcasecmp.h: New file.
11365         * lib/mbmemcasecmp.c: New file.
11366         * modules/mbmemcasecmp: New file.
11367
11368 2009-03-09  Bruno Haible  <bruno@clisp.org>
11369
11370         Tests for module 'unicase/ulc-casecoll'.
11371         * modules/unicase/ulc-casecoll-tests: New file.
11372         * tests/unicase/test-ulc-casecoll1.sh: New file.
11373         * tests/unicase/test-ulc-casecoll2.sh: New file.
11374         * tests/unicase/test-ulc-casecoll.c: New file.
11375
11376         New module 'unicase/ulc-casecoll'.
11377         * lib/unicase.h (ulc_casecoll): New declaration.
11378         * lib/unicase/ulc-casecoll.c: New file.
11379         * modules/unicase/ulc-casecoll: New file.
11380
11381         New module 'unicase/ulc-casexfrm'.
11382         * lib/unicase.h (ulc_casexfrm): New declaration.
11383         * lib/unicase/ulc-casexfrm.c: New file.
11384         * modules/unicase/ulc-casexfrm: New file.
11385
11386 2009-03-09  Bruno Haible  <bruno@clisp.org>
11387
11388         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
11389         invocations.
11390
11391         * m4/mbscasecmp.m4: Remove file.
11392         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
11393         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
11394
11395         * m4/mbscasestr.m4: Remove file.
11396         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
11397         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
11398
11399         * m4/mbschr.m4: Remove file.
11400         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
11401         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
11402
11403         * m4/mbscspn.m4: Remove file.
11404         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
11405         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
11406
11407         * m4/mbslen.m4: Remove file.
11408         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
11409         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
11410
11411         * m4/mbsncasecmp.m4: Remove file.
11412         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
11413         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
11414
11415         * m4/mbsnlen.m4: Remove file.
11416         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
11417         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
11418
11419         * m4/mbspbrk.m4: Remove file.
11420         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
11421         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
11422
11423         * m4/mbspcasecmp.m4: Remove file.
11424         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
11425         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
11426
11427         * m4/mbsrchr.m4: Remove file.
11428         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
11429         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
11430
11431         * m4/mbssep.m4: Remove file.
11432         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
11433         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
11434
11435         * m4/mbsspn.m4: Remove file.
11436         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
11437         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
11438
11439         * m4/mbsstr.m4: Remove file.
11440         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
11441         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
11442
11443         * m4/mbstok_r.m4: Remove file.
11444         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
11445         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
11446
11447         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
11448
11449         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
11450         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
11451
11452         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
11453
11454 2009-03-08  Bruno Haible  <bruno@clisp.org>
11455
11456         Tests for module 'unicase/ulc-casecmp'.
11457         * modules/unicase/ulc-casecmp-tests: New file.
11458         * tests/unicase/test-ulc-casecmp1.sh: New file.
11459         * tests/unicase/test-ulc-casecmp2.sh: New file.
11460         * tests/unicase/test-ulc-casecmp.c: New file.
11461
11462         New module 'unicase/ulc-casecmp'.
11463         * lib/unicase.h (ulc_casecmp): New declaration.
11464         * lib/unicase/ulc-casecmp.c: New file.
11465         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
11466         'const SRC_UNIT *'.
11467         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
11468         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
11469         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
11470         * modules/unicase/ulc-casecmp: New file.
11471
11472         Tests for module 'unicase/u32-is-cased'.
11473         * modules/unicase/u32-is-cased-tests: New file.
11474         * tests/unicase/test-u32-is-cased.c: New file.
11475
11476         Tests for module 'unicase/u16-is-cased'.
11477         * modules/unicase/u16-is-cased-tests: New file.
11478         * tests/unicase/test-u16-is-cased.c: New file.
11479
11480         Tests for module 'unicase/u8-is-cased'.
11481         * modules/unicase/u8-is-cased-tests: New file.
11482         * tests/unicase/test-u8-is-cased.c: New file.
11483         * tests/unicase/test-is-cased.h: New file.
11484
11485         New module 'unicase/u32-is-cased'.
11486         * lib/unicase/u32-is-cased.c: New file.
11487         * modules/unicase/u32-is-cased: New file.
11488
11489         New module 'unicase/u16-is-cased'.
11490         * lib/unicase/u16-is-cased.c: New file.
11491         * modules/unicase/u16-is-cased: New file.
11492
11493         New module 'unicase/u8-is-cased'.
11494         * lib/unicase/u8-is-cased.c: New file.
11495         * lib/unicase/u-is-cased.h: New file.
11496         * modules/unicase/u8-is-cased: New file.
11497
11498         Tests for module 'unicase/u32-is-casefolded'.
11499         * modules/unicase/u32-is-casefolded-tests: New file.
11500         * tests/unicase/test-u32-is-casefolded.c: New file.
11501
11502         Tests for module 'unicase/u16-is-casefolded'.
11503         * modules/unicase/u16-is-casefolded-tests: New file.
11504         * tests/unicase/test-u16-is-casefolded.c: New file.
11505
11506         Tests for module 'unicase/u8-is-casefolded'.
11507         * modules/unicase/u8-is-casefolded-tests: New file.
11508         * tests/unicase/test-u8-is-casefolded.c: New file.
11509         * tests/unicase/test-is-casefolded.h: New file.
11510
11511         New module 'unicase/u32-is-casefolded'.
11512         * lib/unicase/u32-is-casefolded.c: New file.
11513         * modules/unicase/u32-is-casefolded: New file.
11514
11515         New module 'unicase/u16-is-casefolded'.
11516         * lib/unicase/u16-is-casefolded.c: New file.
11517         * modules/unicase/u16-is-casefolded: New file.
11518
11519         New module 'unicase/u8-is-casefolded'.
11520         * lib/unicase/u8-is-casefolded.c: New file.
11521         * modules/unicase/u8-is-casefolded: New file.
11522
11523         Tests for module 'unicase/u32-is-titlecase'.
11524         * modules/unicase/u32-is-titlecase-tests: New file.
11525         * tests/unicase/test-u32-is-titlecase.c: New file.
11526
11527         Tests for module 'unicase/u16-is-titlecase'.
11528         * modules/unicase/u16-is-titlecase-tests: New file.
11529         * tests/unicase/test-u16-is-titlecase.c: New file.
11530
11531         Tests for module 'unicase/u8-is-titlecase'.
11532         * modules/unicase/u8-is-titlecase-tests: New file.
11533         * tests/unicase/test-u8-is-titlecase.c: New file.
11534         * tests/unicase/test-is-titlecase.h: New file.
11535
11536         New module 'unicase/u32-is-titlecase'.
11537         * lib/unicase/u32-is-titlecase.c: New file.
11538         * modules/unicase/u32-is-titlecase: New file.
11539
11540         New module 'unicase/u16-is-titlecase'.
11541         * lib/unicase/u16-is-titlecase.c: New file.
11542         * modules/unicase/u16-is-titlecase: New file.
11543
11544         New module 'unicase/u8-is-titlecase'.
11545         * lib/unicase/u8-is-titlecase.c: New file.
11546         * modules/unicase/u8-is-titlecase: New file.
11547
11548         Tests for module 'unicase/u32-is-lowercase'.
11549         * modules/unicase/u32-is-lowercase-tests: New file.
11550         * tests/unicase/test-u32-is-lowercase.c: New file.
11551
11552         Tests for module 'unicase/u16-is-lowercase'.
11553         * modules/unicase/u16-is-lowercase-tests: New file.
11554         * tests/unicase/test-u16-is-lowercase.c: New file.
11555
11556         Tests for module 'unicase/u8-is-lowercase'.
11557         * modules/unicase/u8-is-lowercase-tests: New file.
11558         * tests/unicase/test-u8-is-lowercase.c: New file.
11559         * tests/unicase/test-is-lowercase.h: New file.
11560
11561         New module 'unicase/u32-is-lowercase'.
11562         * lib/unicase/u32-is-lowercase.c: New file.
11563         * modules/unicase/u32-is-lowercase: New file.
11564
11565         New module 'unicase/u16-is-lowercase'.
11566         * lib/unicase/u16-is-lowercase.c: New file.
11567         * modules/unicase/u16-is-lowercase: New file.
11568
11569         New module 'unicase/u8-is-lowercase'.
11570         * lib/unicase/u8-is-lowercase.c: New file.
11571         * modules/unicase/u8-is-lowercase: New file.
11572
11573         Tests for module 'unicase/u32-is-uppercase'.
11574         * modules/unicase/u32-is-uppercase-tests: New file.
11575         * tests/unicase/test-u32-is-uppercase.c: New file.
11576
11577         Tests for module 'unicase/u16-is-uppercase'.
11578         * modules/unicase/u16-is-uppercase-tests: New file.
11579         * tests/unicase/test-u16-is-uppercase.c: New file.
11580
11581         Tests for module 'unicase/u8-is-uppercase'.
11582         * modules/unicase/u8-is-uppercase-tests: New file.
11583         * tests/unicase/test-u8-is-uppercase.c: New file.
11584         * tests/unicase/test-is-uppercase.h: New file.
11585
11586         New module 'unicase/u32-is-uppercase'.
11587         * lib/unicase/u32-is-uppercase.c: New file.
11588         * modules/unicase/u32-is-uppercase: New file.
11589
11590         New module 'unicase/u16-is-uppercase'.
11591         * lib/unicase/u16-is-uppercase.c: New file.
11592         * modules/unicase/u16-is-uppercase: New file.
11593
11594         New module 'unicase/u8-is-uppercase'.
11595         * lib/unicase/u8-is-uppercase.c: New file.
11596         * modules/unicase/u8-is-uppercase: New file.
11597
11598         New module 'unicase/u32-is-invariant'.
11599         * lib/unicase/u32-is-invariant.c: New file.
11600         * modules/unicase/u32-is-invariant: New file.
11601
11602         New module 'unicase/u16-is-invariant'.
11603         * lib/unicase/u16-is-invariant.c: New file.
11604         * modules/unicase/u16-is-invariant: New file.
11605
11606         New module 'unicase/u8-is-invariant'.
11607         * lib/unicase/u8-is-invariant.c: New file.
11608         * lib/unicase/invariant.h: New file.
11609         * lib/unicase/u-is-invariant.h: New file.
11610         * modules/unicase/u8-is-invariant: New file.
11611
11612         Tests for module 'unicase/u32-casecoll'.
11613         * modules/unicase/u32-casecoll-tests: New file.
11614         * tests/unicase/test-u32-casecoll.c: New file.
11615
11616         Tests for module 'unicase/u16-casecoll'.
11617         * modules/unicase/u16-casecoll-tests: New file.
11618         * tests/unicase/test-u16-casecoll.c: New file.
11619
11620         Tests for module 'unicase/u8-casecoll'.
11621         * modules/unicase/u8-casecoll-tests: New file.
11622         * tests/unicase/test-u8-casecoll.c: New file.
11623
11624         New module 'unicase/u32-casecoll'.
11625         * lib/unicase/u32-casecoll.c: New file.
11626         * modules/unicase/u32-casecoll: New file.
11627
11628         New module 'unicase/u16-casecoll'.
11629         * lib/unicase/u16-casecoll.c: New file.
11630         * modules/unicase/u16-casecoll: New file.
11631
11632         New module 'unicase/u8-casecoll'.
11633         * lib/unicase/u8-casecoll.c: New file.
11634         * lib/unicase/u-casecoll.h: New file.
11635         * modules/unicase/u8-casecoll: New file.
11636
11637         New module 'unicase/u32-casexfrm'.
11638         * lib/unicase/u32-casexfrm.c: New file.
11639         * modules/unicase/u32-casexfrm: New file.
11640
11641         New module 'unicase/u16-casexfrm'.
11642         * lib/unicase/u16-casexfrm.c: New file.
11643         * modules/unicase/u16-casexfrm: New file.
11644
11645         New module 'unicase/u8-casexfrm'.
11646         * lib/unicase/u8-casexfrm.c: New file.
11647         * lib/unicase/u-casexfrm.h: New file.
11648         * modules/unicase/u8-casexfrm: New file.
11649
11650         Tests for module 'unicase/u32-casecmp'.
11651         * modules/unicase/u32-casecmp-tests: New file.
11652         * tests/unicase/test-u32-casecmp.c: New file.
11653
11654         Tests for module 'unicase/u16-casecmp'.
11655         * modules/unicase/u16-casecmp-tests: New file.
11656         * tests/unicase/test-u16-casecmp.c: New file.
11657
11658         Tests for module 'unicase/u8-casecmp'.
11659         * modules/unicase/u8-casecmp-tests: New file.
11660         * tests/unicase/test-u8-casecmp.c: New file.
11661         * tests/unicase/test-casecmp.h: New file.
11662
11663         New module 'unicase/u32-casecmp'.
11664         * lib/unicase/u32-casecmp.c: New file.
11665         * modules/unicase/u32-casecmp: New file.
11666
11667         New module 'unicase/u16-casecmp'.
11668         * lib/unicase/u16-casecmp.c: New file.
11669         * modules/unicase/u16-casecmp: New file.
11670
11671         New module 'unicase/u8-casecmp'.
11672         * lib/unicase/u8-casecmp.c: New file.
11673         * lib/unicase/u-casecmp.h: New file.
11674         * modules/unicase/u8-casecmp: New file.
11675
11676         Tests for module 'unicase/u32-casefold'.
11677         * modules/unicase/u32-casefold-tests: New file.
11678         * tests/unicase/test-u32-casefold.c: New file.
11679
11680         Tests for module 'unicase/u16-casefold'.
11681         * modules/unicase/u16-casefold-tests: New file.
11682         * tests/unicase/test-u16-casefold.c: New file.
11683
11684         Tests for module 'unicase/u8-casefold'.
11685         * modules/unicase/u8-casefold-tests: New file.
11686         * tests/unicase/test-u8-casefold.c: New file.
11687
11688         New module 'unicase/u32-casefold'.
11689         * lib/unicase/u32-casefold.c: New file.
11690         * modules/unicase/u32-casefold: New file.
11691
11692         New module 'unicase/u16-casefold'.
11693         * lib/unicase/u16-casefold.c: New file.
11694         * modules/unicase/u16-casefold: New file.
11695
11696         New module 'unicase/u8-casefold'.
11697         * lib/unicase/u8-casefold.c: New file.
11698         * lib/unicase/u-casefold.h: New file.
11699         * modules/unicase/u8-casefold: New file.
11700
11701         New module 'unicase/tocasefold'.
11702         * lib/unicase/casefold.h: New file.
11703         * lib/unicase/tocasefold.c: New file.
11704         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
11705         * modules/unicase/tocasefold: New file.
11706
11707         Tests for module 'unicase/u32-totitle'.
11708         * modules/unicase/u32-totitle-tests: New file.
11709         * tests/unicase/test-u32-totitle.c: New file.
11710
11711         Tests for module 'unicase/u16-totitle'.
11712         * modules/unicase/u16-totitle-tests: New file.
11713         * tests/unicase/test-u16-totitle.c: New file.
11714
11715         Tests for module 'unicase/u8-totitle'.
11716         * modules/unicase/u8-totitle-tests: New file.
11717         * tests/unicase/test-u8-totitle.c: New file.
11718
11719         New module 'unicase/u32-totitle'.
11720         * lib/unicase/u32-totitle.c: New file.
11721         * modules/unicase/u32-totitle: New file.
11722
11723         New module 'unicase/u16-totitle'.
11724         * lib/unicase/u16-totitle.c: New file.
11725         * modules/unicase/u16-totitle: New file.
11726
11727         New module 'unicase/u8-totitle'.
11728         * lib/unicase/u8-totitle.c: New file.
11729         * lib/unicase/u-totitle.h: New file.
11730         * modules/unicase/u8-totitle: New file.
11731
11732         Tests for module 'unicase/u32-tolower'.
11733         * modules/unicase/u32-tolower-tests: New file.
11734         * tests/unicase/test-u32-tolower.c: New file.
11735
11736         Tests for module 'unicase/u16-tolower'.
11737         * modules/unicase/u16-tolower-tests: New file.
11738         * tests/unicase/test-u16-tolower.c: New file.
11739
11740         Tests for module 'unicase/u8-tolower'.
11741         * modules/unicase/u8-tolower-tests: New file.
11742         * tests/unicase/test-u8-tolower.c: New file.
11743
11744         New module 'unicase/u32-tolower'.
11745         * lib/unicase/u32-tolower.c: New file.
11746         * modules/unicase/u32-tolower: New file.
11747
11748         New module 'unicase/u16-tolower'.
11749         * lib/unicase/u16-tolower.c: New file.
11750         * modules/unicase/u16-tolower: New file.
11751
11752         New module 'unicase/u8-tolower'.
11753         * lib/unicase/u8-tolower.c: New file.
11754         * modules/unicase/u8-tolower: New file.
11755
11756         Tests for module 'unicase/u32-toupper'.
11757         * modules/unicase/u32-toupper-tests: New file.
11758         * tests/unicase/test-u32-toupper.c: New file.
11759
11760         Tests for module 'unicase/u16-toupper'.
11761         * modules/unicase/u16-toupper-tests: New file.
11762         * tests/unicase/test-u16-toupper.c: New file.
11763
11764         Tests for module 'unicase/u8-toupper'.
11765         * modules/unicase/u8-toupper-tests: New file.
11766         * tests/unicase/test-u8-toupper.c: New file.
11767
11768         New module 'unicase/u32-toupper'.
11769         * lib/unicase/u32-toupper.c: New file.
11770         * modules/unicase/u32-toupper: New file.
11771
11772         New module 'unicase/u16-toupper'.
11773         * lib/unicase/u16-toupper.c: New file.
11774         * modules/unicase/u16-toupper: New file.
11775
11776         New module 'unicase/u8-toupper'.
11777         * lib/unicase/u8-toupper.c: New file.
11778         * modules/unicase/u8-toupper: New file.
11779
11780         New module 'unicase/u32-casemap'.
11781         * lib/unicase/u32-casemap.c: New file.
11782         * modules/unicase/u32-casemap: New file.
11783
11784         New module 'unicase/u16-casemap'.
11785         * lib/unicase/u16-casemap.c: New file.
11786         * modules/unicase/u16-casemap: New file.
11787
11788         New module 'unicase/u8-casemap'.
11789         * lib/unicase/unicasemap.h: New file.
11790         * lib/unicase/u8-casemap.c: New file.
11791         * lib/unicase/u-casemap.h: New file.
11792         * modules/unicase/u8-casemap: New file.
11793
11794         New module 'unicase/special-casing'.
11795         * lib/unicase/special-casing.h: New file.
11796         * lib/unicase/special-casing.c: New file.
11797         * lib/unicase/special-casing-table.gperf: New file, generated by
11798         gen-uni-tables.c.
11799         * modules/unicase/special-casing: New file.
11800
11801         Tests for module 'unicase/locale-language'.
11802         * modules/unicase/locale-language-tests: New file.
11803         * tests/unicase/test-locale-language.sh: New file.
11804         * tests/unicase/test-locale-language.c: New file.
11805
11806         New module 'unicase/locale-language'.
11807         * lib/unicase/locale-language.c: New file.
11808         * lib/unicase/locale-languages.gperf: New file.
11809         * modules/unicase/locale-language: New file.
11810
11811         Generate more tables for case conversion and case folding.
11812         * lib/gen-uni-tables.c (SCC_*): New enum items.
11813         (struct special_casing_rule): New type.
11814         (casing_rules, num_casing_rules, allocated_casing_rules): New
11815         variables.
11816         (add_casing_rule, fill_casing_rules): New functions.
11817         (struct casefold_rule): New type.
11818         (casefolding_rules, num_casefolding_rules,
11819         allocated_casefolding_rules): New variables.
11820         (fill_casefolding_rules): New function.
11821         (unicode_casefold): New variable.
11822         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
11823         sort_casing_rules, output_casing_rules): New functions.
11824         (main): Accept to more arguments: SpecialCasing.txt and
11825         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
11826         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
11827         Output mapping for casefolding.
11828
11829         * lib/unicase.h: Include stdbool.h, uninorm.h.
11830         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
11831         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
11832         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
11833         arguments.
11834         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
11835         resultp arguments.
11836         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
11837         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
11838         resultp arguments.
11839         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
11840         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
11841         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
11842         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
11843         declarations.
11844         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
11845
11846 2009-03-08  Bruno Haible  <bruno@clisp.org>
11847
11848         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
11849         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
11850         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
11851         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
11852
11853 2009-03-07  Bruno Haible  <bruno@clisp.org>
11854
11855         Adjust u*_normcmp, u*_normcoll API.
11856         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
11857         u16_normcoll, u32_normcoll): Change failure conventions.
11858         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
11859         errno and return -1.
11860         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
11861
11862 2009-03-07  Bruno Haible  <bruno@clisp.org>
11863
11864         Tests for module 'uninorm/u32-normcoll'.
11865         * modules/uninorm/u32-normcoll-tests: New file.
11866         * tests/uninorm/test-u32-normcoll.c: New file.
11867
11868         Tests for module 'uninorm/u16-normcoll'.
11869         * modules/uninorm/u16-normcoll-tests: New file.
11870         * tests/uninorm/test-u16-normcoll.c: New file.
11871
11872         Tests for module 'uninorm/u8-normcoll'.
11873         * modules/uninorm/u8-normcoll-tests: New file.
11874         * tests/uninorm/test-u8-normcoll.c: New file.
11875
11876 2009-03-07  Bruno Haible  <bruno@clisp.org>
11877
11878         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
11879         tests/uninorm/test-u32-normcmp.c.
11880         * tests/uninorm/test-u32-normcmp.c: Include it.
11881         (test_nonascii): New function, extracted from main. Add some more
11882         tests.
11883         (main): Invoke test_ascii and test_nonascii.
11884         * modules/uninorm/u32-normcmp-tests (Files): Add
11885         tests/uninorm/test-u32-normcmp.h.
11886         (Depends-on): Remove uninorm/u32-normcmp.
11887
11888         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
11889         tests/uninorm/test-u16-normcmp.c.
11890         * tests/uninorm/test-u16-normcmp.c: Include it.
11891         (test_nonascii): New function, extracted from main. Add some more
11892         tests.
11893         (main): Invoke test_ascii and test_nonascii.
11894         * modules/uninorm/u16-normcmp-tests (Files): Add
11895         tests/uninorm/test-u16-normcmp.h.
11896         (Depends-on): Remove uninorm/u16-normcmp.
11897
11898         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
11899         tests/uninorm/test-u8-normcmp.c.
11900         * tests/uninorm/test-u8-normcmp.c: Include it.
11901         (test_nonascii): New function, extracted from main. Add some more
11902         tests.
11903         (main): Invoke test_ascii and test_nonascii.
11904         * modules/uninorm/u8-normcmp-tests (Files): Add
11905         tests/uninorm/test-u8-normcmp.h.
11906         (Depends-on): Remove uninorm/u8-normcmp.
11907
11908 2009-03-07  Bruno Haible  <bruno@clisp.org>
11909
11910         New module 'uninorm/u32-normcoll'.
11911         * lib/uninorm/u32-normcoll.c: New file.
11912         * modules/uninorm/u32-normcoll: New file.
11913
11914         New module 'uninorm/u16-normcoll'.
11915         * lib/uninorm/u16-normcoll.c: New file.
11916         * modules/uninorm/u16-normcoll: New file.
11917
11918         New module 'uninorm/u8-normcoll'.
11919         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
11920         declarations.
11921         * lib/uninorm/u8-normcoll.c: New file.
11922         * lib/uninorm/u-normcoll.h: New file.
11923         * modules/uninorm/u8-normcoll: New file.
11924
11925         New module 'uninorm/u32-normxfrm'.
11926         * lib/uninorm/u32-normxfrm.c: New file.
11927         * modules/uninorm/u32-normxfrm: New file.
11928
11929         New module 'uninorm/u16-normxfrm'.
11930         * lib/uninorm/u16-normxfrm.c: New file.
11931         * modules/uninorm/u16-normxfrm: New file.
11932
11933         New module 'uninorm/u8-normxfrm'.
11934         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
11935         declarations.
11936         * lib/uninorm/u8-normxfrm.c: New file.
11937         * lib/uninorm/u-normxfrm.h: New file.
11938         * modules/uninorm/u8-normxfrm: New file.
11939
11940 2009-03-07  Bruno Haible  <bruno@clisp.org>
11941
11942         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
11943         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
11944         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
11945
11946 2009-03-07  Bruno Haible  <bruno@clisp.org>
11947
11948         New module 'memxfrm'.
11949         * lib/memxfrm.h: New file.
11950         * lib/memxfrm.c: New file.
11951         * modules/memxfrm: New file.
11952
11953 2009-03-07  Bruno Haible  <bruno@clisp.org>
11954
11955         New module 'memcmp2'.
11956         * lib/memcmp2.h: New file.
11957         * lib/memcmp2.c: New file.
11958         * modules/memcmp2: New file.
11959
11960 2009-03-07  Bruno Haible  <bruno@clisp.org>
11961
11962         Tests for module 'uninorm/decomposing-form'.
11963         * modules/uninorm/decomposing-form-tests: New file.
11964         * tests/uninorm/test-decomposing-form.c: New file.
11965
11966         New module 'uninorm/decomposing-form'.
11967         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
11968         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
11969         Add 'decomposing_variant' field.
11970         * lib/uninorm/decomposing-form.c: New file.
11971         * lib/uninorm/nfc.c (uninorm_nfc): Update.
11972         * lib/uninorm/nfd.c (uninorm_nfd): Update.
11973         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
11974         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
11975         * modules/uninorm/decomposing-form: New file.
11976         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
11977         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
11978
11979 2009-03-07  Bruno Haible  <bruno@clisp.org>
11980
11981         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
11982         strings.
11983
11984 2009-03-06  Bruno Haible  <bruno@clisp.org>
11985
11986         Tests for module 'uninorm/u32-normcmp'.
11987         * tests/uninorm/test-u32-normcmp.c: New file.
11988         * modules/uninorm/u32-normcmp-tests: New file.
11989
11990         Tests for module 'uninorm/u16-normcmp'.
11991         * tests/uninorm/test-u16-normcmp.c: New file.
11992         * modules/uninorm/u16-normcmp-tests: New file.
11993
11994         Tests for module 'uninorm/u8-normcmp'.
11995         * tests/uninorm/test-u8-normcmp.c: New file.
11996         * modules/uninorm/u8-normcmp-tests: New file.
11997
11998         New module 'uninorm/u32-normcmp'.
11999         * lib/uninorm/u32-normcmp.c: New file.
12000         * modules/uninorm/u32-normcmp: New file.
12001
12002         New module 'uninorm/u16-normcmp'.
12003         * lib/uninorm/u16-normcmp.c: New file.
12004         * modules/uninorm/u16-normcmp: New file.
12005
12006         New module 'uninorm/u8-normcmp'.
12007         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
12008         declarations.
12009         * lib/uninorm/u8-normcmp.c: New file.
12010         * lib/uninorm/u-normcmp.h: New file.
12011         * modules/uninorm/u8-normcmp: New file.
12012
12013 2009-03-06  Bruno Haible  <bruno@clisp.org>
12014
12015         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
12016         Reported by Eric Blake.
12017
12018 2009-03-06  Eric Blake  <ebb9@byu.net>
12019             Bruno Haible  <bruno@clisp.org>
12020
12021         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
12022         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
12023         condition.
12024         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
12025         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
12026         condition.
12027         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
12028
12029 2009-03-06  Eric Blake  <ebb9@byu.net>
12030
12031         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
12032         to avoid compiler warnings.
12033         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
12034
12035 2009-03-05  Bruno Haible  <bruno@clisp.org>
12036
12037         * tests/test-ftell.c (main): Disable test beyond end of file on
12038         FreeMiNT.
12039         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
12040
12041 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
12042
12043         * lib/filevercmp.c: Move hidden files up in ordering.
12044         * tests/test-filevercmp.c: Add tests for hidden files.
12045
12046 2009-03-04  Bruno Haible  <bruno@clisp.org>
12047
12048         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
12049         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
12050         AM_CFLAGS.
12051         Reported by Simon Josefsson.
12052
12053 2009-03-03  Bruno Haible  <bruno@clisp.org>
12054
12055         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
12056         Reported by Simon Josefsson.
12057
12058         * doc/ld-version-script.texi: Update node reference.
12059
12060 2009-03-03  Bruno Haible  <bruno@clisp.org>
12061
12062         * modules/visibility (License): Change to 'unlimited'.
12063         Suggested by Simon Josefsson.
12064
12065 2009-03-03  Jim Meyering  <meyering@redhat.com>
12066
12067         unlinkdir: cannot_unlink_dir may modify process state
12068         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
12069         it's neither thread-safe nor appropriate for use in a library.
12070
12071 2009-03-03  Eric Blake  <ebb9@byu.net>
12072
12073         test-closein: silence test under Darwin
12074         * tests/test-closein.sh: Ignore stderr from cat, since we don't
12075         care if it dies from EPIPE or EBADF.
12076
12077 2009-03-03  Bruno Haible  <bruno@clisp.org>
12078
12079         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
12080         earlier.
12081         * doc/visibility.texi: Fix @node and @section.
12082
12083 2009-03-03  Simon Josefsson  <simon@josefsson.org>
12084
12085         * doc/gnulib.texi: Link to sections for ld version script and
12086         visibility.
12087         * doc/visibility.texi: Add @node and @section.
12088         * modules/ld-version-script: New module.
12089         * m4/ld-version-script.m4: New file.
12090         * doc/ld-version-script.texi: New file.
12091
12092 2009-03-02  David Lutterkort  <lutter@redhat.com>
12093
12094         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
12095         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12096
12097 2009-03-02  Bruno Haible  <bruno@clisp.org>
12098
12099         * doc/visibility.texi: Mention libtool's -export-symbols option.
12100
12101 2009-03-02  Jim Meyering  <meyering@redhat.com>
12102
12103         announce-gen: new option: --no-print-checksums
12104         * build-aux/announce-gen (usage): Describe it.
12105         (print_checksums): Print a newline here, not in the [*] footnote.
12106         (main): Honor it.
12107
12108 2009-03-01  Bruno Haible  <bruno@clisp.org>
12109
12110         Use socklen_t in the native Windows replacements prototypes.
12111         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
12112         instead of 'int'.
12113         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12114         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12115         * modules/getsockopt (Depends-on): Add socklen.
12116         * modules/setsockopt (Depends-on): Add socklen.
12117
12118 2009-03-01  Bruno Haible  <bruno@clisp.org>
12119
12120         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
12121         least 4.2.
12122
12123 2009-03-01  Eric Blake  <ebb9@byu.net>
12124             Bruno Haible  <bruno@clisp.org>
12125
12126         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
12127         error messages.
12128         * lib/wait-process.c (wait_subprocess): Omit error message about
12129         deadly signal sent to the child of termsigp != NULL.
12130
12131 2009-03-01  Eric Blake  <ebb9@byu.net>
12132
12133         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
12134
12135 2009-03-01  Bruno Haible  <bruno@clisp.org>
12136
12137         Avoid a gcc warning.
12138         * tests/test-sched.c (b): Make global.
12139         Reported by Eric Blake.
12140
12141 2009-01-19  Martin Lambers  <marlam@marlam.de>
12142
12143         Provide POSIX semantics for socket timeout options on W32.
12144         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
12145         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
12146         * modules/setsockopt: Depend on sys_time module for struct timeval.
12147         * modules/getsockopt: Depend on sys_time module for struct timeval.
12148
12149 2009-03-01  Simon Josefsson  <simon@josefsson.org>
12150
12151         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
12152         __USE_GNU, for consistency with netdb.in.h.
12153         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12154
12155 2009-03-01  Bruno Haible  <bruno@clisp.org>
12156
12157         More support for FreeMiNT.
12158         * lib/fseeko.c (rpl_fseeko): Complete last commit.
12159         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12160
12161 2009-03-01  Bruno Haible  <bruno@clisp.org>
12162
12163         More support for FreeMiNT.
12164         * lib/fpurge.c (fpurge): Correct last commit.
12165         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12166
12167 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12168
12169         Fix unportable awk script in vc-list-files.
12170         * build-aux/vc-list-files: In the replacement awk script, use
12171         substr with a second argument of 1, not zero.
12172         Report by Simon Josefsson.
12173
12174 2009-02-28  Bruno Haible  <bruno@clisp.org>
12175
12176         More support for FreeMiNT.
12177         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
12178         to FreeMiNT today.
12179         * lib/fwriting.c (fwriting): Likewise.
12180         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
12181
12182 2009-02-28  Bruno Haible  <bruno@clisp.org>
12183
12184         * tests/test-freadseek.c (main): Disable test beyond end of file on
12185         FreeMiNT.
12186         * tests/test-ftello.c (main): Likewise.
12187         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
12188
12189 2009-02-28  Bruno Haible  <bruno@clisp.org>
12190
12191         Add tentative support for FreeMiNT.
12192         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
12193         * lib/fpurge.c (fpurge): Likewise.
12194         * lib/freadable.c (freadable): Likewise.
12195         * lib/freading.c (freading): Likewise.
12196         * lib/freadptr.c (freadptr): Likewise.
12197         * lib/freadseek.c (freadptrinc): Likewise.
12198         * lib/fseeko.c (rpl_fseeko): Likewise.
12199         * lib/fseterr.c (fseterr): Likewise.
12200         * lib/fwritable.c (fwritable): Likewise.
12201         * lib/fwriting.c (fwriting): Likewise.
12202         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
12203         Hourihane.
12204         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12205
12206 2009-02-28  Bruno Haible  <bruno@clisp.org>
12207
12208         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
12209         SIGCHLD.
12210         Reported by Jim Meyering.
12211
12212 2009-02-28  Bruno Haible  <bruno@clisp.org>
12213
12214         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
12215         Mention the results of these tests on various platforms.
12216         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
12217         order.
12218         * doc/posix-functions/printf.texi: Likewise.
12219         * doc/posix-functions/snprintf.texi: Likewise.
12220         * doc/posix-functions/sprintf.texi: Likewise.
12221         * doc/posix-functions/vfprintf.texi: Likewise.
12222         * doc/posix-functions/vprintf.texi: Likewise.
12223         * doc/posix-functions/vsnprintf.texi: Likewise.
12224         * doc/posix-functions/vsprintf.texi: Likewise.
12225         * doc/glibc-functions/obstack_printf.texi: Likewise.
12226         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12227
12228 2009-02-28  Bruno Haible  <bruno@clisp.org>
12229
12230         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
12231         Reported by Loïc Minier <lool@dooz.org>.
12232
12233 2009-02-27  Bruno Haible  <bruno@clisp.org>
12234
12235         * gnulib-tool (func_import): Make the sed expression used to create the
12236         sed script for updating the .gitignore file POSIX compliant.
12237         Reported by Eric Blake.
12238
12239 2009-02-27  Bruno Haible  <bruno@clisp.org>
12240
12241         * gnulib-tool (sed): Don't alias as "sed --posix".
12242         Reported by Eric Blake.
12243
12244 2009-02-27  Bruno Haible  <bruno@clisp.org>
12245
12246         Avoid test link errors.
12247         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
12248         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
12249         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
12250         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
12251         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12252
12253 2009-02-27  Bruno Haible  <bruno@clisp.org>
12254
12255         Avoid spurious "(cached)" in configure output.
12256         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
12257         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
12258         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12259         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12260         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12261         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12262         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12263         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
12264         Reported by Eric Blake.
12265
12266 2009-02-27  Eric Blake  <ebb9@byu.net>
12267
12268         printf: fix regression in previous patch
12269         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
12270
12271 2009-02-27  Bruno Haible  <bruno@clisp.org>
12272
12273         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
12274         value.
12275         * lib/stdint.in.h: Likewise.
12276         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
12277
12278 2009-02-27  Eric Blake  <ebb9@byu.net>
12279
12280         doc: mention more functions added in cygwin 1.7.0
12281         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
12282         addition.
12283         * doc/posix-functions/open_wmemstream.texi: Likewise.
12284         * doc/posix-functions/wcsnlen.texi: Likewise.
12285         * doc/posix-functions/wcsnrtombs.texi: Likewise.
12286         * doc/posix-functions/wcstod.texi: Likewise.
12287         * doc/posix-functions/wcstof.texi: Likewise.
12288         * doc/posix-functions/wcstoimax.texi: Likewise.
12289         * doc/posix-functions/wcstok.texi: Likewise.
12290         * doc/posix-functions/wcstoumax.texi: Likewise.
12291
12292         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
12293         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
12294         * doc/posix-functions/fprintf.texi: Update.
12295         * doc/posix-functions/printf.texi: Update.
12296         * doc/posix-functions/snprintf.texi: Update.
12297         * doc/posix-functions/sprintf.texi: Update.
12298         * doc/posix-functions/vfprintf.texi: Update.
12299         * doc/posix-functions/vprintf.texi: Update.
12300         * doc/posix-functions/vsnprintf.texi: Update.
12301         * doc/posix-functions/vsprintf.texi: Update.
12302         * doc/glibc-functions/obstack_printf.texi: Update.
12303         * doc/glibc-functions/obstack_vprintf.texi: Update.
12304
12305 2009-02-26  Eric Blake  <ebb9@byu.net>
12306
12307         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
12308         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
12309         compilation bug by using runtime conversion.
12310         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12311         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
12312         * modules/ceill-tests (Files): Use nan.h.
12313         * modules/floorl-tests (Files): Likewise.
12314         * modules/frexpl-tests (Files): Likewise.
12315         * modules/isnanl-tests (Files): Likewise.
12316         * modules/ldexpl-tests (Files): Likewise.
12317         * modules/roundl-tests (Files): Likewise.
12318         * modules/truncl-tests (Files): Likewise.
12319         * tests/test-ceill.c (main): Use a working NaN.
12320         * tests/test-floorl.c (main): Likewise.
12321         * tests/test-frexpl.c (main): Likewise.
12322         * tests/test-isnan.c (test_long_double): Likewise.
12323         * tests/test-isnanl.h (main): Likewise.
12324         * tests/test-ldexpl.h (main): Likewise.
12325         * tests/test-roundl.h (main): Likewise.
12326         * tests/test-truncl.h (main): Likewise.
12327         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
12328
12329 2009-02-26  Eric Blake  <ebb9@byu.net>
12330             Bruno Haible  <bruno@clisp.org>
12331
12332         Work around a *printf bug with %ls on Solaris.
12333         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
12334         precision is specified, sprintf stops converting the wide string
12335         argument when the number of bytes that have been produced by this
12336         conversion equals or exceeds the precision.
12337         * doc/posix-functions/fprintf.texi: Update.
12338         * doc/posix-functions/printf.texi: Update.
12339         * doc/posix-functions/snprintf.texi: Update.
12340         * doc/posix-functions/sprintf.texi: Update.
12341         * doc/posix-functions/vfprintf.texi: Update.
12342         * doc/posix-functions/vprintf.texi: Update.
12343         * doc/posix-functions/vsnprintf.texi: Update.
12344         * doc/posix-functions/vsprintf.texi: Update.
12345         * doc/glibc-functions/obstack_printf.texi: Update.
12346         * doc/glibc-functions/obstack_vprintf.texi: Update.
12347
12348 2009-02-26  Eric Blake  <ebb9@byu.net>
12349
12350         stdlib: favor compiler check of random.h
12351         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
12352         to avoid an ObjC random.h installed by Swarm.
12353
12354 2009-02-26  Bruno Haible  <bruno@clisp.org>
12355
12356         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
12357         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
12358         Reported by Gary V. Vaughan <gary@gnu.org>.
12359
12360 2009-02-26  Bruno Haible  <bruno@clisp.org>
12361
12362         Fix *printf behaviour regarding the %ls directive.
12363         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
12364         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
12365         NEED_PRINTF_DIRECTIVE_LS.
12366         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
12367         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
12368         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12369         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
12370         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
12371         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
12372         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
12373         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12374         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12375         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12376         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12377         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
12378         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12379         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12380         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12381         * doc/posix-functions/fprintf.texi: Update.
12382         * doc/posix-functions/printf.texi: Update.
12383         * doc/posix-functions/snprintf.texi: Update.
12384         * doc/posix-functions/sprintf.texi: Update.
12385         * doc/posix-functions/vfprintf.texi: Update.
12386         * doc/posix-functions/vprintf.texi: Update.
12387         * doc/posix-functions/vsnprintf.texi: Update.
12388         * doc/posix-functions/vsprintf.texi: Update.
12389         * doc/glibc-functions/obstack_printf.texi: Update.
12390         * doc/glibc-functions/obstack_vprintf.texi: Update.
12391         Reported by Eric Blake.
12392
12393 2009-02-25  Bruno Haible  <bruno@clisp.org>
12394
12395         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
12396         with known value.
12397         Reported by Gary V. Vaughan <gary@gnu.org>.
12398
12399 2009-02-25  Bruno Haible  <bruno@clisp.org>
12400
12401         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
12402         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
12403         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
12404         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
12405         Reported by Gary V. Vaughan <gary@gnu.org>.
12406
12407 2009-02-25  Bruno Haible  <bruno@clisp.org>
12408
12409         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
12410         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
12411         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
12412         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
12413         Reported by Gary V. Vaughan <gary@gnu.org>.
12414
12415 2009-02-25  Eric Blake  <ebb9@byu.net>
12416
12417         tests: skip fseek/ftell tests if ungetc is broken
12418         * m4/ungetc.m4: New file.
12419         * modules/fseek-tests: Split test, so ungetc dependency is
12420         separate from rest of test.
12421         * modules/fseeko-tests: Likewise.
12422         * modules/ftell-tests: Likewise.
12423         * modules/ftello-tests: Likewise.
12424         * tests/test-fseek.c (main): Isolate ungetc dependency.
12425         * tests/test-fseeko.c (main): Likewise.
12426         * tests/test-ftell.c (main): Likewise.
12427         * tests/test-ftello.c (main): Likewise.
12428         * tests/test-fseek2.sh: New file.
12429         * tests/test-fseeko2.sh: Likewise.
12430         * tests/test-ftell2.sh: Likewise.
12431         * tests/test-ftello2.sh: Likewise.
12432
12433 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
12434
12435         test-getaddrinfo: fix usage of skip return code 77
12436         * tests/test-gettaddrinfo.c: Return skip code 77 only
12437         for first occurance of skip (4x77 is not 77)
12438
12439 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
12440
12441         strtod: avoid C99 decl-after-statement
12442         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
12443
12444 2009-02-24  Eric Blake  <ebb9@byu.net>
12445
12446         strtod: detect HP-UX 11.31 bug
12447         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
12448         Reported by Gary V. Vaughan.
12449
12450 2009-02-23  Bruno Haible  <bruno@clisp.org>
12451
12452         Fix invalid read past end of memory block.
12453         * lib/vasnprintf.c (DCHAR_SET): Define.
12454         (local_wcslen): Define only when needed.
12455         (local_strnlen, local_wcsnlen): New functions.
12456         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
12457         directives that involve a conversion ourselves.
12458         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
12459         wcsnlen, mbrtowc, wcrtomb.
12460         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
12461         * tests/test-vasprintf-posix.c (test_function): Likewise.
12462         * tests/test-snprintf-posix.h (test_function): Likewise.
12463         * tests/test-sprintf-posix.h (test_function): Likewise.
12464         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12465
12466 2009-02-22  Bruno Haible  <bruno@clisp.org>
12467
12468         Implement new clarified decomposition of Hangul syllables.
12469         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
12470         of type LTV, return only a pairwise decomposition.
12471         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
12472         Likewise.
12473         * tests/uninorm/test-decomposition.c (main): Updated expected result.
12474         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
12475         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
12476
12477 2009-02-22  Bruno Haible  <bruno@clisp.org>
12478
12479         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
12480         zero-length results and shrink excess allocated memory.
12481         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
12482         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
12483         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
12484         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
12485         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
12486         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
12487         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
12488         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
12489         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
12490         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
12491         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
12492         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
12493
12494 2009-02-21  Bruno Haible  <bruno@clisp.org>
12495
12496         * doc/gnulib.texi: Include safe-alloc.texi earlier.
12497         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
12498         spaces after a period. Put a space between a macro name and its
12499         argument list. Trivial rewordings.
12500         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
12501         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
12502         (main): Return 0 explicitly.
12503
12504 2009-02-21  Bruno Haible  <bruno@clisp.org>
12505
12506         Tests for module 'uninorm/filter'.
12507         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
12508         * modules/uninorm/filter-tests: New file.
12509
12510         New module 'uninorm/filter'.
12511         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
12512         uninorm_filter_flush, uninorm_filter_free): New declarations.
12513         * lib/uninorm/uninorm-filter.c: New file.
12514         * modules/uninorm/filter: New file.
12515
12516 2009-02-21  Bruno Haible  <bruno@clisp.org>
12517
12518         Tests for module 'uninorm/nfkc'.
12519         * tests/uninorm/test-nfkc.c: New file.
12520         * tests/uninorm/test-u8-nfkc.c: New file.
12521         * tests/uninorm/test-u16-nfkc.c: New file.
12522         * tests/uninorm/test-u32-nfkc.c: New file.
12523         * tests/uninorm/test-u32-nfkc-big.sh: New file.
12524         * tests/uninorm/test-u32-nfkc-big.c: New file.
12525         * modules/uninorm/nfkc-tests: New file.
12526
12527         New module 'uninorm/nfkc'.
12528         * lib/uninorm/nfkc.c: New file.
12529         * modules/uninorm/nfkc: New file.
12530
12531         Tests for module 'uninorm/nfkd'.
12532         * tests/uninorm/test-nfkd.c: New file.
12533         * tests/uninorm/test-u8-nfkd.c: New file.
12534         * tests/uninorm/test-u16-nfkd.c: New file.
12535         * tests/uninorm/test-u32-nfkd.c: New file.
12536         * tests/uninorm/test-u32-nfkd-big.sh: New file.
12537         * tests/uninorm/test-u32-nfkd-big.c: New file.
12538         * modules/uninorm/nfkd-tests: New file.
12539
12540         New module 'uninorm/nfkd'.
12541         * lib/uninorm/nfkd.c: New file.
12542         * modules/uninorm/nfkd: New file.
12543
12544         Tests for module 'uninorm/nfc'.
12545         * tests/uninorm/test-nfc.c: New file.
12546         * tests/uninorm/test-u8-nfc.c: New file.
12547         * tests/uninorm/test-u16-nfc.c: New file.
12548         * tests/uninorm/test-u32-nfc.c: New file.
12549         * tests/uninorm/test-u32-nfc-big.sh: New file.
12550         * tests/uninorm/test-u32-nfc-big.c: New file.
12551         * modules/uninorm/nfc-tests: New file.
12552
12553         New module 'uninorm/nfc'.
12554         * lib/uninorm/nfc.c: New file.
12555         * modules/uninorm/nfc: New file.
12556
12557         Tests for module 'uninorm/nfd'.
12558         * tests/uninorm/test-nfd.c: New file.
12559         * tests/uninorm/test-u8-nfd.c: New file.
12560         * tests/uninorm/test-u16-nfd.c: New file.
12561         * tests/uninorm/test-u32-nfd.c: New file.
12562         * tests/uninorm/test-u32-nfd-big.sh: New file.
12563         * tests/uninorm/test-u32-nfd-big.c: New file.
12564         * tests/uninorm/test-u32-normalize-big.h: New file.
12565         * tests/uninorm/test-u32-normalize-big.c: New file.
12566         * tests/uninorm/NormalizationTest.txt: New file, created from
12567         Unicode 5.1.0 NormalizationTest.txt.
12568         * modules/uninorm/nfd-tests: New file.
12569
12570         New module 'uninorm/nfd'.
12571         * lib/uninorm/nfd.c: New file.
12572         * modules/uninorm/nfd: New file.
12573
12574         New module 'uninorm/u32-normalize'.
12575         * lib/uninorm/u32-normalize.c: New file.
12576         * modules/uninorm/u32-normalize: New file.
12577
12578         New module 'uninorm/u16-normalize'.
12579         * lib/uninorm/u16-normalize.c: New file.
12580         * modules/uninorm/u16-normalize: New file.
12581
12582         New module 'uninorm/u8-normalize'.
12583         * lib/uninorm/u8-normalize.c: New file.
12584         * lib/uninorm/normalize-internal.h: New file.
12585         * lib/uninorm/u-normalize-internal.h: New file.
12586         * modules/uninorm/u8-normalize: New file.
12587
12588         New module 'uninorm/decompose-internal'.
12589         * lib/uninorm/decompose-internal.c: New file.
12590         * modules/uninorm/decompose-internal: New file.
12591
12592         Tests for module 'uninorm/composition'.
12593         * tests/uninorm/test-composition.c: New file.
12594         * modules/uninorm/composition-tests: New file.
12595
12596         New module 'uninorm/composition'.
12597         * lib/uninorm/composition.c: New file.
12598         * lib/uninorm/composition-table.gperf: New file, generated by
12599         gen-uni-tables.
12600         * modules/uninorm/composition: New file.
12601
12602         Tests for module 'uninorm/compat-decomposition'.
12603         * tests/uninorm/test-compat-decomposition.c: New file.
12604         * modules/uninorm/compat-decomposition-tests: New file.
12605
12606         New module 'uninorm/compat-decomposition'.
12607         * lib/uninorm/decompose-internal.h: New file.
12608         * lib/uninorm/compat-decomposition.c: New file.
12609         * modules/uninorm/compat-decomposition: New file.
12610
12611         Tests for module 'uninorm/canonical-decomposition'.
12612         * tests/uninorm/test-canonical-decomposition.c: New file.
12613         * modules/uninorm/canonical-decomposition-tests: New file.
12614
12615         New module 'uninorm/canonical-decomposition'.
12616         * lib/uninorm/canonical-decomposition.c: New file.
12617         * modules/uninorm/canonical-decomposition: New file.
12618
12619         Tests for module 'uninorm/decomposition'.
12620         * tests/uninorm/test-decomposition.c: New file.
12621         * modules/uninorm/decomposition-tests: New file.
12622
12623         New module 'uninorm/decomposition'.
12624         * lib/uninorm/decomposition.c: New file.
12625         * modules/uninorm/decomposition: New file.
12626
12627         New module 'uninorm/decomposition-table'.
12628         * lib/uninorm/decomposition-table.h: New file.
12629         * lib/uninorm/decomposition-table.c: New file.
12630         * lib/uninorm/decomposition-table1.h: New file, generated by
12631         gen-uni-tables.
12632         * lib/uninorm/decomposition-table2.h: New file, generated by
12633         gen-uni-tables.
12634         * modules/uninorm/decomposition-table: New file.
12635
12636         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
12637         (UC_DECOMP_*): New enumeration items.
12638         (get_decomposition): New function.
12639         (struct decomp_table): New type.
12640         (output_decomposition, output_decomposition_tables): New functions.
12641         (unicode_composition_exclusions): New variable.
12642         (fill_composition_exclusions, debug_output_composition_tables): New
12643         functions.
12644         (main): Accept one more argument. Invoke fill_composition_exclusions.
12645         Output decomposition and composition tables.
12646
12647         New module 'uninorm/base'.
12648         * lib/uninorm.h: New file.
12649         * lib/unictype.h: Update comment.
12650         * modules/uninorm/base: New file.
12651
12652 2009-02-21  David Lutterkort  <lutter@redhat.com>
12653
12654         Tests for module 'safe-alloc'.
12655         * tests/test-safe-alloc.c: New file.
12656         * modules/safe-alloc-tests: New file.
12657
12658         New module 'safe-alloc'.
12659         * lib/safe-alloc.h: New file.
12660         * lib/safe-alloc.c: New file.
12661         * m4/safe-alloc.m4: New file.
12662         * modules/safe-alloc: New file.
12663         * doc/safe-alloc.texi: New file.
12664         * doc/gnulib.texi: Include it.
12665         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12666         safe-alloc.
12667
12668 2009-02-18  Bruno Haible  <bruno@clisp.org>
12669
12670         Fix link error on non-glibc systems.
12671         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
12672         variable.
12673         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12674
12675 2009-02-18  Jim Meyering  <meyering@redhat.com>
12676
12677         fts: avoid used-uninitialized error due to recent change
12678         * lib/fts.c (fts_read): Guard uses of the new member,
12679         parent->fts_n_dirs_remaining, since it's not relevant for
12680         the parent of a directory specified on the command-line.
12681
12682 2009-02-17  James Youngman  <jay@gnu.org>
12683             Bruno Haible  <bruno@clisp.org>
12684
12685         * m4/include_next.m4: Reformulate comment.
12686
12687 2009-02-16  Jim Meyering  <meyering@redhat.com>
12688
12689         fts: add #if guards so that the fts_lgpl module still builds
12690         * lib/fts.c: Guard just-added hash-table-using parts with
12691         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
12692         Reported by Simon Josefsson.
12693
12694 2009-02-15  Bruno Haible  <bruno@clisp.org>
12695
12696         * modules/array-mergesort-tests: New file.
12697         * tests/test-array-mergesort.c: New file.
12698
12699         New module 'array-mergesort'.
12700         * modules/array-mergesort: New file.
12701         * lib/array-mergesort.h: New file.
12702
12703 2009-02-15  Bruno Haible  <bruno@clisp.org>
12704
12705         Fix 2009-02-07 commit.
12706         * lib/gen-uni-tables.c (output_predicate, output_category,
12707         output_combclass, output_bidi_category, output_decimal_digit,
12708         output_digit, output_numeric, output_mirror, output_scripts,
12709         output_ident_category, output_simple_mapping): Fix format directives.
12710         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
12711
12712 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
12713
12714         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
12715         fixes are available from IBM.
12716
12717 2009-02-13  Jim Meyering  <meyering@redhat.com>
12718
12719         fts: arrange not to stat non-directories in more cases
12720         This makes GNU find (when it doesn't need to stat each file)
12721         *much* more efficient at traversing reiserfs file systems.
12722         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
12723         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
12724         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
12725         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
12726         (leaf_optimization_applies): New function.
12727         (LCO_hash, LCO_compare): New helper functions.
12728         (link_count_optimize_ok): New function.
12729         (fts_stat): Initialize new member (if dir).
12730         (fts_read): Decrement parent's fts_n_dirs_remaining count if
12731         we've just stat'ed a directory.  Skip the stat call when possible.
12732         ---
12733         Note this AFS-related exchange:
12734         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
12735         and note find's pioctl call in find/fstype.c.
12736         But that is necessary only if you want to enable the
12737         optimization for AFS, and for now, I don't.
12738
12739         fts: move a function definition "up" (no semantic change)
12740         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
12741         "up" to precede upcoming use of a related function.
12742
12743 2009-02-11  Jim Meyering  <meyering@redhat.com>
12744
12745         fts: correct internal computation of nlinks (optimization-related)
12746         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
12747         whether the current entry is a directory, so don't test it.
12748
12749 2009-02-10  Bruno Haible  <bruno@clisp.org>
12750
12751         Tests for module 'uniwbrk/ulc-wordbreaks'.
12752         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
12753         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
12754         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
12755
12756         Tests for module 'uniwbrk/u32-wordbreaks'.
12757         * modules/uniwbrk/u32-wordbreaks-tests: New file.
12758         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
12759
12760         Tests for module 'uniwbrk/u16-wordbreaks'.
12761         * modules/uniwbrk/u16-wordbreaks-tests: New file.
12762         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
12763
12764         Tests for module 'uniwbrk/u8-wordbreaks'.
12765         * modules/uniwbrk/u8-wordbreaks-tests: New file.
12766         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
12767
12768 2009-02-10  Bruno Haible  <bruno@clisp.org>
12769
12770         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
12771         property.
12772         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
12773         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
12774         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
12775
12776 2009-02-10  Simon Josefsson  <simon@josefsson.org>
12777
12778         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
12779         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
12780
12781 2009-02-10  Bruno Haible  <bruno@clisp.org>
12782
12783         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
12784         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
12785         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
12786         * lib/unilbrk/u8-possible-linebreaks.c: Update.
12787         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
12788         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
12789
12790 2009-02-09  Simon Josefsson  <simon@josefsson.org>
12791
12792         * lib/sockets.h (gl_fd_to_handle): New function.
12793
12794         * tests/test-sockets.c: Call gl_fd_to_handle.
12795
12796 2009-02-09  Bruno Haible  <bruno@clisp.org>
12797
12798         * doc/havelib.texi: Document the conventions on bi-arch systems.
12799
12800 2009-02-08  Bruno Haible  <bruno@clisp.org>
12801
12802         Document the AC_LIB_LINKFLAGS macro.
12803         * doc/havelib.texi: New file, mostly written on 2005-05-24.
12804         * doc/gnulib.texi: Include it.
12805
12806 2009-02-08  Bruno Haible  <bruno@clisp.org>
12807
12808         Fix wrong order of sections, compared to TOC.
12809         * doc/gnulib.texi: Include relocatable-maint.texi after the
12810         "Regular expressions" node, not before.
12811
12812 2009-02-08  Bruno Haible  <bruno@clisp.org>
12813
12814         Tests for module 'unicase/totitle'.
12815         * modules/unicase/totitle-tests: New file.
12816
12817         Tests for module 'unicase/tolower'.
12818         * modules/unicase/tolower-tests: New file.
12819
12820         Tests for module 'unicase/toupper'.
12821         * modules/unicase/toupper-tests: New file.
12822         * tests/unicase/test-mapping-part1.h: New file.
12823         * tests/unicase/test-mapping-part2.h: New file.
12824
12825         New module 'unicase/totitle'.
12826         * modules/unicase/totitle: New file.
12827         * lib/unicase/totitle.c: New file.
12828
12829         New module 'unicase/tolower'.
12830         * modules/unicase/tolower: New file.
12831         * lib/unicase/tolower.c: New file.
12832
12833         New module 'unicase/toupper'.
12834         * modules/unicase/toupper: New file.
12835         * lib/unicase/toupper.c: New file.
12836         * lib/unicase/simple-mapping.h: New file.
12837
12838         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
12839         (mapping_table): New structure.
12840         (output_simple_mapping): New function.
12841         (main): Invoke output_simple_mapping_test and output_simple_mapping.
12842         * modules/gen-uni-tables (Description): Update.
12843         * lib/unicase/toupper.h: New file, automatically generated by
12844         gen-uni-tables.
12845         * lib/unicase/tolower.h: New file, automatically generated by
12846         gen-uni-tables.
12847         * lib/unicase/totitle.h: New file, automatically generated by
12848         gen-uni-tables.
12849         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
12850         gen-uni-tables.
12851         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
12852         gen-uni-tables.
12853         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
12854         gen-uni-tables.
12855
12856         New module 'unicase/base'.
12857         * modules/unicase/base: New file.
12858         * lib/unicase.h: New file.
12859
12860 2009-02-08  Bruno Haible  <bruno@clisp.org>
12861
12862         New module 'uniwbrk/ulc-wordbreaks'.
12863         * modules/uniwbrk/ulc-wordbreaks: New file.
12864         * lib/uniwbrk/ulc-wordbreaks.c: New file.
12865
12866         New module 'uniwbrk/u32-wordbreaks'.
12867         * modules/uniwbrk/u32-wordbreaks: New file.
12868         * lib/uniwbrk/u32-wordbreaks.c: New file.
12869
12870         New module 'uniwbrk/u16-wordbreaks'.
12871         * modules/uniwbrk/u16-wordbreaks: New file.
12872         * lib/uniwbrk/u16-wordbreaks.c: New file.
12873
12874         New module 'uniwbrk/u8-wordbreaks'.
12875         * modules/uniwbrk/u8-wordbreaks: New file.
12876         * lib/uniwbrk/u8-wordbreaks.c: New file.
12877         * lib/uniwbrk/u-wordbreaks.h: New file.
12878
12879         New module 'uniwbrk/table'.
12880         * modules/uniwbrk/table: New file.
12881         * lib/uniwbrk/wbrktable.h: New file.
12882         * lib/uniwbrk/wbrktable.c: New file.
12883
12884         New module 'uniwbrk/wordbreak-property'.
12885         * modules/uniwbrk/wordbreak-property: New file.
12886         * lib/uniwbrk/wordbreak-property.c: New file.
12887
12888         * lib/gen-uni-tables.c (WBP_*): New enum items.
12889         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
12890         (unicode_org_wbp): New variable.
12891         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
12892         New functions.
12893         (wbp_table): New structure.
12894         (output_wbp, output_wbrk_tables): New functions.
12895         (main): Accept additional argument. Invoke fill_org_wbp,
12896         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
12897         output_wbrk_tables.
12898         * modules/gen-uni-tables (Description): Update.
12899         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
12900         gen-uni-tables.
12901
12902         New module 'uniwbrk/base'.
12903         * modules/uniwbrk/base: New file.
12904         * lib/uniwbrk.h: New file.
12905
12906 2009-02-08  Bruno Haible  <bruno@clisp.org>
12907
12908         Update to Unicode 5.1.0.
12909         * lib/gen-uni-tables.c (is_property_alphabetic): Include
12910         U+2185..U+2188.
12911         (is_property_default_ignorable_code_point): Don't include characters
12912         of category Cc or Cs and not-a-characters.
12913         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
12914         U+0D79, U+109E, U+109F, U+A60C.
12915         * lib/unictype/bidi_of.h: Regenerated.
12916         * lib/unictype/blocks.h: Regenerated.
12917         * lib/unictype/categ_C.h: Regenerated.
12918         * lib/unictype/categ_Cf.h: Regenerated.
12919         * lib/unictype/categ_Cn.h: Regenerated.
12920         * lib/unictype/categ_L.h: Regenerated.
12921         * lib/unictype/categ_Ll.h: Regenerated.
12922         * lib/unictype/categ_Lm.h: Regenerated.
12923         * lib/unictype/categ_Lo.h: Regenerated.
12924         * lib/unictype/categ_Lu.h: Regenerated.
12925         * lib/unictype/categ_M.h: Regenerated.
12926         * lib/unictype/categ_Mc.h: Regenerated.
12927         * lib/unictype/categ_Me.h: Regenerated.
12928         * lib/unictype/categ_Mn.h: Regenerated.
12929         * lib/unictype/categ_N.h: Regenerated.
12930         * lib/unictype/categ_Nd.h: Regenerated.
12931         * lib/unictype/categ_Nl.h: Regenerated.
12932         * lib/unictype/categ_No.h: Regenerated.
12933         * lib/unictype/categ_P.h: Regenerated.
12934         * lib/unictype/categ_Pd.h: Regenerated.
12935         * lib/unictype/categ_Pe.h: Regenerated.
12936         * lib/unictype/categ_Pf.h: Regenerated.
12937         * lib/unictype/categ_Pi.h: Regenerated.
12938         * lib/unictype/categ_Po.h: Regenerated.
12939         * lib/unictype/categ_Ps.h: Regenerated.
12940         * lib/unictype/categ_S.h: Regenerated.
12941         * lib/unictype/categ_Sk.h: Regenerated.
12942         * lib/unictype/categ_Sm.h: Regenerated.
12943         * lib/unictype/categ_So.h: Regenerated.
12944         * lib/unictype/categ_of.h: Regenerated.
12945         * lib/unictype/combining.h: Regenerated.
12946         * lib/unictype/ctype_alnum.h: Regenerated.
12947         * lib/unictype/ctype_alpha.h: Regenerated.
12948         * lib/unictype/ctype_graph.h: Regenerated.
12949         * lib/unictype/ctype_lower.h: Regenerated.
12950         * lib/unictype/ctype_print.h: Regenerated.
12951         * lib/unictype/ctype_punct.h: Regenerated.
12952         * lib/unictype/ctype_upper.h: Regenerated.
12953         * lib/unictype/decdigit.h: Regenerated.
12954         * lib/unictype/digit.h: Regenerated.
12955         * lib/unictype/mirror.h: Regenerated.
12956         * lib/unictype/numeric.h: Regenerated.
12957         * lib/unictype/pr_alphabetic.h: Regenerated.
12958         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
12959         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
12960         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
12961         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
12962         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
12963         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
12964         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
12965         * lib/unictype/pr_combining.h: Regenerated.
12966         * lib/unictype/pr_dash.h: Regenerated.
12967         * lib/unictype/pr_decimal_digit.h: Regenerated.
12968         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
12969         * lib/unictype/pr_deprecated.h: Regenerated.
12970         * lib/unictype/pr_diacritic.h: Regenerated.
12971         * lib/unictype/pr_extender.h: Regenerated.
12972         * lib/unictype/pr_format_control.h: Regenerated.
12973         * lib/unictype/pr_grapheme_base.h: Regenerated.
12974         * lib/unictype/pr_grapheme_extend.h: Regenerated.
12975         * lib/unictype/pr_grapheme_link.h: Regenerated.
12976         * lib/unictype/pr_id_continue.h: Regenerated.
12977         * lib/unictype/pr_id_start.h: Regenerated.
12978         * lib/unictype/pr_ideographic.h: Regenerated.
12979         * lib/unictype/pr_ignorable_control.h: Regenerated.
12980         * lib/unictype/pr_lowercase.h: Regenerated.
12981         * lib/unictype/pr_math.h: Regenerated.
12982         * lib/unictype/pr_numeric.h: Regenerated.
12983         * lib/unictype/pr_other_alphabetic.h: Regenerated.
12984         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
12985         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
12986         * lib/unictype/pr_other_id_continue.h: Regenerated.
12987         * lib/unictype/pr_other_lowercase.h: Regenerated.
12988         * lib/unictype/pr_other_math.h: Regenerated.
12989         * lib/unictype/pr_punctuation.h: Regenerated.
12990         * lib/unictype/pr_sentence_terminal.h: Regenerated.
12991         * lib/unictype/pr_soft_dotted.h: Regenerated.
12992         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
12993         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
12994         * lib/unictype/pr_unified_ideograph.h: Regenerated.
12995         * lib/unictype/pr_uppercase.h: Regenerated.
12996         * lib/unictype/pr_xid_continue.h: Regenerated.
12997         * lib/unictype/pr_xid_start.h: Regenerated.
12998         * lib/unictype/pr_zero_width.h: Regenerated.
12999         * lib/unictype/scripts.h: Regenerated.
13000         * lib/unictype/scripts_byname.gperf: Regenerated.
13001         * lib/unictype/sy_java_ident.h: Regenerated.
13002         * lib/unilbrk/lbrkprop1.h: Regenerated.
13003         * lib/unilbrk/lbrkprop2.h: Regenerated.
13004         * tests/unictype/test-categ_C.c: Regenerated.
13005         * tests/unictype/test-categ_Cf.c: Regenerated.
13006         * tests/unictype/test-categ_Cn.c: Regenerated.
13007         * tests/unictype/test-categ_L.c: Regenerated.
13008         * tests/unictype/test-categ_Ll.c: Regenerated.
13009         * tests/unictype/test-categ_Lm.c: Regenerated.
13010         * tests/unictype/test-categ_Lo.c: Regenerated.
13011         * tests/unictype/test-categ_Lu.c: Regenerated.
13012         * tests/unictype/test-categ_M.c: Regenerated.
13013         * tests/unictype/test-categ_Mc.c: Regenerated.
13014         * tests/unictype/test-categ_Me.c: Regenerated.
13015         * tests/unictype/test-categ_Mn.c: Regenerated.
13016         * tests/unictype/test-categ_N.c: Regenerated.
13017         * tests/unictype/test-categ_Nd.c: Regenerated.
13018         * tests/unictype/test-categ_Nl.c: Regenerated.
13019         * tests/unictype/test-categ_No.c: Regenerated.
13020         * tests/unictype/test-categ_P.c: Regenerated.
13021         * tests/unictype/test-categ_Pd.c: Regenerated.
13022         * tests/unictype/test-categ_Pe.c: Regenerated.
13023         * tests/unictype/test-categ_Pf.c: Regenerated.
13024         * tests/unictype/test-categ_Pi.c: Regenerated.
13025         * tests/unictype/test-categ_Po.c: Regenerated.
13026         * tests/unictype/test-categ_Ps.c: Regenerated.
13027         * tests/unictype/test-categ_S.c: Regenerated.
13028         * tests/unictype/test-categ_Sk.c: Regenerated.
13029         * tests/unictype/test-categ_Sm.c: Regenerated.
13030         * tests/unictype/test-categ_So.c: Regenerated.
13031         * tests/unictype/test-ctype_alnum.c: Regenerated.
13032         * tests/unictype/test-ctype_alpha.c: Regenerated.
13033         * tests/unictype/test-ctype_graph.c: Regenerated.
13034         * tests/unictype/test-ctype_lower.c: Regenerated.
13035         * tests/unictype/test-ctype_print.c: Regenerated.
13036         * tests/unictype/test-ctype_punct.c: Regenerated.
13037         * tests/unictype/test-ctype_upper.c: Regenerated.
13038         * tests/unictype/test-decdigit.h: Regenerated.
13039         * tests/unictype/test-digit.h: Regenerated.
13040         * tests/unictype/test-numeric.h: Regenerated.
13041         * tests/unictype/test-pr_alphabetic.c: Regenerated.
13042         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
13043         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
13044         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
13045         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
13046         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
13047         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
13048         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
13049         * tests/unictype/test-pr_combining.c: Regenerated.
13050         * tests/unictype/test-pr_dash.c: Regenerated.
13051         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
13052         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
13053         * tests/unictype/test-pr_deprecated.c: Regenerated.
13054         * tests/unictype/test-pr_diacritic.c: Regenerated.
13055         * tests/unictype/test-pr_extender.c: Regenerated.
13056         * tests/unictype/test-pr_format_control.c: Regenerated.
13057         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
13058         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
13059         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
13060         * tests/unictype/test-pr_id_continue.c: Regenerated.
13061         * tests/unictype/test-pr_id_start.c: Regenerated.
13062         * tests/unictype/test-pr_ideographic.c: Regenerated.
13063         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
13064         * tests/unictype/test-pr_lowercase.c: Regenerated.
13065         * tests/unictype/test-pr_math.c: Regenerated.
13066         * tests/unictype/test-pr_numeric.c: Regenerated.
13067         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
13068         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
13069         Regenerated.
13070         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
13071         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
13072         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
13073         * tests/unictype/test-pr_other_math.c: Regenerated.
13074         * tests/unictype/test-pr_punctuation.c: Regenerated.
13075         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
13076         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
13077         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
13078         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
13079         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
13080         * tests/unictype/test-pr_uppercase.c: Regenerated.
13081         * tests/unictype/test-pr_xid_continue.c: Regenerated.
13082         * tests/unictype/test-pr_xid_start.c: Regenerated.
13083         * tests/unictype/test-pr_zero_width.c: Regenerated.
13084
13085         Update to Unicode 5.1.0.
13086         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
13087         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
13088         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
13089         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
13090         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
13091         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
13092         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
13093         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
13094         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
13095         (nonspacing_table_ind): Update.
13096         * tests/uniwidth/test-uc_width2.sh: Update expected result.
13097
13098         Update to Unicode 5.1.0.
13099         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
13100         code transform.
13101         * lib/uniname/uniname.c (unicode_character_name,
13102         unicode_name_character): Add the range 0x1Fxxx to the code transform.
13103         * lib/uniname/uninames.h: Regenerated.
13104         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
13105
13106 2009-02-07  Bruno Haible  <bruno@clisp.org>
13107
13108         Merge gen-ctype and gen-lbrk into a single program.
13109         * lib/gen-uni-tables.c: New file, incorporating
13110         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
13111         Add directory prefixes to the names of the generated files.
13112         * lib/unictype/gen-ctype.c: Remove file.
13113         * lib/unilbrk/gen-lbrk.c: Remove file.
13114         * modules/gen-uni-tables: New file.
13115         * modules/unictype/gen-ctype: Remove file.
13116         * modules/unilbrk/gen-lbrk: Remove file.
13117
13118 2009-02-07  Bruno Haible  <bruno@clisp.org>
13119
13120         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
13121
13122         New module 'unistr/u32-strcoll'.
13123         * modules/unistr/u32-strcoll: New file.
13124         * lib/unistr/u32-strcoll.c: New file.
13125
13126         New module 'unistr/u16-strcoll'.
13127         * modules/unistr/u16-strcoll: New file.
13128         * lib/unistr/u16-strcoll.c: New file.
13129
13130         New module 'unistr/u8-strcoll'.
13131         * modules/unistr/u8-strcoll: New file.
13132         * lib/unistr/u8-strcoll.c: New file.
13133         * lib/unistr/u-strcoll.h: New file.
13134
13135 2009-02-07  Bruno Haible  <bruno@clisp.org>
13136
13137         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
13138         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
13139         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
13140         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
13141         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
13142         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
13143
13144 2009-02-07  Bruno Haible  <bruno@clisp.org>
13145
13146         Make 64-bit clean.
13147         * lib/unictype/gen-ctype.c (output_predicate, output_category,
13148         output_combclass, output_bidi_category, output_decimal_digit,
13149         output_digit, output_numeric, output_mirror, output_scripts,
13150         output_ident_category): Use proper width specifier in format strings.
13151
13152 2009-02-07  Bruno Haible  <bruno@clisp.org>
13153
13154         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
13155         failure behaviour.
13156
13157 2009-02-07  Jim Meyering  <meyering@redhat.com>
13158
13159         regex: avoid compilation failure with upcoming gcc-4.4
13160         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
13161         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
13162         "... error: integer overflow in preprocessor expression".
13163
13164 2009-02-05  Ben Pfaff  <blp@gnu.org>
13165
13166         Fix link errors on Windows when close module is used.
13167         * modules/close: Add $(LIB_CLOSE) to Link section.
13168         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
13169         $(LIB_CLOSE) on Windows.
13170
13171 2009-02-05  Jim Meyering  <meyering@redhat.com>
13172
13173         still avoid unused-parameter warnings, but do it cleanly
13174         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
13175         (get_fs_usage): Cast to void instead.
13176         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
13177         (dev_from_mount_options, read_file_system_list): Cast to void.
13178         Prompted by Bruno Haible.
13179
13180 2009-02-04  Jim Meyering  <meyering@redhat.com>
13181
13182         fsusage.c: correct copyright year
13183         * lib/fsusage.c: Reflect year in which the change is pushed into
13184
13185         avoid misc. warnings
13186         * lib/fsusage.c (UNUSED_PARAM): Define.
13187         (get_fs_usage): Mark parameter "disk" as unused.
13188         * lib/getugroups.c (getgrent): Use "void" in prototype.
13189         * lib/mountlist.c: Mark unused parameters.
13190         (read_file_system_list): Declare a local with "const".
13191         * lib/nanosleep.c (getnow): Declare static.
13192         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
13193
13194         dirfd: set errno upon failure
13195         * lib/dirfd.c: Include <errno.h>.
13196         Set errno to ENOTSUP when returning -1.
13197         * modules/dirfd (Depends-on): Add errno.
13198         Suggested by John Kodis <kodis@comcast.net>.
13199
13200 2009-02-01  Bruno Haible  <bruno@clisp.org>
13201
13202         Don't assume sizeof (long) >= sizeof (void *).
13203         * lib/memcmp.c: Include stdint.h.
13204         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
13205         srcp2 to 'const byte *'.
13206         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
13207         types to uintptr_t.
13208         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
13209         * modules/memcmp (Depends-on): Add stdint.
13210         Reported by Ozkan Sezer <sezeroz@gmail.com>.
13211
13212 2009-01-30  Eric Blake  <ebb9@byu.net>
13213
13214         fix more require-before-expand issues
13215         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
13216         expand, AC_PROG_AWK.
13217         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
13218
13219 2009-01-28  Eric Blake  <ebb9@byu.net>
13220
13221         version-etc: use consistent URL formatting
13222         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
13223         Improve formatting.  Use fputs for string without %.
13224
13225 2009-01-28  Jim Meyering  <meyering@redhat.com>
13226
13227         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
13228         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
13229         "underquoted definition of NAME" from autoconf-2.59.
13230
13231 2009-01-28  Bruno Haible  <bruno@clisp.org>
13232
13233         * doc/gnulib.texi: Add "Obsolete modules" to index.
13234
13235 2009-01-28  Jim Meyering  <meyering@redhat.com>
13236
13237         useless-if-before-free: recognize more variants
13238         * build-aux/useless-if-before-free: Also recognize e.g.,
13239         if (NULL != p) free (p);
13240
13241 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
13242
13243         test-getaddrinfo: skip (don't fail) this test when there's no network
13244         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
13245         on the presumption that it means you lack network access.
13246
13247 2009-01-26  Jim Meyering  <meyering@redhat.com>
13248
13249         fflush: avoid warnings on modern systems
13250         * lib/fflush.c (rpl_fflush): Move declarations of locals,
13251         pos and result, into scopes where they're used.
13252
13253 2009-01-26  Eric Blake  <ebb9@byu.net>
13254
13255         Silence warning reintroduced by recent extensions patch.
13256         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
13257         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
13258         autoconf.
13259
13260         Backport improved autoconf semantics of AC_DEFUN_ONCE.
13261         * m4/00gnulib.m4: New file.
13262         * gnulib-tool (func_get_filelist): Always use it.
13263         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
13264         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
13265
13266 2009-01-25  Bruno Haible  <bruno@clisp.org>
13267
13268         Make test-quotearg work on MacOS X and AIX.
13269         * tests/test-quotearg.sh: New file.
13270         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
13271         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
13272         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
13273         include <libintl.h>.
13274         (fake_locale): Remove variable.
13275         (gettext, dgettext, dcgettext): Remove functions.
13276         (main): Instead of setting a fake locale, set a real locale. Call
13277         textdomain and bindtextdomain.
13278         * modules/quotearg-tests (Files): Add the new files.
13279         (Depends-on): Add gettext, setenv, unsetenv.
13280         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
13281         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
13282         Augment TESTS_ENVIRONMENT.
13283
13284 2009-01-25  Bruno Haible  <bruno@clisp.org>
13285
13286         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
13287         fr_FR.ISO8859-1 locale on MacOS X.
13288         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
13289         ja_JP.eucJP locale on MacOS X.
13290         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
13291         zh_CN.GB18030 locale on MacOS X.
13292
13293 2009-01-25  Bruno Haible  <bruno@clisp.org>
13294
13295         Avoid link errors on MacOS X 10.3.
13296         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
13297         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13298
13299 2009-01-25  Bruno Haible  <bruno@clisp.org>
13300
13301         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
13302         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
13303         * modules/pipe (Files): Remove m4/posix_spawn.m4.
13304         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
13305         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
13306         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
13307         posix_spawnattr_init, posix_spawnattr_setsigmask,
13308         posix_spawnattr_setflags, posix_spawnattr_destroy.
13309
13310         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
13311         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
13312         * modules/execute (Files): Remove m4/posix_spawn.m4.
13313         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
13314         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
13315         posix_spawnattr_init, posix_spawnattr_setsigmask,
13316         posix_spawnattr_setflags, posix_spawnattr_destroy.
13317
13318 2009-01-25  Bruno Haible  <bruno@clisp.org>
13319
13320         * lib/glthread/threadlib.c: Include <stdlib.h>.
13321
13322 2009-01-25  Bruno Haible  <bruno@clisp.org>
13323
13324         * lib/glthread/threadlib.c (dummy): New declaration.
13325
13326 2009-01-25  Bruno Haible  <bruno@clisp.org>
13327
13328         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
13329         multibyte characters also for the GB18030 encoding. Don't crash when
13330         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
13331
13332 2009-01-25  Bruno Haible  <bruno@clisp.org>
13333
13334         Avoid redefining 'struct random_data' on OSF/1 5.1.
13335         * lib/stdlib.in.h: Include <random.h> if it exists.
13336         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
13337         HAVE_RANDOM_H. Include <random.h> when testing whether
13338         'struct random_data' exists.
13339         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
13340
13341 2009-01-25  Bruno Haible  <bruno@clisp.org>
13342
13343         Don't install charset.alias on MacOS X >= 10.3.
13344         * lib/localcharset.c (DARWIN7): New macro.
13345         (get_charset_aliases): Hardcode the result for Darwin7.
13346         * modules/localcharset (install-exec-local): Don't install
13347         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
13348
13349 2009-01-25  Bruno Haible  <bruno@clisp.org>
13350
13351         Don't install charset.alias on mingw and Cygwin.
13352         * modules/localcharset (install-exec-local): Don't install
13353         charset.alias on mingw and Cygwin, if the file does not yet exist.
13354         The result for these platforms is hardcoded in localcharset.c.
13355
13356 2009-01-25  Bruno Haible  <bruno@clisp.org>
13357
13358         Make it possible again to use AC_GNU_SOURCE together with gnulib.
13359         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
13360         before requiring AC_USE_SYSTEM_EXTENSIONS.
13361
13362 2009-01-25  Jim Meyering  <meyering@redhat.com>
13363
13364         c-strtod: avoid warnings
13365         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
13366         "assignment discards qualifiers from pointer target type" warnings.
13367
13368 2009-01-24  Bruno Haible  <bruno@clisp.org>
13369
13370         Add support for non-UTF-8 locales on MacOS X.
13371         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
13372         canonical encodings. For Darwin 7 and newer, don't map traditional
13373         encodings to UTF-8.
13374         Reported by Vincent Lefevre <vincent@vinc17.org>
13375         at <http://savannah.gnu.org/bugs/?25235>.
13376
13377 2009-01-24  Bruno Haible  <bruno@clisp.org>
13378
13379         * doc/gnulib.texi (Obsolete modules): New section.
13380         Reported by Mike Frysinger <vapier@gentoo.org>.
13381
13382 2009-01-24  Bruno Haible  <bruno@clisp.org>
13383
13384         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
13385         (%.dvi): New rule.
13386
13387 2009-01-24  Bruno Haible  <bruno@clisp.org>
13388
13389         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
13390         Reported by Eric Blake.
13391
13392 2009-01-24  Bruno Haible  <bruno@clisp.org>
13393
13394         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
13395         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
13396         Reported by Gary V. Vaughan <gary@gnu.org>.
13397
13398 2009-01-24  Bruno Haible  <bruno@clisp.org>
13399
13400         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
13401
13402 2009-01-23  Bruno Haible  <bruno@clisp.org>
13403
13404         Make c-strtod, c-strtold usable in libraries.
13405         * lib/c-strtod.c: Include string.h instead of xalloc.h.
13406         (C_STRTOD): Call strdup instead of xstrdup.
13407         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
13408         * modules/c-strtold (Depends-on): Likewise.
13409         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
13410         * NEWS: Mention the change.
13411         Reported by Michael Gold <mgold@ncf.ca>.
13412
13413 2009-01-23  Jim Meyering  <meyering@redhat.com>
13414
13415         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
13416         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
13417         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
13418
13419 2009-01-23  Simon Josefsson  <simon@josefsson.org>
13420
13421         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
13422         GNU CoreUtils.
13423         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
13424         * modules/version-etc (Description): Update.
13425
13426 2009-01-22  Bruno Haible  <bruno@clisp.org>
13427
13428         Cache the C locale object.
13429         * lib/c-strtod.c (c_locale_cache): New variable.
13430         (c_locale): New function.
13431         (C_STRTOD): Use it, and don't call freelocale.
13432         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
13433         Suggested by Paolo Bonzini.
13434
13435 2009-01-21  Bruno Haible  <bruno@clisp.org>
13436
13437         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
13438         conditions other than overflow.
13439
13440 2009-01-21  Bruno Haible  <bruno@clisp.org>
13441
13442         * lib/c-strtod.c: Include errno.h.
13443         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
13444         value from STRTOD_L and STRTOD.
13445
13446 2009-01-21  Bruno Haible  <bruno@clisp.org>
13447         and Jim Meyering  <meyering@redhat.com>
13448
13449         nanosleep: skip configure test (fail it) for apple universal builds
13450         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
13451         universal builds, assume that nanosleep does not work.
13452         * modules/nanosleep (Depends-on): Add multiarch.
13453
13454         mktime: skip configure test (fail it) for apple universal builds
13455         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
13456         universal builds, assume that mktime does not work.
13457         * modules/mktime (Depends-on): Add multiarch.
13458
13459 2009-01-21  Eric Blake  <ebb9@byu.net>
13460
13461         multiarch: avoid expand-before-require warning
13462         * modules/multiarch (configure.ac): Require, rather than expand,
13463         gl_MULTIARCH.
13464         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
13465         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
13466         enforce that all clients require it.  Partial reversion of
13467         2008-12-29 patch.
13468
13469         error: avoid expand-before-require warning
13470         * modules/errno (configure.ac): Require, rather than expand,
13471         gl_HEADER_ERRNO_H.
13472         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
13473         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
13474         enforce that all clients require it.
13475
13476         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
13477         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
13478         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
13479         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
13480
13481 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
13482
13483         Revert:
13484         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
13485
13486         regex: do not depend on obsolete modules.
13487         * modules/regex: Remove memcmp and memmove.
13488
13489 2009-01-20  Bruno Haible  <bruno@clisp.org>
13490
13491         Make the 'link' module link on Windows NT 4.
13492         * lib/link.c (_WIN32_WINNT): Don't define.
13493         (CreateHardLinkFuncType): New type.
13494         (CreateHardLinkFunc, initialized): New variables.
13495         (initialize): New function.
13496         (link): Invoke CreateHardLink indirectly through the function pointer.
13497
13498 2009-01-20  Bruno Haible  <bruno@clisp.org>
13499
13500         Fix compilation failure on mingw.
13501         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
13502
13503 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
13504
13505         * doc/c-strtod.texi: Mention a couple of restrictions.
13506
13507 2009-01-20  Jim Meyering  <meyering@redhat.com>
13508
13509         gettimeofday: move more declarations out of functions
13510         * lib/gettimeofday.c: Move extern declarations of tzset and
13511         gmtime out of containing functions.  Prompted by Bruno Haible.
13512
13513 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
13514
13515         regex: do not depend on obsolete modules.
13516         * modules/regex: Remove memcmp and memmove.
13517
13518 2009-01-19  Bruno Haible  <bruno@clisp.org>
13519
13520         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
13521         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
13522         gl_BIGENDIAN, not AC_C_BIGENDIAN.
13523         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
13524         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
13525
13526 2009-01-19  Bruno Haible  <bruno@clisp.org>
13527
13528         * tests/test-link.c: Include <errno.h>.
13529         (main): Exit with code 77 when a hard link cannot be created due to
13530         the file system.
13531         * tests/test-link.sh: Skip test when a hard link cannot be created due
13532         to the file system.
13533         Suggested by Eric Blake.
13534
13535 2009-01-19  Martin Lambers  <marlam@marlam.de>
13536
13537         * modules/link-tests: New file.
13538         * tests/test-link.sh: New file.
13539         * tests/test-link.c: New file.
13540
13541 2009-01-19  Eric Blake  <ebb9@byu.net>
13542
13543         doc: mention another function added in cygwin 1.7.0
13544         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
13545         Another new function in cygwin 1.7.
13546
13547 2009-01-19  Bruno Haible  <bruno@clisp.org>
13548
13549         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
13550         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
13551         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
13552         gl_BIGENDIAN, not AC_C_BIGENDIAN.
13553         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13554         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
13555         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13556         * m4/md4.m4 (gl_MD4): Likewise.
13557         * m4/md5.m4 (gl_MD5): Likewise.
13558         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
13559         * m4/sha1.m4 (gl_SHA1): Likewise.
13560         * m4/sha256.m4 (gl_SHA256): Likewise.
13561         * m4/sha512.m4 (gl_SHA512): Likewise.
13562
13563 2009-01-19  Bruno Haible  <bruno@clisp.org>
13564
13565         * modules/uniname/uniname-tests (Depends-on): Add progname.
13566         * tests/uniname/test-uninames.c: Include progname.h.
13567         (main): Call set_program_name.
13568
13569         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
13570         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
13571         (main): Call set_program_name.
13572
13573         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
13574         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
13575         (main): Call set_program_name.
13576
13577         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
13578         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
13579         (main): Call set_program_name.
13580
13581         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
13582         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
13583         (main): Call set_program_name.
13584
13585         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
13586         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
13587         (main): Call set_program_name.
13588
13589         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
13590         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
13591         (main): Call set_program_name.
13592
13593         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
13594         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
13595         (main): Call set_program_name.
13596
13597         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
13598         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
13599         (main): Call set_program_name.
13600
13601 2009-01-19  Eric Blake  <ebb9@byu.net>
13602
13603         test-unistd: test previous patch
13604         * tests/test-unistd.c: Test *_FILENO macros.
13605
13606         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
13607         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13608         Guarantee a definition.
13609         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
13610         * modules/unistd-safer (Depends-on): Add dependency on unistd.
13611         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
13612         * lib/dup-safer.c (STDERR_FILENO): Likewise.
13613         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13614         Likewise.
13615         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
13616         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
13617         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13618         Likewise.
13619         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
13620         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
13621         (STDERR_FILENO): Likewise.
13622         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
13623         (STDERR_FILENO): Likewise.
13624         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
13625         (STDERR_FILENO): Likewise.
13626         Reported by Elbert Pol.
13627
13628 2009-01-19  Eric Blake  <ebb9@byu.net>
13629
13630         doc: mention more functions added in cygwin 1.7.0
13631         * doc/posix-functions/abort.texi (abort): Update wording related
13632         to cygwin.
13633         * doc/posix-functions/daylight.texi (daylight): Likewise.
13634         * doc/posix-functions/optarg.texi (optarg): Likewise.
13635         * doc/posix-functions/optarg.texi (opterr): Likewise.
13636         * doc/posix-functions/optarg.texi (optind): Likewise.
13637         * doc/posix-functions/optarg.texi (optopt): Likewise.
13638         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
13639         worked in 1.5.x, and was withdrawn in 1.7.
13640         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13641         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
13642         cygwin versions.
13643         * doc/posix-functions/perror.texi (perror): Likewise.
13644         * doc/posix-functions/printf.texi (printf): Likewise.
13645         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
13646         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
13647         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13648         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13649         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13650         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
13651         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
13652         Likewise.
13653         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
13654         Likewise.
13655         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
13656         this function.
13657         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
13658         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
13659         Likewise.
13660         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
13661         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
13662         * doc/posix-functions/confstr.texi (confstr): Likewise.
13663         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
13664         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
13665         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
13666         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
13667         * doc/posix-functions/fputws.texi (fputws): Likewise.
13668         * doc/posix-functions/fwide.texi (fwide): Likewise.
13669         * doc/posix-functions/getwc.texi (getwc): Likewise.
13670         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
13671         * doc/posix-functions/putwc.texi (putwc): Likewise.
13672         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
13673         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
13674         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
13675         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
13676         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
13677         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
13678         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
13679         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
13680         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
13681         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
13682         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
13683
13684 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
13685
13686         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
13687         * lib/ioctl.c: Include <sys/ioctl.h>.
13688
13689 2009-01-19  Simon Josefsson  <simon@josefsson.org>
13690
13691         * modules/getdate-tests (Depends-on): Add progname.
13692         * tests/test-getdate.c: Use progname module, to avoid link errors
13693         on non-glibc systems.
13694
13695 2009-01-18  Simon Josefsson  <simon@josefsson.org>
13696
13697         * modules/filenamecat-tests (Depends-on): Add progname.
13698         * modules/fstrcmp-tests (Depends-on): Likewise.
13699
13700         * tests/test-filenamecat.c: Use progname module, to avoid link
13701         errors on non-glibc systems.
13702         * tests/test-fstrcmp.c: Likewise.
13703
13704 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
13705
13706         gettimeofday: avoid warning: nested extern declaration of 'localtime'
13707         * lib/gettimeofday.c: Move extern declaration out of function.
13708
13709 2009-01-18  Bruno Haible  <bruno@clisp.org>
13710
13711         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
13712         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
13713         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
13714
13715 2009-01-18  Bruno Haible  <bruno@clisp.org>
13716
13717         * lib/strftime.c (MEMPCPY): Remove unused macro.
13718         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
13719
13720 2009-01-18  Martin Lambers  <marlam@marlam.de>
13721
13722         New module 'link'.
13723         * lib/unistd.in.h (link): New declaration.
13724         * lib/link.c: New file.
13725         * m4/link.m4: New file.
13726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
13727         HAVE_LINK.
13728         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
13729         * modules/link: New file.
13730         * doc/posix-functions/link.texi: Mention the new module.
13731
13732 2009-01-18  Bruno Haible  <bruno@clisp.org>
13733
13734         * tests/test-avltree_list.c (main): Call set_program_name.
13735         * tests/test-avltree_oset.c (main): Likewise.
13736         * tests/test-obstack-printf.c: Include progname.h.
13737         (main): Call set_program_name.
13738         * tests/test-quotearg.c: Include progname.h.
13739         (main): Call set_program_name.
13740         * tests/test-xmemdup0.c: Include progname.h.
13741         (main): Call set_program_name.
13742
13743 2009-01-18  Bruno Haible  <bruno@clisp.org>
13744
13745         New module 'alphasort'.
13746         * lib/dirent.in.h (alphasort): New declaration.
13747         * lib/alphasort.c: New file, from glibc with modifications.
13748         * m4/alphasort.m4: New file.
13749         * modules/alphasort: New file.
13750         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
13751         HAVE_ALPHASORT.
13752         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
13753         HAVE_ALPHASORT.
13754         * doc/posix-functions/alphasort.texi: Mention the new module and the
13755         portability problems.
13756
13757 2009-01-18  Bruno Haible  <bruno@clisp.org>
13758
13759         New module 'scandir'.
13760         * lib/dirent.in.h (scandir): New declaration.
13761         * lib/scandir.c: New file, from glibc with modifications.
13762         * m4/scandir.m4: New file.
13763         * modules/scandir: New file.
13764         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
13765         HAVE_SCANDIR.
13766         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
13767         HAVE_SCANDIR.
13768         * doc/posix-functions/scandir.texi: Mention the new module and the
13769         portability problems.
13770
13771 2009-01-17  Bruno Haible  <bruno@clisp.org>
13772
13773         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
13774         Update documentation.
13775         (func_remove_suffix): Escape all dots in the suffix. Update
13776         documentation.
13777         (func_filter_filelist): Update documentation.
13778         Reported by Ralf Wildenhues.
13779
13780 2009-01-17  Bruno Haible  <bruno@clisp.org>
13781
13782         * modules/dprintf-posix-tests: New file.
13783         * tests/test-dprintf-posix.sh: New file.
13784         * tests/test-dprintf-posix.c: New file.
13785
13786         New modules 'dprintf', 'dprintf-posix'.
13787         * lib/stdio.in.h (dprintf): New declaration.
13788         * lib/dprintf.c: New file.
13789         * m4/dprintf.m4: New file.
13790         * m4/dprintf-posix.m4: New file.
13791         * modules/dprintf: New file.
13792         * modules/dprintf-posix: New file.
13793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
13794         HAVE_DPRINTF, REPLACE_DPRINTF.
13795         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
13796         HAVE_DPRINTF, REPLACE_DPRINTF.
13797         * doc/posix-functions/dprintf.texi: Mention the new modules.
13798
13799 2009-01-17  Bruno Haible  <bruno@clisp.org>
13800
13801         * modules/vdprintf-posix-tests: New file.
13802         * tests/test-vdprintf-posix.sh: New file.
13803         * tests/test-vdprintf-posix.c: New file.
13804
13805         New modules 'vdprintf', 'vdprintf-posix'.
13806         * lib/stdio.in.h (vdprintf): New declaration.
13807         * lib/vdprintf.c: New file.
13808         * m4/vdprintf.m4: New file.
13809         * m4/vdprintf-posix.m4: New file.
13810         * modules/vdprintf: New file.
13811         * modules/vdprintf-posix: New file.
13812         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
13813         HAVE_VDPRINTF, REPLACE_VDPRINTF.
13814         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
13815         HAVE_VDPRINTF, REPLACE_VDPRINTF.
13816         * doc/posix-functions/vdprintf.texi: Mention the new modules.
13817
13818 2009-01-17  Bruno Haible  <bruno@clisp.org>
13819
13820         Fix replacement of fopen on mingw.
13821         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
13822         mingw.
13823
13824 2009-01-17  Bruno Haible  <bruno@clisp.org>
13825
13826         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
13827         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
13828
13829 2009-01-17  Bruno Haible  <bruno@clisp.org>
13830
13831         Avoid test-fflush2.sh failure on mingw.
13832         * tests/test-fflush2.c: Include binary-io.h.
13833         (main): Put standard input into binary mode.
13834         * modules/fflush-tests (Depends-on): Add binary-io.
13835
13836 2009-01-17  Bruno Haible  <bruno@clisp.org>
13837
13838         * lib/wchar.in.h: In another particular situation, include only the
13839         system's <wchar.h> file.
13840         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
13841         Reported by Albert Chin-A-Young <china@thewrittenword.com>
13842         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
13843
13844 2009-01-17  Bruno Haible  <bruno@clisp.org>
13845
13846         Support for stripping executables in --enable-relocatable.
13847         * build-aux/install-reloc: Expect one more argument, or an environment
13848         variable RELOC_STRIP_PROG. If set, strip the destination program and
13849         its wrapper.
13850         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
13851         RELOC_STRIP_PROG.
13852         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
13853         to set RELOCATABLE_STRIP.
13854         * NEWS: Mention the new Makefile requirement.
13855
13856 2009-01-17  Bruno Haible  <bruno@clisp.org>
13857
13858         * build-aux/install-reloc: Remove debugging information left over by
13859         C compiler on MacOS X.
13860
13861 2009-01-17  Bruno Haible  <bruno@clisp.org>
13862
13863         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
13864         * lib/progreloc.c (find_executable): Fix type of pointer passed to
13865         _NSGetExecutablePath.
13866
13867 2009-01-16  Jim Meyering  <meyering@redhat.com>
13868
13869         strerror: avoid warnings about discarding "const"
13870         * lib/strerror.c (rpl_strerror): Instead of returning a const
13871         string from each and every "case", use a variable, and add a single
13872         cast after the switch.
13873
13874 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
13875
13876         * lib/arpa_inet.in.h: Add extern "C" block for C++.
13877
13878 2009-01-16  Bruno Haible  <bruno@clisp.org>
13879
13880         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
13881         array initializer syntax that also works in C++ mode.
13882         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13883
13884 2009-01-16  Jim Meyering  <meyering@redhat.com>
13885
13886         poll: suppress a warning
13887         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
13888         to ignore "...unsigned expression < 0 is always false" warnings.
13889
13890 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
13891
13892         poll: remove declarations of unused variables
13893         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
13894         sockbuf and optlen.
13895
13896 2009-01-15  Bruno Haible  <bruno@clisp.org>
13897
13898         Make fflush-after-ungetc POSIX compliant on BSD systems.
13899         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
13900         (clear_ungetc_buffer): Implement also for other systems.
13901         (rpl_fflush): On glibc systems, invoke
13902         clear_ungetc_buffer_preserving_position. Otherwise, invoke
13903         clear_ungetc_buffer after fetching the stream's position, not before.
13904
13905 2009-01-15  Bruno Haible  <bruno@clisp.org>
13906
13907         Make fflush-after-ungetc POSIX compliant on glibc systems.
13908         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
13909         after ungetc.
13910         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
13911         (rpl_fflush): On glibc systems, simply call the system's fflush
13912         function after clearing the ungetc buffer.
13913         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
13914         Instead, lseek only to the end of file, then use the system's fseeko
13915         for the rest. On glibc systems, reset the EOF indicator bit.
13916
13917 2009-01-15  Jim Meyering  <meyering@redhat.com>
13918
13919         openmp.m4: revert quote-adding change, for portability to older autoconf
13920         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
13921         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
13922         Simon Josefsson noticed the problem when using autoconf-2.61.
13923
13924 2009-01-15  Bruno Haible  <bruno@clisp.org>
13925
13926         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
13927         * tests/test-fflush2.c (ASSERT): Always fail.
13928         (main): Add two tests for fflush() after ungetc(), taking into account
13929         the Austin Group's clarification.
13930         Suggested by Eric Blake.
13931
13932 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
13933
13934         mktime.m4: remove K&R-style function prototypes
13935         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
13936         for the Sun C++ compiler.
13937
13938 2009-01-14  Bruno Haible  <bruno@clisp.org>
13939
13940         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
13941         while including <wchar.h>.
13942         * lib/wchar.in.h: In two particular situations on HP-UX, include only
13943         the system's <wchar.h> file.
13944         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13945
13946 2009-01-14  Bruno Haible  <bruno@clisp.org>
13947
13948         * m4/csharp.m4: Don't mention gettext on the serial number line.
13949         * m4/csharpexec.m4: Likewise.
13950         * m4/eaccess.m4: Likewise.
13951         * m4/javaexec.m4: Likewise.
13952         * m4/sig_atomic_t.m4: Likewise.
13953         * m4/tmpdir.m4: Likewise.
13954         * m4/intldir.m4: Bump gettext version.
13955         * m4/lib-ld.m4: Likewise.
13956
13957 2009-01-14  Bruno Haible  <bruno@clisp.org>
13958
13959         * lib/progname.c (set_program_name): Add more comments.
13960         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
13961
13962 2009-01-14  Simon Josefsson  <simon@josefsson.org>
13963
13964         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
13965         were sys/stat.h does not define it.
13966
13967 2009-01-14  Jim Meyering  <meyering@redhat.com>
13968
13969         many *.m4 files: improve m4 quoting
13970         99% of this change was performed by running the following commands:
13971         git ls-files | grep '\.m4$' | xargs perl -pi \
13972           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
13973           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
13974           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
13975           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
13976         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
13977         The remainder were to add Copyright dates, increment serial numbers,
13978         undo some changes in comments, exclude m4/intl.m4, and add quotes
13979         around the "1" in ",1" where the unusual spacing prohibited the
13980         above regexps from doing the job.  For more details, see
13981         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
13982         * m4/acl.m4: Modified.
13983         * m4/afs.m4: Likewise.
13984         * m4/alloca.m4: Likewise.
13985         * m4/argp.m4: Likewise.
13986         * m4/argz.m4: Likewise.
13987         * m4/atexit.m4: Likewise.
13988         * m4/bison-i18n.m4: Likewise.
13989         * m4/bison.m4: Likewise.
13990         * m4/byteswap.m4: Likewise.
13991         * m4/c-stack.m4: Likewise.
13992         * m4/c-strtod.m4: Likewise.
13993         * m4/calloc.m4: Likewise.
13994         * m4/canonicalize-lgpl.m4: Likewise.
13995         * m4/chown.m4: Likewise.
13996         * m4/clock_time.m4: Likewise.
13997         * m4/codeset.m4: Likewise.
13998         * m4/copy-file.m4: Likewise.
13999         * m4/csharp.m4: Likewise.
14000         * m4/csharpcomp.m4: Likewise.
14001         * m4/csharpexec.m4: Likewise.
14002         * m4/d-ino.m4: Likewise.
14003         * m4/d-type.m4: Likewise.
14004         * m4/dirfd.m4: Likewise.
14005         * m4/double-slash-root.m4: Likewise.
14006         * m4/eaccess.m4: Likewise.
14007         * m4/eealloc.m4: Likewise.
14008         * m4/environ.m4: Likewise.
14009         * m4/errno_h.m4: Likewise.
14010         * m4/euidaccess.m4: Likewise.
14011         * m4/execute.m4: Likewise.
14012         * m4/fatal-signal.m4: Likewise.
14013         * m4/fchdir.m4: Likewise.
14014         * m4/fcntl_h.m4: Likewise.
14015         * m4/fileblocks.m4: Likewise.
14016         * m4/filenamecat.m4: Likewise.
14017         * m4/findprog.m4: Likewise.
14018         * m4/flexmember.m4: Likewise.
14019         * m4/fnmatch.m4: Likewise.
14020         * m4/fopen.m4: Likewise.
14021         * m4/fpending.m4: Likewise.
14022         * m4/fprintf-posix.m4: Likewise.
14023         * m4/free.m4: Likewise.
14024         * m4/frexp.m4: Likewise.
14025         * m4/frexpl.m4: Likewise.
14026         * m4/fsusage.m4: Likewise.
14027         * m4/ftruncate.m4: Likewise.
14028         * m4/gc-camellia.m4: Likewise.
14029         * m4/gc-random.m4: Likewise.
14030         * m4/gc.m4: Likewise.
14031         * m4/getaddrinfo.m4: Likewise.
14032         * m4/getcwd-abort-bug.m4: Likewise.
14033         * m4/getcwd-path-max.m4: Likewise.
14034         * m4/getdate.m4: Likewise.
14035         * m4/getdomainname.m4: Likewise.
14036         * m4/getgroups.m4: Likewise.
14037         * m4/gethostname.m4: Likewise.
14038         * m4/gethrxtime.m4: Likewise.
14039         * m4/getline.m4: Likewise.
14040         * m4/getloadavg.m4: Likewise.
14041         * m4/getndelim2.m4: Likewise.
14042         * m4/getpass.m4: Likewise.
14043         * m4/gettext.m4: Likewise.
14044         * m4/gettime.m4: Likewise.
14045         * m4/gettimeofday.m4: Likewise.
14046         * m4/gnulib-common.m4: Likewise.
14047         * m4/group-member.m4: Likewise.
14048         * m4/host-os.m4: Likewise.
14049         * m4/iconv.m4: Likewise.
14050         * m4/iconv_open.m4: Likewise.
14051         * m4/inet_ntop.m4: Likewise.
14052         * m4/inet_pton.m4: Likewise.
14053         * m4/inline.m4: Likewise.
14054         * m4/intldir.m4: Likewise.
14055         * m4/intlmacosx.m4: Likewise.
14056         * m4/intmax.m4: Likewise.
14057         * m4/intmax_t.m4: Likewise.
14058         * m4/inttypes.m4: Likewise.
14059         * m4/inttypes_h.m4: Likewise.
14060         * m4/inttypes-pri.m4: Likewise.
14061         * m4/isapipe.m4: Likewise.
14062         * m4/isnand.m4: Likewise.
14063         * m4/isnanf.m4: Likewise.
14064         * m4/isnanl.m4: Likewise.
14065         * m4/javacomp.m4: Likewise.
14066         * m4/javaexec.m4: Likewise.
14067         * m4/jm-winsz1.m4: Likewise.
14068         * m4/jm-winsz2.m4: Likewise.
14069         * m4/lchown.m4: Likewise.
14070         * m4/lcmessage.m4: Likewise.
14071         * m4/ldexpl.m4: Likewise.
14072         * m4/lib-ld.m4: Likewise.
14073         * m4/lib-link.m4: Likewise.
14074         * m4/libsigsegv.m4: Likewise.
14075         * m4/link-follow.m4: Likewise.
14076         * m4/localcharset.m4: Likewise.
14077         * m4/locale-fr.m4: Likewise.
14078         * m4/locale-ja.m4: Likewise.
14079         * m4/locale-tr.m4: Likewise.
14080         * m4/locale-zh.m4: Likewise.
14081         * m4/lock.m4: Likewise.
14082         * m4/longlong.m4: Likewise.
14083         * m4/ls-mntd-fs.m4: Likewise.
14084         * m4/lstat.m4: Likewise.
14085         * m4/malloc.m4: Likewise.
14086         * m4/mathl.m4: Likewise.
14087         * m4/mbrtowc.m4: Likewise.
14088         * m4/mbstate_t.m4: Likewise.
14089         * m4/mbswidth.m4: Likewise.
14090         * m4/memchr.m4: Likewise.
14091         * m4/memcmp.m4: Likewise.
14092         * m4/memcpy.m4: Likewise.
14093         * m4/memmem.m4: Likewise.
14094         * m4/memmove.m4: Likewise.
14095         * m4/mempcpy.m4: Likewise.
14096         * m4/memrchr.m4: Likewise.
14097         * m4/memset.m4: Likewise.
14098         * m4/minmax.m4: Likewise.
14099         * m4/mkdir-slash.m4: Likewise.
14100         * m4/mkdtemp.m4: Likewise.
14101         * m4/mktime.m4: Likewise.
14102         * m4/mmap-anon.m4: Likewise.
14103         * m4/mountlist.m4: Likewise.
14104         * m4/nanosleep.m4: Likewise.
14105         * m4/nls.m4: Likewise.
14106         * m4/nocrash.m4: Likewise.
14107         * m4/open.m4: Likewise.
14108         * m4/openat.m4: Likewise.
14109         * m4/openmp.m4: Likewise.
14110         * m4/pathmax.m4: Likewise.
14111         * m4/perl.m4: Likewise.
14112         * m4/physmem.m4: Likewise.
14113         * m4/pipe.m4: Likewise.
14114         * m4/po.m4: Likewise.
14115         * m4/poll.m4: Likewise.
14116         * m4/posixtm.m4: Likewise.
14117         * m4/posixver.m4: Likewise.
14118         * m4/printf-frexp.m4: Likewise.
14119         * m4/printf-frexpl.m4: Likewise.
14120         * m4/printf-posix.m4: Likewise.
14121         * m4/printf-posix-rpl.m4: Likewise.
14122         * m4/printf.m4: Likewise.
14123         * m4/progtest.m4: Likewise.
14124         * m4/putenv.m4: Likewise.
14125         * m4/readline.m4: Likewise.
14126         * m4/readlink.m4: Likewise.
14127         * m4/readutmp.m4: Likewise.
14128         * m4/realloc.m4: Likewise.
14129         * m4/regex.m4: Likewise.
14130         * m4/relocatable.m4: Likewise.
14131         * m4/relocatable-lib.m4: Likewise.
14132         * m4/rename-dest-slash.m4: Likewise.
14133         * m4/rename.m4: Likewise.
14134         * m4/rmdir-errno.m4: Likewise.
14135         * m4/rmdir.m4: Likewise.
14136         * m4/roundf.m4: Likewise.
14137         * m4/roundl.m4: Likewise.
14138         * m4/rpmatch.m4: Likewise.
14139         * m4/save-cwd.m4: Likewise.
14140         * m4/selinux-selinux-h.m4: Likewise.
14141         * m4/setenv.m4: Likewise.
14142         * m4/settime.m4: Likewise.
14143         * m4/sig2str.m4: Likewise.
14144         * m4/sig_atomic_t.m4: Likewise.
14145         * m4/signalblocking.m4: Likewise.
14146         * m4/signbit.m4: Likewise.
14147         * m4/sigpipe.m4: Likewise.
14148         * m4/sockets.m4: Likewise.
14149         * m4/sockpfaf.m4: Likewise.
14150         * m4/st_dm_mode.m4: Likewise.
14151         * m4/stat-time.m4: Likewise.
14152         * m4/stdbool.m4: Likewise.
14153         * m4/stdint.m4: Likewise.
14154         * m4/stdint_h.m4: Likewise.
14155         * m4/stpcpy.m4: Likewise.
14156         * m4/stpncpy.m4: Likewise.
14157         * m4/strcase.m4: Likewise.
14158         * m4/strchrnul.m4: Likewise.
14159         * m4/strcspn.m4: Likewise.
14160         * m4/strdup.m4: Likewise.
14161         * m4/strftime.m4: Likewise.
14162         * m4/strndup.m4: Likewise.
14163         * m4/strnlen.m4: Likewise.
14164         * m4/strpbrk.m4: Likewise.
14165         * m4/strptime.m4: Likewise.
14166         * m4/strsep.m4: Likewise.
14167         * m4/strtod.m4: Likewise.
14168         * m4/strtoimax.m4: Likewise.
14169         * m4/strtok_r.m4: Likewise.
14170         * m4/strtol.m4: Likewise.
14171         * m4/strtoll.m4: Likewise.
14172         * m4/strtoul.m4: Likewise.
14173         * m4/strtoull.m4: Likewise.
14174         * m4/strtoumax.m4: Likewise.
14175         * m4/strverscmp.m4: Likewise.
14176         * m4/threadlib.m4: Likewise.
14177         * m4/timegm.m4: Likewise.
14178         * m4/tm_gmtoff.m4: Likewise.
14179         * m4/tmpdir.m4: Likewise.
14180         * m4/tmpfile.m4: Likewise.
14181         * m4/tzset.m4: Likewise.
14182         * m4/uintmax_t.m4: Likewise.
14183         * m4/unlinkdir.m4: Likewise.
14184         * m4/unlocked-io.m4: Likewise.
14185         * m4/uptime.m4: Likewise.
14186         * m4/userspec.m4: Likewise.
14187         * m4/utimbuf.m4: Likewise.
14188         * m4/utime.m4: Likewise.
14189         * m4/utimes-null.m4: Likewise.
14190         * m4/utimes.m4: Likewise.
14191         * m4/vararrays.m4: Likewise.
14192         * m4/vasnprintf.m4: Likewise.
14193         * m4/vfprintf-posix.m4: Likewise.
14194         * m4/vprintf-posix.m4: Likewise.
14195         * m4/wait-process.m4: Likewise.
14196         * m4/wchar_t.m4: Likewise.
14197         * m4/wint_t.m4: Likewise.
14198         * m4/write-any-file.m4: Likewise.
14199         * m4/yield.m4: Likewise.
14200
14201 2009-01-13  Bruno Haible  <bruno@clisp.org>
14202
14203         Avoid test-copy-file.sh failures when ACL support insufficient.
14204         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
14205         TESTS_ENVIRONMENT.
14206         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
14207         Reported by Jim Meyering.
14208
14209 2009-01-13  Bruno Haible  <bruno@clisp.org>
14210
14211         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
14212         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
14213         * modules/unistdio/u8-printf-parse (Files): Likewise.
14214         * modules/unistdio/u32-printf-parse (Files): Likewise.
14215         * modules/unistdio/ulc-printf-parse (Files): Likewise.
14216
14217 2009-01-13  Simon Josefsson  <simon@josefsson.org>
14218
14219         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
14220         and m4/inttypes_h.m4 too.
14221
14222 2009-01-12  Eric Blake  <ebb9@byu.net>
14223
14224         tests: IRIX 6.2 cc can't compile -0.0 into .data
14225         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
14226         rather than at compile-time.
14227         * tests/test-floorl.c (minus_zero): Likewise.
14228         * tests/test-frexpl.c (minus_zero): Likewise.
14229         * tests/test-isnan.c (minus_zerol): Likewise.
14230         * tests/test-isnanl.h (minus_zero): Likewise.
14231         * tests/test-ldexpl.c (minus_zero): Likewise.
14232         * tests/test-roundl.c (minus_zero): Likewise.
14233         * tests/test-signbit.c (minus_zerol): Likewise.
14234         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
14235         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
14236         * tests/test-truncl.c (minus_zero): Likewise.
14237         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
14238         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
14239         Reported by Tom G. Christensen and Nelson H. F. Beebe.
14240
14241 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
14242
14243         regex: fix glibc bug 9697
14244         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
14245         handling.
14246
14247 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
14248
14249         regex: fix glibc bug 697
14250         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
14251         being NULL also if there are no backreferences.
14252
14253 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
14254
14255         regex: merge glibc changes
14256         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
14257         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
14258         re_string_skip_chars, re_string_reconstruct): Likewise.
14259         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
14260
14261 2009-01-07  Jim Meyering  <meyering@redhat.com>
14262
14263         poll: filter through cppi
14264         * lib/poll.c: Indent cpp directives to reflect nesting.
14265
14266 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
14267
14268         poll: don't return uninitialized
14269         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
14270
14271 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
14272
14273         avoid compile failure on AIX 6.1
14274         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
14275         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
14276
14277 2009-01-04  Jim Meyering  <meyering@redhat.com>
14278
14279         remove duplicate inclusion of <stdio.h>
14280         * tests/test-fprintf-posix.c: Likewise.
14281         * tests/test-printf-posix.c: Likewise.
14282         * tests/test-snprintf-posix.c: Likewise.
14283         * tests/test-sprintf-posix.c: Likewise.
14284         * tests/test-vasprintf-posix.c: Likewise.
14285         * tests/test-vfprintf-posix.c: Likewise.
14286         * tests/test-vprintf-posix.c: Likewise.
14287         * tests/test-vsnprintf-posix.c: Likewise.
14288         * tests/test-vsprintf-posix.c: Likewise.
14289
14290 2009-01-03  Jim Meyering  <meyering@redhat.com>
14291
14292         gnulib-tool: fix sed-based filtering
14293         * gnulib-tool (func_filter_filelist): Remove extra backslash
14294         in sed_fff_filter definition.
14295
14296 2009-01-02  Jim Meyering  <meyering@redhat.com>
14297
14298         strftime: avoid compilation failure on Solaris 2.6
14299         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
14300         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
14301         Don't #define mbrlen or mbsinit, since now they're guaranteed to
14302         be available.  Reported by Tom G. Christensen.  Details in
14303         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
14304
14305 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14306             Bruno Haible  <bruno@clisp.org>
14307
14308         Speed up gnulib-tool by doing more string processing through shell
14309         built-ins.
14310         * gnulib-tool (fast_func_append): New variable.
14311         (func_remove_prefix, func_remove_suffix): New functions.
14312         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
14313         (func_filter_filelist): New function.
14314         (func_get_dependencies): Use func_remove_suffix instead of sed.
14315         (func_get_automake_snippet): Use func_filter_filelist instead of a
14316         subshell and sed invocation.
14317
14318 2009-01-01  Bruno Haible  <bruno@clisp.org>
14319
14320         Fix a security bug.
14321         * gnulib-tool (func_import, import, update): Don't allow the characters
14322         '"', '$', '`', '\' in macro arguments that become part of commands that
14323         are evaluated.
14324
14325 2009-01-01  Bruno Haible  <bruno@clisp.org>
14326
14327         * gnulib-tool (func_reset_sigpipe): Add more comments.
14328
14329 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14330
14331         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
14332         func_emit_tests_Makefile_am, func_import): Abort loops early if we
14333         already know the answer.
14334
14335 2009-01-01  Jim Meyering  <meyering@redhat.com>
14336
14337         * lib/version-etc.c (version_etc_va): Update copyright year.
14338
14339 2008-12-30  Bruno Haible  <bruno@clisp.org>
14340
14341         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
14342         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
14343         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
14344
14345 2008-12-29  Eric Blake  <ebb9@byu.net>
14346
14347         multiarch: avoid autoconf AC_REQUIRE bug
14348         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
14349         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
14350         2.63 and older.
14351         Reported by Bruno Haible, and analyzed in
14352         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
14353
14354 2008-12-29  Bruno Haible  <bruno@clisp.org>
14355
14356         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
14357         files in subdirectories correctly.
14358         Reported by Ralf Wildenhues.
14359
14360 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14361
14362         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
14363         rather than 'join FILE -', for Solaris join.
14364
14365 2008-12-29  Bruno Haible  <bruno@clisp.org>
14366
14367         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
14368         quoting.
14369         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
14370         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14371         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14372         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
14373         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14374         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
14375         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
14376         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
14377         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
14378         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
14379         * m4/nls.m4 (AM_NLS): Likewise.
14380         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
14381         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
14382         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14383         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
14384         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
14385         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14386         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
14387         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
14388         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
14389         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14390         * m4/xsize.m4 (gl_XSIZE): Likewise.
14391         Suggested by Jim Meyering.
14392
14393 2008-11-17  Bruce Korb  <bkorb@gnu.org>
14394
14395         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
14396         * lib/parse-duration.c: use a switch instead of cascading if's.
14397
14398 2008-12-29  Eric Blake  <ebb9@byu.net>
14399
14400         wchar.h: supply WEOF on Irix 5.3
14401         * lib/wchar.in.h (wint_t): Also supply WEOF.
14402         * lib/wctype.in.h (wint_t): Likewise.
14403         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
14404         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
14405         Reported by Tom G. Christensen.
14406
14407 2008-12-26  Bruno Haible  <bruno@clisp.org>
14408
14409         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
14410         i486, i586, i686.
14411
14412 2008-12-26  Bruno Haible  <bruno@clisp.org>
14413
14414         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
14415
14416 2008-12-26  Bruno Haible  <bruno@clisp.org>
14417
14418         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
14419         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
14420         not __STDC_CONSTANT_MACROS.
14421         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
14422
14423 2008-12-25  Bruno Haible  <bruno@clisp.org>
14424
14425         Add support for universal builds to vasnprintf.
14426         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
14427         universal builds, guess no.
14428         * modules/vasnprintf-posix (Depends-on): Add multiarch.
14429         * modules/vasprintf-posix (Depends-on): Likewise.
14430         * modules/fprintf-posix (Depends-on): Likewise.
14431         * modules/vfprintf-posix (Depends-on): Likewise.
14432         * modules/snprintf-posix (Depends-on): Likewise.
14433         * modules/vsnprintf-posix (Depends-on): Likewise.
14434         * modules/sprintf-posix (Depends-on): Likewise.
14435         * modules/vsprintf-posix (Depends-on): Likewise.
14436         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14437         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14438         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14439         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14440         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14441         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14442         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14443
14444         Add support for universal builds to <inttypes.h>.
14445         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
14446         _SCNu64_PREFIX): In Apple
14447         universal builds, define directly, using _LP64.
14448         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
14449         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
14450         * modules/inttypes (Depends-on): Add multiarch.
14451         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
14452
14453         Add support for universal builds to <stdint.h>.
14454         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
14455         universal builds, define directly, using _LP64.
14456         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
14457         Apple universal builds, don't test for the size and suffix of ptrdiff_t
14458         and size_t.
14459         * modules/stdint (Depends-on): Add multiarch.
14460         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
14461
14462         New module 'multiarch'.
14463         * modules/multiarch: New file.
14464         * m4/multiarch.m4: New file.
14465
14466 2008-12-25  Bruno Haible  <bruno@clisp.org>
14467
14468         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
14469
14470 2008-12-25  Bruno Haible  <bruno@clisp.org>
14471
14472         * modules/btowc (License): Relicense under LGPLv2+.
14473         * modules/mbsinit (License): Likewise.
14474         * modules/mbrtowc (License): Likewise.
14475         * modules/wcrtomb (License): Likewise.
14476         * modules/streq (License): Likewise.
14477         Reported by David Lutterkort <lutter@redhat.com>.
14478
14479 2008-12-23  Bruno Haible  <bruno@clisp.org>
14480
14481         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
14482
14483 2008-12-23  Bruno Haible  <bruno@clisp.org>
14484
14485         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
14486         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
14487         GETADDRINFO_LIB, not in LIBS.
14488         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
14489         * modules/canon-host (Link): Likewise.
14490         * NEWS: Mention the change.
14491         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
14492         GETADDRINFO_LIB.
14493
14494 2008-12-22  Bruno Haible  <bruno@clisp.org>
14495
14496         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
14497         * doc/posix-functions/iswalpha_l.texi: Likewise.
14498         * doc/posix-functions/iswblank_l.texi: Likewise.
14499         * doc/posix-functions/iswcntrl_l.texi: Likewise.
14500         * doc/posix-functions/iswctype_l.texi: Likewise.
14501         * doc/posix-functions/iswdigit_l.texi: Likewise.
14502         * doc/posix-functions/iswgraph_l.texi: Likewise.
14503         * doc/posix-functions/iswlower_l.texi: Likewise.
14504         * doc/posix-functions/iswprint_l.texi: Likewise.
14505         * doc/posix-functions/iswpunct_l.texi: Likewise.
14506         * doc/posix-functions/iswspace_l.texi: Likewise.
14507         * doc/posix-functions/iswupper_l.texi: Likewise.
14508         * doc/posix-functions/iswxdigit_l.texi: Likewise.
14509         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
14510         * doc/posix-functions/open_wmemstream.texi: Likewise.
14511         * doc/posix-functions/swscanf.texi: Likewise.
14512         * doc/posix-functions/towctrans_l.texi: Likewise.
14513         * doc/posix-functions/towlower.texi: Likewise.
14514         * doc/posix-functions/towlower_l.texi: Likewise.
14515         * doc/posix-functions/towupper.texi: Likewise.
14516         * doc/posix-functions/towupper_l.texi: Likewise.
14517         * doc/posix-functions/vfwprintf.texi: Likewise.
14518         * doc/posix-functions/vfwscanf.texi: Likewise.
14519         * doc/posix-functions/vswscanf.texi: Likewise.
14520         * doc/posix-functions/vwprintf.texi: Likewise.
14521         * doc/posix-functions/vwscanf.texi: Likewise.
14522         * doc/posix-functions/wcpcpy.texi: Likewise.
14523         * doc/posix-functions/wcpncpy.texi: Likewise.
14524         * doc/posix-functions/wcscasecmp.texi: Likewise.
14525         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
14526         * doc/posix-functions/wcscoll_l.texi: Likewise.
14527         * doc/posix-functions/wcsdup.texi: Likewise.
14528         * doc/posix-functions/wcsncasecmp.texi: Likewise.
14529         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
14530         * doc/posix-functions/wcsnlen.texi: Likewise.
14531         * doc/posix-functions/wcsnrtombs.texi: Likewise.
14532         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
14533         * doc/posix-functions/wctrans_l.texi: Likewise.
14534         * doc/posix-functions/wctype_l.texi: Likewise.
14535         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
14536         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
14537         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
14538         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
14539         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
14540         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
14541         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
14542         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
14543         * doc/glibc-functions/wcschrnul.texi: Likewise.
14544         * doc/glibc-functions/wcsftime_l.texi: Likewise.
14545         * doc/glibc-functions/wcstod_l.texi: Likewise.
14546         * doc/glibc-functions/wcstof_l.texi: Likewise.
14547         * doc/glibc-functions/wcstol_l.texi: Likewise.
14548         * doc/glibc-functions/wcstold_l.texi: Likewise.
14549         * doc/glibc-functions/wcstoll_l.texi: Likewise.
14550         * doc/glibc-functions/wcstoq.texi: Likewise.
14551         * doc/glibc-functions/wcstoul_l.texi: Likewise.
14552         * doc/glibc-functions/wcstoull_l.texi: Likewise.
14553         * doc/glibc-functions/wcstouq.texi: Likewise.
14554         * doc/glibc-functions/wmempcpy.texi: Likewise.
14555
14556 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
14557             Eric Blake  <ebb9@byu.net>
14558             Paolo Bonzini  <bonzini@gnu.org>
14559             Bruno Haible  <bruno@clisp.org>
14560
14561         Make c-stack work on Haiku.
14562         * lib/c-stack.c (SA_ONSTACK): Define fallback.
14563         (c_stack_action): Use SA_ONSTACK flag.
14564
14565 2008-12-22  Bruno Haible  <bruno@clisp.org>
14566
14567         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
14568
14569 2008-12-22  Bruno Haible  <bruno@clisp.org>
14570
14571         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
14572         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
14573         being overridden.
14574         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
14575         New macros.
14576         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
14577         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
14578         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
14579         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
14580
14581 2008-12-22  Bruno Haible  <bruno@clisp.org>
14582
14583         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
14584         from test code.
14585
14586 2008-12-22  Eric Blake  <ebb9@byu.net>
14587
14588         Avoid gcc warnings on cygwin.
14589         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
14590         Avoid unused variable.
14591         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
14592         Likewise.
14593
14594 2008-12-22  Bruno Haible  <bruno@clisp.org>
14595
14596         Remove HAVE_MBRTOWC conditionals.
14597         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
14598         (mbscasecmp): Assume mbrtowc function.
14599         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
14600         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
14601         * lib/mbschr.c: Include mbuiter.h unconditionally.
14602         (mbschr): Assume mbrtowc function.
14603         * lib/mbscspn.c: Include mbuiter.h unconditionally.
14604         (mbscspn): Assume mbrtowc function.
14605         * lib/mbslen.c: Include mbuiter.h unconditionally.
14606         (mbslen): Assume mbrtowc function.
14607         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
14608         (mbsncasecmp): Assume mbrtowc function.
14609         * lib/mbsnlen.c: Include mbiter.h unconditionally.
14610         (mbsnlen): Assume mbrtowc function.
14611         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
14612         (mbspbrk): Assume mbrtowc function.
14613         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
14614         (mbspcasecmp): Assume mbrtowc function.
14615         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
14616         (mbsrchr): Assume mbrtowc function.
14617         * lib/mbssep.c: Include mbuiter.h unconditionally.
14618         (mbssep): Assume mbrtowc function.
14619         * lib/mbsspn.c: Include mbuiter.h unconditionally.
14620         (mbsspn): Assume mbrtowc function.
14621         * lib/mbsstr.c: Include mbuiter.h unconditionally.
14622         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
14623         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
14624         (mbstok_r): Assume mbrtowc function.
14625         * lib/propername.c: Include mbuiter.h unconditionally.
14626         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
14627         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
14628         (trim2): Assume mbrtowc function.
14629         * lib/mbswidth.c (mbsinit): Remove fallback definition.
14630         (mbsnwidth): Assume mbrtowc function.
14631         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
14632         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
14633         fallback definitions.
14634         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
14635
14636 2008-12-22  Bruno Haible  <bruno@clisp.org>
14637
14638         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
14639
14640 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
14641
14642         * modules/regex: Request emulations for the mb*/wc* functions we need.
14643         * m4/regex.m4: Don't look for those functions here.
14644         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
14645
14646 2008-12-22  Bruno Haible  <bruno@clisp.org>
14647
14648         * modules/fnmatch (Depends-on): Remove duplicated dependency.
14649
14650 2008-12-21  Bruno Haible  <bruno@clisp.org>
14651
14652         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
14653         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
14654         (Include): Remove conditionalization.
14655         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
14656         (Include): Remove conditionalization.
14657         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
14658         (Include): Remove conditionalization.
14659         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
14660         * m4/mbfile.m4 (gl_MBFILE): Likewise.
14661         * NEWS: Mention the change.
14662         Reported by Alan Hourihane <alanh@fairlite.co.uk>
14663         via Sergey Poznyakoff <gray@gnu.org.ua>.
14664
14665 2008-12-21  Bruno Haible  <bruno@clisp.org>
14666
14667         * MODULES.html.sh (Extended multibyte and wide character utilities
14668         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
14669         wcrtomb, wcsrtombs.
14670         (Support for systems lacking POSIX:2008): Add accept, bind, close,
14671         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
14672         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
14673         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
14674
14675 2008-12-21  Bruno Haible  <bruno@clisp.org>
14676
14677         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
14678
14679 2008-12-21  Bruno Haible  <bruno@clisp.org>
14680
14681         * modules/wcsnrtombs-tests: New file.
14682         * tests/test-wcsnrtombs1.sh: New file.
14683         * tests/test-wcsnrtombs2.sh: New file.
14684         * tests/test-wcsnrtombs3.sh: New file.
14685         * tests/test-wcsnrtombs4.sh: New file.
14686         * tests/test-wcsnrtombs.c: New file.
14687
14688         New module 'wcsnrtombs'.
14689         * lib/wchar.in.h (wcsnrtombs): New declaration.
14690         * lib/wcsnrtombs.c: New file.
14691         * lib/wcsrtombs-state.c: New file.
14692         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
14693         (internal_state): Remove variable.
14694         * m4/wcsnrtombs.m4: New file.
14695         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
14696         compilation units.
14697         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
14698         HAVE_WCSNRTOMBS.
14699         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
14700         HAVE_WCSNRTOMBS.
14701         * modules/wcsnrtombs: New file.
14702         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
14703         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
14704
14705 2008-12-21  Bruno Haible  <bruno@clisp.org>
14706
14707         * modules/wcsrtombs-tests: New file.
14708         * tests/test-wcsrtombs1.sh: New file.
14709         * tests/test-wcsrtombs2.sh: New file.
14710         * tests/test-wcsrtombs3.sh: New file.
14711         * tests/test-wcsrtombs4.sh: New file.
14712         * tests/test-wcsrtombs.c: New file.
14713
14714         New module 'wcsrtombs'.
14715         * lib/wchar.in.h (wcsrtombs): New declaration.
14716         * lib/wcsrtombs.c: New file.
14717         * m4/wcsrtombs.m4: New file.
14718         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
14719         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
14720         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
14721         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
14722         * modules/wcsrtombs: New file.
14723         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
14724         bugs.
14725
14726 2008-12-21  Bruno Haible  <bruno@clisp.org>
14727
14728         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
14729         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
14730         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
14731         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
14732         if not correct.
14733         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
14734         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
14735         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14736         m4/locale-zh.m4, m4/codeset.m4.
14737         * doc/posix-functions/wcrtomb.texi: Document the bug.
14738
14739 2008-12-21  Bruno Haible  <bruno@clisp.org>
14740
14741         Work around a btowc() bug on IRIX 6.5.
14742         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
14743         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
14744         REPLACE_WTOBC if not.
14745         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
14746         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
14747         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
14748
14749 2008-12-21  Bruno Haible  <bruno@clisp.org>
14750
14751         * modules/wcrtomb-tests: New file.
14752         * tests/test-wcrtomb.sh: New file.
14753         * tests/test-wcrtomb.c: New file.
14754
14755         New module 'wcrtomb'.
14756         * lib/wchar.in.h (wcrtomb): New declaration.
14757         * lib/wcrtomb.c: New file.
14758         * m4/wcrtomb.m4: New file.
14759         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
14760         HAVE_WCRTOMB.
14761         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
14762         HAVE_WCRTOMB.
14763         * modules/wcrtomb: New file.
14764         * doc/posix-functions/wcrtomb.texi: Mention the new module.
14765
14766 2008-12-21  Bruno Haible  <bruno@clisp.org>
14767
14768         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
14769         * modules/mbsrtowcs (Files): Likewise.
14770         * modules/wctob (Files): Likewise.
14771         * modules/c-strcase-tests (Files): Likewise.
14772         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
14773         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
14774         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
14775         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
14776         * modules/vasnprintf-posix-tests (Files): Likewise.
14777
14778 2008-12-21  William Pursell  <bill.pursell@gmail.com>
14779
14780         gitlog-to-changelog: pass all command-line arguments to git-log
14781         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
14782         it is sometimes convenient to filter the commits in various ways.
14783         gitlog-to-changelog only allows --since to specify a start date,
14784         but git-log itself supports many other filtering mechanisms.
14785         At the moment, I want to filter by branch name.  Rather than
14786         adding a --branch option to gitlog-to-changelog, it seems more
14787         flexible to simply pass all options directly to git-log and let
14788         git do the work.  Notice that this effectively makes --since a
14789         redundant option for gitlog-to-changelog, but removing it would
14790         require current usage to change since calls would then require
14791         an additional '--'.
14792
14793 2008-12-21  Bruno Haible  <bruno@clisp.org>
14794
14795         * modules/mbsnrtowcs-tests: New file.
14796         * tests/test-mbsnrtowcs1.sh: New file.
14797         * tests/test-mbsnrtowcs2.sh: New file.
14798         * tests/test-mbsnrtowcs3.sh: New file.
14799         * tests/test-mbsnrtowcs4.sh: New file.
14800         * tests/test-mbsnrtowcs.c: New file.
14801
14802         New module 'mbsnrtowcs'.
14803         * lib/wchar.in.h (mbsnrtowcs): New declaration.
14804         * lib/mbsnrtowcs.c: New file.
14805         * lib/mbsrtowcs-state.c: New file.
14806         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
14807         (internal_state): Remove variable.
14808         * m4/mbsnrtowcs.m4: New file.
14809         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
14810         compilation units.
14811         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
14812         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
14813         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
14814         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
14815         * modules/mbsnrtowcs: New file.
14816         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
14817         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
14818         portability problem.
14819
14820 2008-12-21  Bruno Haible  <bruno@clisp.org>
14821
14822         Work around mbsrtowcs bug.
14823         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
14824         (gl_FUNC_MBSRTOWCS): Invoke it.
14825         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14826         m4/locale-zh.m4.
14827         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
14828
14829 2008-12-21  Bruno Haible  <bruno@clisp.org>
14830
14831         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
14832
14833 2008-12-21  Bruno Haible  <bruno@clisp.org>
14834
14835         Update doc for AIX.
14836         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
14837         16-bit wchar_t type.
14838         * doc/posix-functions/btowc.texi: Likewise.
14839         * doc/posix-functions/fgetwc.texi: Likewise.
14840         * doc/posix-functions/fgetws.texi: Likewise.
14841         * doc/posix-functions/fputwc.texi: Likewise.
14842         * doc/posix-functions/fputws.texi: Likewise.
14843         * doc/posix-functions/fwide.texi: Likewise.
14844         * doc/posix-functions/fwprintf.texi: Likewise.
14845         * doc/posix-functions/fwscanf.texi: Likewise.
14846         * doc/posix-functions/getwchar.texi: Likewise.
14847         * doc/posix-functions/getwc.texi: Likewise.
14848         * doc/posix-functions/iswalnum.texi: Likewise.
14849         * doc/posix-functions/iswalpha.texi: Likewise.
14850         * doc/posix-functions/iswblank.texi: Likewise.
14851         * doc/posix-functions/iswcntrl.texi: Likewise.
14852         * doc/posix-functions/iswctype.texi: Likewise.
14853         * doc/posix-functions/iswdigit.texi: Likewise.
14854         * doc/posix-functions/iswgraph.texi: Likewise.
14855         * doc/posix-functions/iswlower.texi: Likewise.
14856         * doc/posix-functions/iswprint.texi: Likewise.
14857         * doc/posix-functions/iswpunct.texi: Likewise.
14858         * doc/posix-functions/iswspace.texi: Likewise.
14859         * doc/posix-functions/iswupper.texi: Likewise.
14860         * doc/posix-functions/iswxdigit.texi: Likewise.
14861         * doc/posix-functions/mbrtowc.texi: Likewise.
14862         * doc/posix-functions/mbsrtowcs.texi: Likewise.
14863         * doc/posix-functions/mbstowcs.texi: Likewise.
14864         * doc/posix-functions/mbtowc.texi: Likewise.
14865         * doc/posix-functions/putwchar.texi: Likewise.
14866         * doc/posix-functions/putwc.texi: Likewise.
14867         * doc/posix-functions/swprintf.texi: Likewise.
14868         * doc/posix-functions/tolower.texi: Likewise.
14869         * doc/posix-functions/toupper.texi: Likewise.
14870         * doc/posix-functions/towctrans.texi: Likewise.
14871         * doc/posix-functions/ungetwc.texi: Likewise.
14872         * doc/posix-functions/vswprintf.texi: Likewise.
14873         * doc/posix-functions/wcrtomb.texi: Likewise.
14874         * doc/posix-functions/wcscat.texi: Likewise.
14875         * doc/posix-functions/wcschr.texi: Likewise.
14876         * doc/posix-functions/wcscmp.texi: Likewise.
14877         * doc/posix-functions/wcscoll.texi: Likewise.
14878         * doc/posix-functions/wcscpy.texi: Likewise.
14879         * doc/posix-functions/wcscspn.texi: Likewise.
14880         * doc/posix-functions/wcsftime.texi: Likewise.
14881         * doc/posix-functions/wcslen.texi: Likewise.
14882         * doc/posix-functions/wcsncat.texi: Likewise.
14883         * doc/posix-functions/wcsncmp.texi: Likewise.
14884         * doc/posix-functions/wcsncpy.texi: Likewise.
14885         * doc/posix-functions/wcspbrk.texi: Likewise.
14886         * doc/posix-functions/wcsrchr.texi: Likewise.
14887         * doc/posix-functions/wcsrtombs.texi: Likewise.
14888         * doc/posix-functions/wcsspn.texi: Likewise.
14889         * doc/posix-functions/wcsstr.texi: Likewise.
14890         * doc/posix-functions/wcstod.texi: Likewise.
14891         * doc/posix-functions/wcstof.texi: Likewise.
14892         * doc/posix-functions/wcstoimax.texi: Likewise.
14893         * doc/posix-functions/wcstok.texi: Likewise.
14894         * doc/posix-functions/wcstold.texi: Likewise.
14895         * doc/posix-functions/wcstoll.texi: Likewise.
14896         * doc/posix-functions/wcstol.texi: Likewise.
14897         * doc/posix-functions/wcstombs.texi: Likewise.
14898         * doc/posix-functions/wcstoull.texi: Likewise.
14899         * doc/posix-functions/wcstoul.texi: Likewise.
14900         * doc/posix-functions/wcstoumax.texi: Likewise.
14901         * doc/posix-functions/wcswidth.texi: Likewise.
14902         * doc/posix-functions/wcsxfrm.texi: Likewise.
14903         * doc/posix-functions/wctob.texi: Likewise.
14904         * doc/posix-functions/wctomb.texi: Likewise.
14905         * doc/posix-functions/wctrans.texi: Likewise.
14906         * doc/posix-functions/wctype.texi: Likewise.
14907         * doc/posix-functions/wcwidth.texi: Likewise.
14908         * doc/posix-functions/wmemchr.texi: Likewise.
14909         * doc/posix-functions/wmemcmp.texi: Likewise.
14910         * doc/posix-functions/wmemcpy.texi: Likewise.
14911         * doc/posix-functions/wmemmove.texi: Likewise.
14912         * doc/posix-functions/wmemset.texi: Likewise.
14913         * doc/posix-functions/wprintf.texi: Likewise.
14914         * doc/posix-functions/wscanf.texi: Likewise.
14915
14916 2008-12-21  Bruno Haible  <bruno@clisp.org>
14917
14918         Update doc for HP-UX 11.11.
14919         * doc/posix-functions/btowc.texi: Clarify that the function is missing
14920         in HP-UX version 11.00, not in all versions of HP-UX 11.
14921         * doc/posix-functions/fwide.texi: Likewise.
14922         * doc/posix-functions/fwprintf.texi: Likewise.
14923         * doc/posix-functions/fwscanf.texi: Likewise.
14924         * doc/posix-functions/inet_ntop.texi: Likewise.
14925         * doc/posix-functions/inet_pton.texi: Likewise.
14926         * doc/posix-functions/mbrlen.texi: Likewise.
14927         * doc/posix-functions/mbrtowc.texi: Likewise.
14928         * doc/posix-functions/mbsinit.texi: Likewise.
14929         * doc/posix-functions/mbsrtowcs.texi: Likewise.
14930         * doc/posix-functions/swprintf.texi: Likewise.
14931         * doc/posix-functions/swscanf.texi: Likewise.
14932         * doc/posix-functions/towctrans.texi: Likewise.
14933         * doc/posix-functions/vfwprintf.texi: Likewise.
14934         * doc/posix-functions/vswprintf.texi: Likewise.
14935         * doc/posix-functions/vwprintf.texi: Likewise.
14936         * doc/posix-functions/wcrtomb.texi: Likewise.
14937         * doc/posix-functions/wcsrtombs.texi: Likewise.
14938         * doc/posix-functions/wcsstr.texi: Likewise.
14939         * doc/posix-functions/wctob.texi: Likewise.
14940         * doc/posix-functions/wctrans.texi: Likewise.
14941         * doc/posix-functions/wmemchr.texi: Likewise.
14942         * doc/posix-functions/wmemcmp.texi: Likewise.
14943         * doc/posix-functions/wmemcpy.texi: Likewise.
14944         * doc/posix-functions/wmemmove.texi: Likewise.
14945         * doc/posix-functions/wmemset.texi: Likewise.
14946         * doc/posix-functions/wprintf.texi: Likewise.
14947         * doc/posix-functions/wscanf.texi: Likewise.
14948
14949 2008-12-21  Bruno Haible  <bruno@clisp.org>
14950
14951         Work around a portability problem.
14952         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
14953         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
14954
14955 2008-12-20  Bruno Haible  <bruno@clisp.org>
14956
14957         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
14958         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
14959         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
14960         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
14961         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
14962
14963         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
14964         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
14965         set.
14966         (GNULIB_defined_mbstate_t): New macro.
14967         (mbsinit): Redefine if REPLACE_MBSINIT is set.
14968         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
14969         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
14970         reuses the system's mbrtowc function but works around the bugs.
14971         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
14972         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
14973         macros.
14974         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
14975         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
14976         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
14977         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
14978         REPLACE_MBSINIT if mbsinit needs to be overridden.
14979         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
14980         REPLACE_MBSINIT, REPLACE_MBRTOWC.
14981         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
14982         REPLACE_MBSINIT, REPLACE_MBRTOWC.
14983         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14984         m4/locale-zh.m4.
14985         (Depends): Add mbsinit.
14986         * modules/mbsinit (Depends): Add mbrtowc.
14987         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
14988
14989 2008-12-20  Bruno Haible  <bruno@clisp.org>
14990
14991         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
14992         so that there are no conversion errors on AIX.
14993         * tests/test-mbsrtowcs.c (main): LIkewise.
14994
14995 2008-12-20  Bruno Haible  <bruno@clisp.org>
14996
14997         Work around wctob bug on Solaris <= 9.
14998         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
14999         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
15000         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
15001         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
15002         * modules/wctob (Files): Add m4/locale-fr.m4.
15003         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
15004
15005 2008-12-20  Bruno Haible  <bruno@clisp.org>
15006
15007         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
15008         /dev/null.
15009         * tests/test-select-in.sh: Likewise.
15010         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15011
15012 2008-12-20  Bruno Haible  <bruno@clisp.org>
15013
15014         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
15015         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
15016         Cygwin 1.5.x.
15017
15018 2008-12-20  Bruno Haible  <bruno@clisp.org>
15019
15020         Ensure mbstate_t is defined on HP-UX 11.11.
15021         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
15022         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
15023         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
15024         AC_USE_SYSTEM_EXTENSIONS.
15025         * modules/fnmatch (Depends-on): Add extensions.
15026         * modules/mbrlen (Depends-on): Likewise.
15027         * modules/mbrtowc (Depends-on): Likewise.
15028         * modules/mbsinit (Depends-on): Likewise.
15029         * modules/mbsrtowcs (Depends-on): Likewise.
15030         * modules/mbswidth (Depends-on): Likewise.
15031         * modules/quotearg (Depends-on): Likewise.
15032         * modules/strftime (Depends-on): Likewise.
15033
15034 2008-12-20  Bruno Haible  <bruno@clisp.org>
15035
15036         Ensure wctob is declared on IRIX 6.5.
15037         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
15038         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
15039         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
15040         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
15041         of HAVE_WCTOB.
15042         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
15043         HAVE_WCTOB.
15044         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
15045
15046 2008-12-19  Bruno Haible  <bruno@clisp.org>
15047
15048         * modules/mbsrtowcs-tests: New file.
15049         * tests/test-mbsrtowcs1.sh: New file.
15050         * tests/test-mbsrtowcs2.sh: New file.
15051         * tests/test-mbsrtowcs3.sh: New file.
15052         * tests/test-mbsrtowcs4.sh: New file.
15053         * tests/test-mbsrtowcs.c: New file.
15054
15055         New module 'mbsrtowcs'.
15056         * lib/wchar.in.h (mbsrtowcs): New declaration.
15057         * lib/mbsrtowcs.c: New file.
15058         * m4/mbsrtowcs.m4: New file.
15059         * modules/mbsrtowcs: New file.
15060         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
15061         HAVE_MBSRTOWCS.
15062         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
15063         HAVE_MBSRTOWCS.
15064         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
15065
15066 2008-12-19  Bruno Haible  <bruno@clisp.org>
15067
15068         New module 'mbrlen'.
15069         * lib/wchar.in.h (mbrlen): New declaration.
15070         * lib/mbrlen.c: New file.
15071         * m4/mbrlen.m4: New file.
15072         * modules/mbrlen: New file.
15073         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
15074         HAVE_MBRLEN.
15075         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
15076         HAVE_MBRLEN.
15077         * doc/posix-functions/mbrlen.texi: Document the new module.
15078
15079 2008-12-19  Bruno Haible  <bruno@clisp.org>
15080
15081         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
15082         * modules/mbrtowc (Depends-on): Add verify.
15083         Suggested by Paul Eggert.
15084
15085 2008-12-18  Bruno Haible  <bruno@clisp.org>
15086
15087         * modules/mbsinit-tests: New file.
15088         * tests/test-mbsinit.sh: New file.
15089         * tests/test-mbsinit.c: New file.
15090
15091 2008-12-18  Bruno Haible  <bruno@clisp.org>
15092
15093         * modules/mbrtowc-tests: New file.
15094         * tests/test-mbrtowc1.sh: New file.
15095         * tests/test-mbrtowc2.sh: New file.
15096         * tests/test-mbrtowc3.sh: New file.
15097         * tests/test-mbrtowc4.sh: New file.
15098         * tests/test-mbrtowc.c: New file.
15099
15100         New module 'mbrtowc'.
15101         * lib/wchar.in.h (mbstate_t): Override when the system does not have
15102         mbsinit and mbrtowc.
15103         (mbrtowc): New declaration.
15104         * lib/mbrtowc.c: New file.
15105         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
15106         * modules/mbrtowc: New file.
15107         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
15108         HAVE_MBRTOWC.
15109         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
15110         HAVE_MBRTOWC.
15111         * doc/posix-functions/mbrtowc.texi: Document the new module.
15112
15113 2008-12-18  Bruno Haible  <bruno@clisp.org>
15114
15115         New module 'wctob'.
15116         * lib/wchar.in.h (wctob): New declaration.
15117         * lib/wctob.c: New file.
15118         * m4/wctob.m4: New file.
15119         * modules/wctob: New file.
15120         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
15121         HAVE_WCTOB.
15122         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
15123         * doc/posix-functions/wctob.texi: Document the new module.
15124
15125 2008-12-18  Bruno Haible  <bruno@clisp.org>
15126
15127         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
15128         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
15129
15130 2008-12-18  Simon Josefsson  <simon@josefsson.org>
15131
15132         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
15133         G. Christensen" <tgc@jupiterrise.com>.
15134
15135         * lib/flock.c: Need to include errno.h.  Reported by "Tom
15136         G. Christensen" <tgc@jupiterrise.com>.
15137
15138         * lib/flock.c: Need to include string.h.  Reported by "Tom
15139         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
15140         <ebb9@byu.net>.
15141
15142 2008-12-18  Bruno Haible  <bruno@clisp.org>
15143
15144         * m4/locale-ja.m4: New file, from GNU gettext.
15145
15146 2008-12-17  Bruno Haible  <bruno@clisp.org>
15147
15148         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
15149         Suggested by Eric Blake.
15150
15151 2008-12-17  Bruno Haible  <bruno@clisp.org>
15152
15153         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
15154
15155 2008-12-17  Bruno Haible  <bruno@clisp.org>
15156
15157         * lib/mbsinit.c: Include verify.h. Verify an assumption.
15158         * modules/mbsinit (Depends-on): Add verify.
15159         Suggested by Paul Eggert.
15160
15161 2008-12-17  Bruno Haible  <bruno@clisp.org>
15162
15163         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
15164         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
15165         gl_FUNC_MBRTOWC.
15166         * m4/mbiter.m4 (gl_MBITER): LIkewise.
15167         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
15168         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
15169         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
15170         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
15171         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
15172         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
15173         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
15174         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
15175         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
15176         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
15177         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
15178         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
15179         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
15180         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
15181         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15182         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
15183         * modules/trim (configure.ac): Likewise.
15184
15185 2008-12-17  Bruno Haible  <bruno@clisp.org>
15186
15187         * modules/btowc-tests: New file.
15188         * tests/test-btowc1.sh: New file.
15189         * tests/test-btowc2.sh: New file.
15190         * tests/test-btowc.c: New file.
15191
15192         New module 'btowc'.
15193         * lib/wchar.in.h (btowc): New declaration.
15194         * lib/btowc.c: New file.
15195         * m4/btowc.m4: New file.
15196         * modules/btowc: New file.
15197         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
15198         HAVE_BTOWC.
15199         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
15200         * doc/posix-functions/btowc.texi: Document the new module.
15201
15202 2008-12-17  Bruno Haible  <bruno@clisp.org>
15203
15204         New module 'mbsinit'.
15205         * lib/wchar.in.h (mbsinit): New declaration.
15206         * lib/mbsinit.c: New file.
15207         * m4/mbsinit.m4: New file.
15208         * modules/mbsinit: New file.
15209         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
15210         HAVE_MBSINIT.
15211         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
15212         HAVE_MBSINIT.
15213         * doc/posix-functions/mbsinit.texi: Document the new module.
15214
15215 2008-12-16  Bruno Haible  <bruno@clisp.org>
15216
15217         * lib/unistd.in.h: Add comment.
15218         * tests/test-environ.c: Don't include <stdlib.h>.
15219
15220 2008-12-16  Bruno Haible  <bruno@clisp.org>
15221
15222         * lib/parse-duration.h (parse_duration): Document return value
15223         convention.
15224         * lib/parse-duration.c: Include specification header first. Add
15225         comments.
15226         (_): Remove macro.
15227         (parse_year_month_day, parse_hour_minute_second): Move side effects
15228         outside of strchr call.
15229         (parse_non_iso8601): Move side effects outside of isspace call.
15230         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
15231         call.
15232
15233 2008-12-16  Bruno Haible  <bruno@clisp.org>
15234
15235         * tests/test-parse-duration.sh: Produce no output when the test
15236         succeeds.
15237
15238 2008-12-16  Bruno Haible  <bruno@clisp.org>
15239
15240         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
15241         expressions.
15242
15243 2008-12-15  Bruno Haible  <bruno@clisp.org>
15244
15245         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
15246         * doc/glibc-functions/flistxattr.texi: Likewise.
15247         * doc/glibc-functions/fopencookie.texi: Likewise.
15248         * doc/glibc-functions/fremovexattr.texi: Likewise.
15249         * doc/glibc-functions/fsetxattr.texi: Likewise.
15250         * doc/glibc-functions/getxattr.texi: Likewise.
15251         * doc/glibc-functions/lgetxattr.texi: Likewise.
15252         * doc/glibc-functions/listxattr.texi: Likewise.
15253         * doc/glibc-functions/llistxattr.texi: Likewise.
15254         * doc/glibc-functions/lremovexattr.texi: Likewise.
15255         * doc/glibc-functions/lsetxattr.texi: Likewise.
15256         * doc/glibc-functions/removexattr.texi: Likewise.
15257         * doc/glibc-functions/setxattr.texi: Likewise.
15258         * doc/posix-functions/open_memstream.texi: Likewise.
15259
15260 2008-12-15  Eric Blake  <ebb9@byu.net>
15261
15262         Update doc for cygwin 1.7.
15263         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
15264         functions.
15265         * doc/posix-functions/fchmodat.texi: Likewise.
15266         * doc/posix-functions/fchownat.texi: Likewise.
15267         * doc/posix-functions/fdopendir.texi: Likewise.
15268         * doc/posix-functions/fmemopen.texi: Likewise.
15269         * doc/posix-functions/freeaddrinfo.texi: Likewise.
15270         * doc/posix-functions/fstatat.texi: Likewise.
15271         * doc/posix-functions/futimens.texi: Likewise.
15272         * doc/posix-functions/gai_strerror.texi: Likewise.
15273         * doc/posix-functions/getaddrinfo.texi: Likewise.
15274         * doc/posix-functions/getnameinfo.texi: Likewise.
15275         * doc/posix-functions/if_freenameindex.texi: Likewise.
15276         * doc/posix-functions/if_indextoname.texi: Likewise.
15277         * doc/posix-functions/if_nameindex.texi: Likewise.
15278         * doc/posix-functions/if_nametoindex.texi: Likewise.
15279         * doc/posix-functions/insque.texi: Likewise.
15280         * doc/posix-functions/linkat.texi: Likewise.
15281         * doc/posix-functions/llrint.texi: Likewise.
15282         * doc/posix-functions/llrintf.texi: Likewise.
15283         * doc/posix-functions/llrintl.texi: Likewise.
15284         * doc/posix-functions/lockf.texi: Likewise.
15285         * doc/posix-functions/lrintl.texi: Likewise.
15286         * doc/posix-functions/mkdirat.texi: Likewise.
15287         * doc/posix-functions/mkfifoat.texi: Likewise.
15288         * doc/posix-functions/mknodat.texi: Likewise.
15289         * doc/posix-functions/mq_close.texi: Likewise.
15290         * doc/posix-functions/mq_getattr.texi: Likewise.
15291         * doc/posix-functions/mq_notify.texi: Likewise.
15292         * doc/posix-functions/mq_open.texi: Likewise.
15293         * doc/posix-functions/mq_receive.texi: Likewise.
15294         * doc/posix-functions/mq_send.texi: Likewise.
15295         * doc/posix-functions/mq_setattr.texi: Likewise.
15296         * doc/posix-functions/mq_timedreceive.texi: Likewise.
15297         * doc/posix-functions/mq_timedsend.texi: Likewise.
15298         * doc/posix-functions/mq_unlink.texi: Likewise.
15299         * doc/posix-functions/open_memstream.texi: Likewise.
15300         * doc/posix-functions/openat.texi: Likewise.
15301         * doc/posix-functions/posix_fadvise.texi: Likewise.
15302         * doc/posix-functions/posix_fallocate.texi: Likewise.
15303         * doc/posix-functions/posix_madvise.texi: Likewise.
15304         * doc/posix-functions/posix_memalign.texi: Likewise.
15305         * doc/posix-functions/posix_openpt.texi: Likewise.
15306         * doc/posix-functions/readlinkat.texi: Likewise.
15307         * doc/posix-functions/remque.texi: Likewise.
15308         * doc/posix-functions/renameat.texi: Likewise.
15309         * doc/posix-functions/rintl.texi: Likewise.
15310         * doc/posix-functions/sem_unlink.texi: Likewise.
15311         * doc/posix-functions/shm_open.texi: Likewise.
15312         * doc/posix-functions/shm_unlink.texi: Likewise.
15313         * doc/posix-functions/signgam.texi: Likewise.
15314         * doc/posix-functions/sigset.texi: Likewise.
15315         * doc/posix-functions/stpcpy.texi: Likewise.
15316         * doc/posix-functions/stpncpy.texi: Likewise.
15317         * doc/posix-functions/strerror.texi: Likewise.
15318         * doc/posix-functions/strtod.texi: Likewise.
15319         * doc/posix-functions/symlinkat.texi: Likewise.
15320         * doc/posix-functions/unlinkat.texi: Likewise.
15321         * doc/posix-functions/utimensat.texi: Likewise.
15322         * doc/glibc-functions/bindresvport.texi: Likewise.
15323         * doc/glibc-functions/dn_expand.texi: Likewise.
15324         * doc/glibc-functions/exp10.texi: Likewise.
15325         * doc/glibc-functions/exp10f.texi: Likewise.
15326         * doc/glibc-functions/fgetxattr.texi: Likewise.
15327         * doc/glibc-functions/flistxattr.texi: Likewise.
15328         * doc/glibc-functions/fopencookie.texi: Likewise.
15329         * doc/glibc-functions/freeifaddrs.texi: Likewise.
15330         * doc/glibc-functions/fremovexattr.texi: Likewise.
15331         * doc/glibc-functions/fsetxattr.texi: Likewise.
15332         * doc/glibc-functions/getifaddrs.texi: Likewise.
15333         * doc/glibc-functions/getxattr.texi: Likewise.
15334         * doc/glibc-functions/lgetxattr.texi: Likewise.
15335         * doc/glibc-functions/listxattr.texi: Likewise.
15336         * doc/glibc-functions/llistxattr.texi: Likewise.
15337         * doc/glibc-functions/lremovexattr.texi: Likewise.
15338         * doc/glibc-functions/lsetxattr.texi: Likewise.
15339         * doc/glibc-functions/pow10.texi: Likewise.
15340         * doc/glibc-functions/pow10f.texi: Likewise.
15341         * doc/glibc-functions/rcmd_af.texi: Likewise.
15342         * doc/glibc-functions/removexattr.texi: Likewise.
15343         * doc/glibc-functions/res_init.texi: Likewise.
15344         * doc/glibc-functions/res_mkquery.texi: Likewise.
15345         * doc/glibc-functions/res_query.texi: Likewise.
15346         * doc/glibc-functions/res_querydomain.texi: Likewise.
15347         * doc/glibc-functions/res_send.texi: Likewise.
15348         * doc/glibc-functions/rresvport_af.texi: Likewise.
15349         * doc/glibc-functions/setxattr.texi: Likewise.
15350         * doc/glibc-functions/strcasestr.texi: Likewise.
15351
15352 2008-12-15  Bruno Haible  <bruno@clisp.org>
15353
15354         Fix compilation error on OSF/1 4.0.
15355         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
15356         <sys/time.h>, simply delegate to the system header.
15357         Reported by Daniel Richard G. <oss@teragram.com>.
15358
15359 2008-12-15  Bruno Haible  <bruno@clisp.org>
15360
15361         * doc/posix-functions/openat.texi: Mention the 'openat' module.
15362         * doc/posix-functions/fchmodat.texi: Likewise.
15363         * doc/posix-functions/fchownat.texi: Likewise.
15364         * doc/posix-functions/fdopendir.texi: Likewise.
15365         * doc/posix-functions/fstatat.texi: Likewise.
15366         * doc/posix-functions/mkdirat.texi: Likewise.
15367         * doc/posix-functions/unlinkat.texi: Likewise.
15368
15369 2008-12-14  Bruno Haible  <bruno@clisp.org>
15370
15371         Update doc for POSIX:2008.
15372         * doc/posix-functions/faccessat.texi: New file.
15373         * doc/posix-functions/fchmodat.texi: New file.
15374         * doc/posix-functions/fchownat.texi: New file.
15375         * doc/posix-functions/fdopendir.texi: New file.
15376         * doc/posix-functions/fstatat.texi: New file.
15377         * doc/posix-functions/futimens.texi: New file.
15378         * doc/posix-functions/linkat.texi: New file.
15379         * doc/posix-functions/mkdirat.texi: New file.
15380         * doc/posix-functions/mkfifoat.texi: New file.
15381         * doc/posix-functions/mknodat.texi: New file.
15382         * doc/posix-functions/open_wmemstream.texi: New file.
15383         * doc/posix-functions/openat.texi: New file.
15384         * doc/posix-functions/psiginfo.texi: New file.
15385         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
15386         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
15387         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
15388         * doc/posix-functions/readlinkat.texi: New file.
15389         * doc/posix-functions/renameat.texi: New file.
15390         * doc/posix-functions/strerror_l.texi: New file.
15391         * doc/posix-functions/symlinkat.texi: New file.
15392         * doc/posix-functions/unlinkat.texi: New file.
15393         * doc/posix-functions/utimensat.texi: New file.
15394         * doc/gnulib.texi (Function Substitutes): Add these subsections.
15395
15396 2008-12-14  Bruno Haible  <bruno@clisp.org>
15397
15398         Update doc for POSIX:2008.
15399         * doc/posix-functions/alphasort.texi: Renamed from
15400         doc/glibc-functions/alphasort.texi.
15401         * doc/posix-functions/dirfd.texi: Renamed from
15402         doc/glibc-functions/dirfd.texi.
15403         * doc/posix-functions/dprintf.texi: Renamed from
15404         doc/glibc-functions/dprintf.texi.
15405         * doc/posix-functions/duplocale.texi: Renamed from
15406         doc/glibc-functions/duplocale.texi.
15407         * doc/posix-functions/fexecve.texi: Renamed from
15408         doc/glibc-functions/fexecve.texi.
15409         * doc/posix-functions/fmemopen.texi: Renamed from
15410         doc/glibc-functions/fmemopen.texi.
15411         * doc/posix-functions/freelocale.texi: Renamed from
15412         doc/glibc-functions/freelocale.texi.
15413         * doc/posix-functions/getdate_err.texi: Renamed from
15414         doc/glibc-functions/getdate_err.texi.
15415         * doc/posix-functions/isalnum_l.texi: Renamed from
15416         doc/glibc-functions/isalnum_l.texi.
15417         * doc/posix-functions/isalpha_l.texi: Renamed from
15418         doc/glibc-functions/isalpha_l.texi.
15419         * doc/posix-functions/isblank_l.texi: Renamed from
15420         doc/glibc-functions/isblank_l.texi.
15421         * doc/posix-functions/iscntrl_l.texi: Renamed from
15422         doc/glibc-functions/iscntrl_l.texi.
15423         * doc/posix-functions/isdigit_l.texi: Renamed from
15424         doc/glibc-functions/isdigit_l.texi.
15425         * doc/posix-functions/isgraph_l.texi: Renamed from
15426         doc/glibc-functions/isgraph_l.texi.
15427         * doc/posix-functions/islower_l.texi: Renamed from
15428         doc/glibc-functions/islower_l.texi.
15429         * doc/posix-functions/isprint_l.texi: Renamed from
15430         doc/glibc-functions/isprint_l.texi.
15431         * doc/posix-functions/ispunct_l.texi: Renamed from
15432         doc/glibc-functions/ispunct_l.texi.
15433         * doc/posix-functions/isspace_l.texi: Renamed from
15434         doc/glibc-functions/isspace_l.texi.
15435         * doc/posix-functions/isupper_l.texi: Renamed from
15436         doc/glibc-functions/isupper_l.texi.
15437         * doc/posix-functions/iswalnum_l.texi: Renamed from
15438         doc/glibc-functions/iswalnum_l.texi.
15439         * doc/posix-functions/iswalpha_l.texi: Renamed from
15440         doc/glibc-functions/iswalpha_l.texi.
15441         * doc/posix-functions/iswblank_l.texi: Renamed from
15442         doc/glibc-functions/iswblank_l.texi.
15443         * doc/posix-functions/iswcntrl_l.texi: Renamed from
15444         doc/glibc-functions/iswcntrl_l.texi.
15445         * doc/posix-functions/iswctype_l.texi: Renamed from
15446         doc/glibc-functions/iswctype_l.texi.
15447         * doc/posix-functions/iswdigit_l.texi: Renamed from
15448         doc/glibc-functions/iswdigit_l.texi.
15449         * doc/posix-functions/iswgraph_l.texi: Renamed from
15450         doc/glibc-functions/iswgraph_l.texi.
15451         * doc/posix-functions/iswlower_l.texi: Renamed from
15452         doc/glibc-functions/iswlower_l.texi.
15453         * doc/posix-functions/iswprint_l.texi: Renamed from
15454         doc/glibc-functions/iswprint_l.texi.
15455         * doc/posix-functions/iswpunct_l.texi: Renamed from
15456         doc/glibc-functions/iswpunct_l.texi.
15457         * doc/posix-functions/iswspace_l.texi: Renamed from
15458         doc/glibc-functions/iswspace_l.texi.
15459         * doc/posix-functions/iswupper_l.texi: Renamed from
15460         doc/glibc-functions/iswupper_l.texi.
15461         * doc/posix-functions/iswxdigit_l.texi: Renamed from
15462         doc/glibc-functions/iswxdigit_l.texi.
15463         * doc/posix-functions/isxdigit_l.texi: Renamed from
15464         doc/glibc-functions/isxdigit_l.texi.
15465         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
15466         doc/glibc-functions/mbsnrtowcs.texi.
15467         * doc/posix-functions/mkdtemp.texi: Renamed from
15468         doc/glibc-functions/mkdtemp.texi.
15469         * doc/posix-functions/newlocale.texi: Renamed from
15470         doc/glibc-functions/newlocale.texi.
15471         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
15472         doc/glibc-functions/nl_langinfo_l.texi.
15473         * doc/posix-functions/open_memstream.texi: Renamed from
15474         doc/glibc-functions/open_memstream.texi.
15475         * doc/posix-functions/opterr.texi: Renamed from
15476         doc/glibc-functions/opterr.texi.
15477         * doc/posix-functions/optind.texi: Renamed from
15478         doc/glibc-functions/optind.texi.
15479         * doc/posix-functions/optopt.texi: Renamed from
15480         doc/glibc-functions/optopt.texi.
15481         * doc/posix-functions/psignal.texi: Renamed from
15482         doc/glibc-functions/psignal.texi.
15483         * doc/posix-functions/scandir.texi: Renamed from
15484         doc/glibc-functions/scandir.texi.
15485         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
15486         doc/glibc-functions/sched_get_priority_min.texi.
15487         * doc/posix-functions/signgam.texi: Renamed from
15488         doc/glibc-functions/signgam.texi.
15489         * doc/posix-functions/stpcpy.texi: Renamed from
15490         doc/glibc-functions/stpcpy.texi.
15491         * doc/posix-functions/stpncpy.texi: Renamed from
15492         doc/glibc-functions/stpncpy.texi.
15493         * doc/posix-functions/strcasecmp_l.texi: Renamed from
15494         doc/glibc-functions/strcasecmp_l.texi.
15495         * doc/posix-functions/strcoll_l.texi: Renamed from
15496         doc/glibc-functions/strcoll_l.texi.
15497         * doc/posix-functions/strfmon_l.texi: Renamed from
15498         doc/glibc-functions/strfmon_l.texi.
15499         * doc/posix-functions/strftime_l.texi: Renamed from
15500         doc/glibc-functions/strftime_l.texi.
15501         * doc/posix-functions/strncasecmp_l.texi: Renamed from
15502         doc/glibc-functions/strncasecmp_l.texi.
15503         * doc/posix-functions/strndup.texi: Renamed from
15504         doc/glibc-functions/strndup.texi.
15505         * doc/posix-functions/strnlen.texi: Renamed from
15506         doc/glibc-functions/strnlen.texi.
15507         * doc/posix-functions/strsignal.texi: Renamed from
15508         doc/glibc-functions/strsignal.texi.
15509         * doc/posix-functions/strxfrm_l.texi: Renamed from
15510         doc/glibc-functions/strxfrm_l.texi.
15511         * doc/posix-functions/timer_gettime.texi: Renamed from
15512         doc/glibc-functions/timer_gettime.texi.
15513         * doc/posix-functions/tolower_l.texi: Renamed from
15514         doc/glibc-functions/tolower_l.texi.
15515         * doc/posix-functions/toupper_l.texi: Renamed from
15516         doc/glibc-functions/toupper_l.texi.
15517         * doc/posix-functions/towctrans_l.texi: Renamed from
15518         doc/glibc-functions/towctrans_l.texi.
15519         * doc/posix-functions/towlower_l.texi: Renamed from
15520         doc/glibc-functions/towlower_l.texi.
15521         * doc/posix-functions/towupper_l.texi: Renamed from
15522         doc/glibc-functions/towupper_l.texi.
15523         * doc/posix-functions/uselocale.texi: Renamed from
15524         doc/glibc-functions/uselocale.texi.
15525         * doc/posix-functions/vdprintf.texi: Renamed from
15526         doc/glibc-functions/vdprintf.texi.
15527         * doc/posix-functions/wcpcpy.texi:
15528         Renamed from doc/glibc-functions/wcpcpy.texi.
15529         * doc/posix-functions/wcpncpy.texi: Renamed from
15530         doc/glibc-functions/wcpncpy.texi.
15531         * doc/posix-functions/wcscasecmp.texi: Renamed from
15532         doc/glibc-functions/wcscasecmp.texi.
15533         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
15534         doc/glibc-functions/wcscasecmp_l.texi.
15535         * doc/posix-functions/wcscoll_l.texi: Renamed from
15536         doc/glibc-functions/wcscoll_l.texi.
15537         * doc/posix-functions/wcsdup.texi: Renamed from
15538         doc/glibc-functions/wcsdup.texi.
15539         * doc/posix-functions/wcsncasecmp.texi: Renamed from
15540         doc/glibc-functions/wcsncasecmp.texi.
15541         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
15542         doc/glibc-functions/wcsncasecmp_l.texi.
15543         * doc/posix-functions/wcsnlen.texi: Renamed from
15544         doc/glibc-functions/wcsnlen.texi.
15545         * doc/posix-functions/wcsnrtombs.texi: Renamed from
15546         doc/glibc-functions/wcsnrtombs.texi.
15547         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
15548         doc/glibc-functions/wcsxfrm_l.texi.
15549         * doc/posix-functions/wctrans_l.texi: Renamed from
15550         doc/glibc-functions/wctrans_l.texi.
15551         * doc/posix-functions/wctype_l.texi: Renamed from
15552         doc/glibc-functions/wctype_l.texi.
15553         * doc/gnulib.texi (Function Substitutes): Add these subsections.
15554         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
15555         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
15556         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
15557         these subsections.
15558         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
15559         Remove sections.
15560
15561 2008-12-14  Bruno Haible  <bruno@clisp.org>
15562
15563         Update doc for POSIX:2008.
15564         * doc/posix-functions/*.texi: Update URL of POSIX specification.
15565
15566 2008-12-14  Bruno Haible  <bruno@clisp.org>
15567
15568         Update doc for POSIX:2008.
15569         * doc/pastposix-functions/bcmp.texi: Renamed from
15570         doc/posix-functions/bcmp.texi.
15571         * doc/pastposix-functions/bcopy.texi: Renamed from
15572         doc/posix-functions/bcopy.texi.
15573         * doc/pastposix-functions/bsd_signal.texi: Renamed from
15574         doc/posix-functions/bsd_signal.texi.
15575         * doc/pastposix-functions/bzero.texi: Renamed from
15576         doc/posix-functions/bzero.texi.
15577         * doc/pastposix-functions/ecvt.texi: Renamed from
15578         doc/posix-functions/ecvt.texi.
15579         * doc/pastposix-functions/fcvt.texi: Renamed from
15580         doc/posix-functions/fcvt.texi.
15581         * doc/pastposix-functions/ftime.texi: Renamed from
15582         doc/posix-functions/ftime.texi.
15583         * doc/pastposix-functions/gcvt.texi: Renamed from
15584         doc/posix-functions/gcvt.texi.
15585         * doc/pastposix-functions/getcontext.texi: Renamed from
15586         doc/posix-functions/getcontext.texi.
15587         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
15588         doc/posix-functions/gethostbyaddr.texi.
15589         * doc/pastposix-functions/gethostbyname.texi: Renamed from
15590         doc/posix-functions/gethostbyname.texi.
15591         * doc/pastposix-functions/getwd.texi: Renamed from
15592         doc/posix-functions/getwd.texi.
15593         * doc/pastposix-functions/h_errno.texi: Renamed from
15594         doc/posix-functions/h_errno.texi.
15595         * doc/pastposix-functions/index.texi: Renamed from
15596         doc/posix-functions/index.texi.
15597         * doc/pastposix-functions/makecontext.texi: Renamed from
15598         doc/posix-functions/makecontext.texi.
15599         * doc/pastposix-functions/mktemp.texi: Renamed from
15600         doc/posix-functions/mktemp.texi.
15601         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
15602         doc/posix-functions/pthread_attr_getstackaddr.texi.
15603         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
15604         doc/posix-functions/pthread_attr_setstackaddr.texi.
15605         * doc/pastposix-functions/rindex.texi: Renamed from
15606         doc/posix-functions/rindex.texi.
15607         * doc/pastposix-functions/scalb.texi: Renamed from
15608         doc/posix-functions/scalb.texi.
15609         * doc/pastposix-functions/setcontext.texi: Renamed from
15610         doc/posix-functions/setcontext.texi.
15611         * doc/pastposix-functions/swapcontext.texi: Renamed from
15612         doc/posix-functions/swapcontext.texi.
15613         * doc/pastposix-functions/ualarm.texi: Renamed from
15614         doc/posix-functions/ualarm.texi.
15615         * doc/pastposix-functions/usleep.texi: Renamed from
15616         doc/posix-functions/usleep.texi.
15617         * doc/pastposix-functions/vfork.texi: Renamed from
15618         doc/posix-functions/vfork.texi.
15619         * doc/pastposix-functions/wcswcs.texi: Renamed from
15620         doc/posix-functions/wcswcs.texi.
15621         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
15622         (Function Substitutes): Update.
15623
15624 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15625
15626         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
15627         m4/strerror.m4.
15628
15629 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15630             Bruno Haible  <bruno@clisp.org>
15631
15632         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
15633
15634 2008-12-13  Bruno Haible  <bruno@clisp.org>
15635
15636         * modules/strtoull (Depends-on): Remove unistd.
15637
15638 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15639
15640         * modules/strtoull (Depends-on): Add stdlib.
15641
15642 2008-12-11  Simon Josefsson  <simon@josefsson.org>
15643
15644         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
15645
15646 2008-12-10  Jim Meyering  <meyering@redhat.com>
15647
15648         gl_ASSERT: don't say assertions are disabled when they're not
15649         * m4/assert.m4 (gl_ASSERT): Do not make configure report
15650         "checking whether to enable assertions... no", when they are in
15651         fact enabled.  This is solely a bug in the output of configure.
15652         In spite of saying "no", NDEBUG was not defined in that case.
15653         Also, as noted by Eric Blake, leave assertions enabled upon
15654         --enable-assert=INVALID.
15655
15656 2008-12-10  Bruno Haible  <bruno@clisp.org>
15657
15658         Change MODULES.html to refer to POSIX:2008 where possible.
15659         * MODULES.html.sh (POSIX2008_URL): New variable.
15660         (posix_headers): Remove sys/timeb, ucontext.
15661         (posix2001_headers): New variable.
15662         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
15663         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
15664         index, makecontext, mktemp, pthread_attr_getstackaddr,
15665         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
15666         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
15667         (posix2001_functions): New variable.
15668         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
15669         otherwise.
15670
15671 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15672
15673         add missing include to parse-duration.c
15674         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
15675         * modules/parse-duration (Depends-on): Add xalloc.
15676
15677         fix sed script reading maint.mk
15678         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
15679         (syntax-check-rules): Use it.
15680
15681 2008-12-09  Bruno Haible  <bruno@clisp.org>
15682
15683         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
15684         MacOS X 10.4/PowerPC.
15685         Reported by Simon Josefsson.
15686
15687 2008-12-08  Jim Meyering  <meyering@redhat.com>
15688
15689         work around mingw's lack of some S_IF definitions
15690         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
15691         Reported by Simon Josefsson.
15692
15693 2008-12-08  Bruno Haible  <bruno@clisp.org>
15694
15695         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
15696         applied to variables. Needed on MacOS X 10.4/PowerPC.
15697         Reported by Simon Josefsson.
15698
15699 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
15700         and Eric Blake  <ebb9@byu.net>
15701
15702         assert: honor --enable-assert
15703         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
15704         order to honor --enable-assert, rather than treating it as a
15705         synonym for --disable-assert.
15706
15707 2008-12-08  Jim Meyering  <meyering@redhat.com>
15708
15709         * lib/posixtm.c: Remove now-useless declaration of mktime.
15710
15711         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
15712
15713 2008-12-07  Bruno Haible  <bruno@clisp.org>
15714
15715         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
15716         test_once): Mark functions as static.
15717         * tests/test-tls.c (test_tls): Likewise.
15718
15719 2008-12-07  Bruno Haible  <bruno@clisp.org>
15720
15721         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
15722         iconv_register_autodetect.
15723
15724 2008-12-07  Jim Meyering  <meyering@redhat.com>
15725
15726         posixtm.c: avoid a warning
15727         * lib/posixtm.c (posixtime): Don't initialize tm0.
15728         It's no longer needed to placate gcc4's -Wuninitialized,
15729         and the attempt to placate would elicit a new warning.
15730
15731         unicodeio.c: mark unused parameters
15732         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
15733         (fallback_failure_callback): Likewise.
15734
15735 2008-12-07  Bruno Haible  <bruno@clisp.org>
15736
15737         * gnulib-tool (func_create_testdir): When building the tests
15738         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
15739         Reported by Simon Josefsson.
15740
15741 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15742
15743         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
15744
15745 2008-12-06  Bruno Haible  <bruno@clisp.org>
15746
15747         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
15748         Suggested by Eric Blake.
15749
15750 2008-12-06  Bruno Haible  <bruno@clisp.org>
15751
15752         Fix a c-stack test failure on MacOS X.
15753         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
15754         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
15755         handler for SIGBUS as well.
15756         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
15757         install a signal handler for SIGBUS as well.
15758         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
15759
15760 2008-12-06  Bruno Haible  <bruno@clisp.org>
15761
15762         Advocacy documentation.
15763         * doc/gnulib-intro.texi (Benefits): New section.
15764         * doc/gnulib.texi: Update.
15765
15766 2008-12-06  Bruno Haible  <bruno@clisp.org>
15767
15768         Document the 'manywarnings' module.
15769         * doc/manywarnings.texi: New file.
15770         * doc/gnulib.texi: Include it.
15771
15772 2008-12-05  Eric Blake  <ebb9@byu.net>
15773
15774         tests: silence some gcc warnings
15775         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
15776         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
15777         type mismatches.
15778
15779 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15780             Bruno Haible  <bruno@clisp.org>
15781
15782         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
15783
15784 2008-11-29  Jim Meyering  <meyering@redhat.com>
15785
15786         unicodeio.c: mark unused parameters
15787         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
15788         (fallback_failure_callback): Likewise.
15789
15790         fts: fix a thinko
15791         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
15792         (set_stat_type): Return S_IF*-valued "type" directly.
15793         Prompted by James Youngman's spotting a related bug.
15794         Confirmed by further testing through find.
15795
15796         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
15797         * lib/fts.c (D_TYPE): Define.
15798         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
15799         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
15800         (s_ifmt_shift_bits): New function.
15801         (set_stat_type): New function.
15802         (fts_build): When not calling fts_stat, call set_stat_type
15803         to propagate dirent.d_type info to fts_read caller.
15804         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
15805         fts_statp->st_mode type information may be valid.
15806
15807 2008-11-28  Simon Josefsson  <simon@josefsson.org>
15808
15809         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
15810         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
15811         <sds@gnu.org>.
15812
15813 2008-11-20  Bruno Haible  <bruno@clisp.org>
15814
15815         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
15816         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
15817         INCLUDE_NEXT.
15818         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
15819         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
15820         * modules/math (Makefile.am): Substitute
15821         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
15822         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15823
15824 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
15825             Bruno Haible  <bruno@clisp.org>
15826
15827         * lib/stdint.in.h: Define all type macros so that their expansion is
15828         a single typedef'ed token. Fixes a compilation failure in Boost which
15829         does "using ::int8_t;".
15830
15831 2008-11-18  Simon Josefsson  <simon@josefsson.org>
15832
15833         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
15834         gl_MANYWARN_ALL_GCC.
15835         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
15836         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
15837         * modules/manywarnings: New file.
15838         * MODULES.html.sh: Mention manywarnings module.
15839
15840 2008-11-18  Bruno Haible  <bruno@clisp.org>
15841
15842         * doc/gnulib-tool.texi (Unit tests): New section.
15843
15844 2008-11-18  Simon Josefsson  <simon@josefsson.org>
15845
15846         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
15847         paths like 'lib/po/foo.po'.
15848
15849 2008-11-17  Simon Josefsson  <simon@josefsson.org>
15850
15851         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
15852         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
15853
15854 2008-11-17  Simon Josefsson  <simon@josefsson.org>
15855
15856         * m4/warnings.m4: Use CPPFLAGS to really check whether the
15857         parameter works.
15858
15859 2008-11-17  Simon Josefsson  <simon@josefsson.org>
15860
15861         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
15862
15863 2008-11-17  Bruce Korb  <bkorb@gnu.org>
15864
15865         * modules/parse-duration-tests: New file.
15866         * tests/test-parse-duration.sh: New file.
15867         * tests/test-parse-duration.c: New file.
15868
15869         New module 'parse-duration'.
15870         * lib/parse-duration.h: New file.
15871         * lib/parse-duration.c: New file.
15872         * modules/parse-duration: New file.
15873
15874 2008-11-17  Bruno Haible  <bruno@clisp.org>
15875
15876         * tests/test-select-out.sh: Comment out the first pipe test.
15877         Reported by Simon Josefsson.
15878
15879 2008-11-17  Bruno Haible  <bruno@clisp.org>
15880
15881         * modules/getaddrinfo (Depends-on): Add servent, hostent.
15882         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
15883         gl_HOSTENT.
15884
15885 2008-11-17  Bruno Haible  <bruno@clisp.org>
15886
15887         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
15888         -lnetwork and -lnet. Needed for Haiku and BeOS.
15889
15890 2008-11-16  Bruno Haible  <bruno@clisp.org>
15891
15892         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
15893
15894 2008-11-16  Bruno Haible  <bruno@clisp.org>
15895
15896         Avoid test failure on Haiku.
15897         * tests/test-fsync.c: Include <errno.h>.
15898         (main): Don't require that fsync (0) fails.
15899
15900 2008-11-15  Bruno Haible  <bruno@clisp.org>
15901
15902         New module 'hostent'.
15903         * modules/hostent: New file.
15904         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
15905
15906 2008-11-15  Bruno Haible  <bruno@clisp.org>
15907
15908         New module 'servent'.
15909         * modules/servent: New file.
15910         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
15911
15912 2008-11-15  Bruno Haible  <bruno@clisp.org>
15913
15914         Avoid generating same test program with two different rules.
15915         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
15916         test-frexp to test-frexp-nolibm.
15917         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
15918         test-frexpl to test-frexpl-nolibm.
15919
15920 2008-11-15  Bruno Haible  <bruno@clisp.org>
15921
15922         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
15923         $(FREXPL_LIBM).
15924
15925 2008-11-15  Bruno Haible  <bruno@clisp.org>
15926
15927         * lib/netdb.in.h: Activate the definitions also when the system's
15928         <netdb.h> has 'struct addrinfo'.
15929         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
15930         EAI_OVERFLOW or AI_NUMERICSERV.
15931         * doc/posix-headers/netdb.texi: Document the problem.
15932
15933 2008-11-15  Bruno Haible  <bruno@clisp.org>
15934
15935         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
15936
15937         Make the 'sched' module work on platforms where <sched.h> exists but
15938         is incomplete (such as Haiku).
15939         * lib/sched.in.h; Include the system's <sched.h> if it exists.
15940         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
15941         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
15942         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
15943         HAVE_STRUCT_SCHED_PARAM.
15944         * modules/sched (Depends-on): Add include_next.
15945         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
15946         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
15947         * doc/posix-headers/sched.texi: Document the issue.
15948
15949 2008-11-13  Jim Meyering  <meyering@redhat.com>
15950
15951         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
15952         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
15953         test would fail due to the difference in the Report bugs to ...
15954         line.  The expected address is empty, "<>", while the actual
15955         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
15956
15957 2008-11-12  Bruno Haible  <bruno@clisp.org>
15958
15959         lstat: don't compile lstat.c on systems lacking lstat
15960         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
15961         which don't have lstat; this is handled by lib/sys_stat.in.h already.
15962         Reported by Daniel P. Berrange via Jim Meyering.
15963
15964 2008-11-12  Jim Meyering  <meyering@redhat.com>
15965
15966         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
15967
15968 2008-11-12  Simon Josefsson  <simon@josefsson.org>
15969
15970         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
15971         instead.
15972
15973 2008-11-12  Bruno Haible  <bruno@clisp.org>
15974
15975         * lib/unicodeio.c: Include unistr.h.
15976         (utf8_wctomb): Remove function.
15977         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
15978
15979 2008-11-12  Simon Josefsson  <simon@josefsson.org>
15980
15981         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
15982         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
15983         <bruno@clisp.org>.
15984         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
15985
15986 2008-11-12  Simon Josefsson  <simon@josefsson.org>
15987
15988         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
15989         * doc/gnulib.texi: Add section for warnings.
15990
15991 2008-11-11  Bruno Haible  <bruno@clisp.org>
15992
15993         * lib/sockets.h: Add a comment.
15994
15995 2008-11-11  Karl Berry  <karl@gnu.org>
15996
15997         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
15998
15999 2008-11-11  Eric Blake  <ebb9@byu.net>
16000
16001         fdl.texi: avoid git symlinks
16002         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
16003
16004 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
16005
16006         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
16007
16008 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
16009
16010         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
16011         (gl_WARN_ADD): Substitute $2 if literal.
16012
16013 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
16014
16015         * m4/warning.m4: Remove.
16016
16017 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
16018
16019         * m4/warnings.m4: Almost complete rewrite. :-)
16020
16021 2008-11-10  Simon Josefsson  <simon@josefsson.org>
16022
16023         * modules/warnings: New module.
16024         * m4/warnings.m4: New file.
16025         * MODULES.html.sh: Mention warnings module.
16026         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
16027         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16028
16029 2008-11-10  Eric Blake  <ebb9@byu.net>
16030
16031         fdl.texi: make a symlink to the latest version
16032         * doc/standards.texi: Revert today's earlier change.
16033         * doc/fdl-1.2.texi: Rename from old fdl.texi...
16034         * doc/fdl.texi: ...and replace this with a symlink to the newer
16035         fdl-1.3.texi.
16036
16037 2008-11-10  Bruno Haible  <bruno@clisp.org>
16038
16039         * tests/test-select-fd.c (main): Accept the result file name as fourth
16040         argument.
16041         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
16042         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
16043
16044 2008-11-10  Bruno Haible  <bruno@clisp.org>
16045
16046         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
16047         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
16048         as autoconf-substituted macros.
16049         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
16050         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
16051         gl_NETDB_H_DEFAULTS. Set these variables.
16052         * modules/netdb (Makefile.am): Substitute these variables.
16053
16054 2008-11-10  Eric Blake  <ebb9@byu.net>
16055
16056         standards.texi: include correct file for FDL 1.3
16057         * doc/standards.texi (GNU Free Documentation License): Change
16058         include file to pull in FDL 1.3, not 1.2.
16059
16060         fdl.texi: revert accidental change to license
16061         * doc/fdl.texi: This is FDL 1.2, not 1.3.
16062
16063 2008-11-10  Bruno Haible  <bruno@clisp.org>
16064
16065         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
16066         cross-compiling guesses also when the native compile gives no result.
16067
16068 2008-11-10  Bruno Haible  <bruno@clisp.org>
16069
16070         * lib/spawni.c (__spawni): Force variable into the stack.
16071
16072 2008-11-10  Bruno Haible  <bruno@clisp.org>
16073
16074         Add support for Haiku.
16075         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
16076         glibc and BeOS, but also on Haiku.
16077         * lib/fpurge.c (fpurge): Likewise.
16078         * lib/freadable.c (freadable): Likewise.
16079         * lib/freadahead.c (freadahead): Likewise.
16080         * lib/freading.c (freading): Likewise.
16081         * lib/freadptr.c (freadptr): Likewise.
16082         * lib/freadseek.c (freadptrinc): Likewise.
16083         * lib/fseeko.c (rpl_fseeko): Likewise.
16084         * lib/fseterr.c (fseterr): Likewise.
16085         * lib/fwritable.c (fwritable): Likewise.
16086         * lib/fwriting.c (fwriting): Likewise.
16087         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
16088
16089 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
16090
16091         * lib/config.charset: Treat Haiku like BeOS.
16092
16093 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
16094
16095         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
16096         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
16097
16098 2008-11-08  Bruno Haible  <bruno@clisp.org>
16099
16100         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
16101         AC_CACHE_CHECK.
16102
16103 2008-11-08  Bruno Haible  <bruno@clisp.org>
16104
16105         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
16106
16107 2008-11-08  Bruno Haible  <bruno@clisp.org>
16108
16109         * tests/test-select-fd.c: New file.
16110         * tests/test-select-in.sh: New file.
16111         * tests/test-select-out.sh: New file.
16112         * tests/test-select-stdin.c: New file.
16113         * modules/select-tests (Files): Add the new files.
16114         (Depends-on): Add gettimeofday.
16115         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
16116         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
16117         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
16118
16119 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
16120             Bruno Haible  <bruno@clisp.org>
16121
16122         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
16123
16124 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
16125
16126         * build-aux/pmccabe2html: Added support for C++ source files.
16127
16128 2008-11-05  Ben Pfaff  <blp@gnu.org>
16129
16130         Fix lib/close.c build on Windows.
16131         * modules/close (Files): Add lib/w32sock.h.
16132
16133 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
16134
16135         Accept Bison's NEWS format.
16136         * build-aux/announce-gen (print_news_deltas): Tweak
16137         $re_prefix.
16138
16139 2008-11-04  Bruno Haible  <bruno@clisp.org>
16140
16141         * modules/random_r (Maintainer): Add glibc.
16142
16143 2008-11-04  Simon Josefsson  <simon@josefsson.org>
16144
16145         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
16146         by karl@freefriends.org (Karl Berry).
16147         * doc/alloca.texi: Likewise.
16148         * doc/c-ctype.texi: Likewise.
16149         * doc/c-strcase.texi: Likewise.
16150         * doc/c-strcaseeq.texi: Likewise.
16151         * doc/c-strcasestr.texi: Likewise.
16152         * doc/c-strstr.texi: Likewise.
16153         * doc/c-strtod.texi: Likewise.
16154         * doc/c-strtold.texi: Likewise.
16155         * doc/ctime.texi: Likewise.
16156         * doc/error.texi: Likewise.
16157         * doc/fdl.texi: Likewise.
16158         * doc/gcd.texi: Likewise.
16159         * doc/getdate.texi: Likewise.
16160         * doc/gnulib-intro.texi: Likewise.
16161         * doc/gnulib-tool.texi: Likewise.
16162         * doc/gnulib.texi: Likewise.
16163         * doc/inet_ntoa.texi: Likewise.
16164         * doc/maintain.texi: Likewise.
16165         * doc/make-stds.texi: Likewise.
16166         * doc/quote.texi: Likewise.
16167         * doc/regexprops-generic.texi: Likewise.
16168         * doc/standards.texi: Likewise.
16169         * doc/verify.texi: Likewise.
16170         * doc/visibility.texi: Likewise.
16171         * doc/gnulib.texi (GNU Free Documentation License): Include
16172         fdl-1.3.texi instead of fdl.texi.
16173
16174 2008-11-04  Simon Josefsson  <simon@josefsson.org>
16175
16176         * doc/fdl-1.3.texi: New file, from
16177         <http://www.gnu.org/licenses/fdl-1.3.texi>.
16178         * modules/fdl-1.3: Add.
16179         * MODULES.html.sh: Add fdl-1.3.
16180
16181 2008-11-03  Bruno Haible  <bruno@clisp.org>
16182
16183         Make determination of absolute name of header file work with AIX xlc.
16184         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
16185         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
16186         preprocessing.
16187         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
16188         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
16189
16190 2008-11-03  Simon Josefsson  <simon@josefsson.org>
16191
16192         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
16193         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
16194         <ludo@gnu.org>.
16195
16196 2008-11-02  Bruno Haible  <bruno@clisp.org>
16197
16198         Mark 'strpbrk' obsolete.
16199         * modules/strpbrk (Status, Notice): New sections.
16200         * modules/strtok_r (Depends-on): Add strpbrk.
16201
16202 2008-11-02  Bruno Haible  <bruno@clisp.org>
16203
16204         Mark 'strdup' obsolete.
16205         * modules/strdup (Status, Notice): New sections.
16206         * modules/findprog (Depends-on): Add strdup.
16207         * modules/getaddrinfo (Depends-on): Likewise.
16208         * modules/localename (Depends-on): Likewise.
16209         * modules/relocatable-lib (Depends-on): Likewise.
16210         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
16211         * modules/relocatable-prog (Depends-on): Likewise.
16212         * modules/trim (Depends-on): Likewise.
16213         * modules/unictype/gen-ctype (Depends-on): Likewise.
16214         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
16215
16216 2008-11-02  Bruno Haible  <bruno@clisp.org>
16217
16218         Mark 'strcspn' obsolete.
16219         * modules/strcspn (Status, Notice): New sections.
16220
16221 2008-11-02  Bruno Haible  <bruno@clisp.org>
16222
16223         Mark 'rmdir' obsolete.
16224         * modules/rmdir (Status, Notice): New sections.
16225         * modules/clean-temp (Depends-on): Add rmdir.
16226         * modules/openat (Depends-on): Likewise.
16227
16228 2008-11-02  Bruno Haible  <bruno@clisp.org>
16229
16230         Mark 'raise' obsolete.
16231         * modules/raise (Status, Notice): New sections.
16232         (Include): Specify <signal.h>.
16233         * modules/stdio (Depends-on): Add raise.
16234         * modules/write (Depends-on): Likewise.
16235
16236 2008-11-02  Bruno Haible  <bruno@clisp.org>
16237
16238         Mark 'memset' obsolete.
16239         * modules/memset (Status, Notice): New sections.
16240
16241 2008-11-02  Bruno Haible  <bruno@clisp.org>
16242
16243         Mark 'memmove' obsolete.
16244         * modules/memmove (Status, Notice): New sections.
16245         * modules/argp (Depends-on): Add memmove.
16246         * modules/argz (Depends-on): Likewise.
16247         * modules/canonicalize (Depends-on): Likewise.
16248         * modules/canonicalize-lgpl (Depends-on): Likewise.
16249         * modules/fts (Depends-on): Likewise.
16250         * modules/getcwd (Depends-on): Likewise.
16251         * modules/human (Depends-on): Likewise.
16252         * modules/regex (Depends-on): Likewise.
16253         * modules/striconveh (Depends-on): Likewise.
16254         * modules/trim (Depends-on): Likewise.
16255         * modules/unistr/u8-move (Depends-on): Likewise.
16256         * modules/unistr/u16-move (Depends-on): Likewise.
16257         * modules/unistr/u32-move (Depends-on): Likewise.
16258
16259 2008-11-02  Bruno Haible  <bruno@clisp.org>
16260
16261         Mark 'memcpy' obsolete.
16262         * modules/memcpy (Status, Notice): New sections.
16263
16264 2008-11-02  Bruno Haible  <bruno@clisp.org>
16265
16266         Mark 'memcmp' obsolete.
16267         * modules/memcmp (Status, Notice): New sections.
16268         * modules/argmatch (Depends-on): Add memchr.
16269         * modules/backupfile (Depends-on): Likewise.
16270         * modules/c-strcasestr (Depends-on): Likewise.
16271         * modules/crypto/des (Depends-on): Likewise.
16272         * modules/csharpcomp (Depends-on): Likewise.
16273         * modules/fnmatch (Depends-on): Likewise.
16274         * modules/git-merge-changelog (Depends-on): Likewise.
16275         * modules/isnand (Depends-on): Likewise.
16276         * modules/isnand-nolibm (Depends-on): Likewise.
16277         * modules/isnanf (Depends-on): Likewise.
16278         * modules/isnanf-nolibm (Depends-on): Likewise.
16279         * modules/isnanl (Depends-on): Likewise.
16280         * modules/isnanl-nolibm (Depends-on): Likewise.
16281         * modules/mbchar (Depends-on): Likewise.
16282         * modules/memcoll (Depends-on): Likewise.
16283         * modules/quotearg (Depends-on): Likewise.
16284         * modules/regex (Depends-on): Likewise.
16285         * modules/relocatable-prog (Depends-on): Likewise.
16286         * modules/same (Depends-on): Likewise.
16287         * modules/signbit (Depends-on): Likewise.
16288         * modules/strcasestr-simple (Depends-on): Likewise.
16289         * modules/unictype/gen-ctype (Depends-on): Likewise.
16290         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
16291         * modules/uniname/uniname (Depends-on): Likewise.
16292         * modules/unistr/u8-cmp (Depends-on): Likewise.
16293
16294 2008-11-02  Bruno Haible  <bruno@clisp.org>
16295
16296         Mark 'memchr' obsolete.
16297         * modules/memchr (Status, Notice): New sections.
16298         * modules/argp (Depends-on): Add memchr.
16299         * modules/base64 (Depends-on): Likewise.
16300         * modules/c-strcasestr (Depends-on): Likewise.
16301         * modules/chdir-long (Depends-on): Likewise.
16302         * modules/fnmatch (Depends-on): Likewise.
16303         * modules/getsubopt (Depends-on): Likewise.
16304         * modules/git-merge-changelog (Depends-on): Likewise.
16305         * modules/glob (Depends-on): Likewise.
16306         * modules/strcasestr-simple (Depends-on): Likewise.
16307         * modules/strnlen (Depends-on): Likewise.
16308
16309 2008-11-02  Bruno Haible  <bruno@clisp.org>
16310
16311         Mark 'atexit' obsolete.
16312         * modules/atexit (Status, Notice): New sections.
16313         * modules/chdir-long (Depends-on): Add atexit.
16314         * modules/wait-process (Depends-on): Likewise.
16315
16316 2008-11-02  Bruno Haible  <bruno@clisp.org>
16317
16318         * gnulib-tool: New option --with-obsolete.
16319         (func_usage): Document it.
16320         (func_modules_transitive_closure): Drop obsolete dependencies if
16321         incobsolete is not true.
16322         (func_import): Read and save the incobsolete variable to the cache.
16323
16324 2008-11-02  Bruno Haible  <bruno@clisp.org>
16325
16326         * modules/TEMPLATE-EXTENDED: New field 'Status'.
16327         * gnulib-tool: New option --extract-status.
16328         (func_usage): Document it.
16329         (sed_extract_prog): Recognize it.
16330         (func_get_status): New function.
16331
16332 2008-10-30  Simon Josefsson  <simon@josefsson.org>
16333
16334         * modules/sockets (License): Change from LGPL to LGPLv2+.
16335
16336 2008-10-28  Simon Josefsson  <simon@josefsson.org>
16337
16338         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
16339
16340 2008-10-28  Simon Josefsson  <simon@josefsson.org>
16341
16342         * MODULES.html.sh (Support for systems lacking POSIX:2001):
16343         Mention times and sys_times.
16344         * modules/sys_times, modules/sys_times-tests: New modules.
16345         * modules/times, modules/times-tests: Likewise
16346         * m4/sys_times_h.m4: New file.
16347         * lib/sys_times.in.h: Likewise
16348         * lib/times.c: Likewise.
16349         * tests/test-sys_times.c: Likewise.
16350         * tests/test-times.c: Likewise.
16351         * doc/posix-headers/sys_times.texi: Update.
16352         * doc/posix-functions/times.texi: Update.
16353
16354 2008-10-28  Jim Meyering  <meyering@redhat.com>
16355
16356         * modules/tempname (Depends-on): Add lstat.
16357
16358         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
16359
16360 2008-10-28  Simon Josefsson  <simon@josefsson.org>
16361
16362         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
16363         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
16364         using idiom used elsewhere in gnulib.
16365
16366 2008-10-27  Jim Meyering  <meyering@redhat.com>
16367
16368         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
16369
16370 2008-10-27  Simon Josefsson  <simon@josefsson.org>
16371
16372         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
16373         TESTS_ENVIRONMENT, for shell scripts that needs to call built
16374         programs.
16375         * tests/test-argp-2.sh: Use $EXEEXT when needed.
16376
16377 2008-10-27  Simon Josefsson  <simon@josefsson.org>
16378
16379         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
16380
16381 2008-10-27  Bruno Haible  <bruno@clisp.org>
16382
16383         * tests/test-lstat.c: Include <stdio.h>.
16384
16385 2008-10-27  Simon Josefsson  <simon@josefsson.org>
16386
16387         * modules/lstat-tests: New module.
16388         * tests/test-lstat.c: New file.
16389
16390 2008-10-26  Jim Meyering  <meyering@redhat.com>
16391
16392         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
16393
16394 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16395             Bruno Haible  <bruno@clisp.org>
16396
16397         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
16398         * modules/configmake (Include): Add a note that the include must come
16399         after all system headers.
16400         * lib/javaversion.c: Include configmake.h after all other includes.
16401
16402 2008-10-26  Bruno Haible  <bruno@clisp.org>
16403
16404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
16405         HAVE_STRUCT_RANDOM_DATA to 1.
16406         (gl_STDLIB_H): Simplify.
16407
16408 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16409
16410         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
16411         substitute HAVE_STRUCT_RANDOM_DATA.
16412         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
16413         random_data.
16414         * modules/stdlib (Makefile.am): Substitute
16415         HAVE_STRUCT_RANDOM_DATA.
16416
16417 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16418
16419         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
16420         * doc/gnulib-intro.texi (Copyright): Likewise.
16421
16422 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16423
16424         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
16425         findings.
16426
16427 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
16428             Bruno Haible  <bruno@clisp.org>
16429
16430         * lib/unistd.in.h: Include <winsock2.h>.
16431         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
16432         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
16433         Provide dummy declarations.
16434         (gethostname): Override.
16435         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
16436         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
16437         gl_PREREQ_SYS_H_WINSOCK2.
16438         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
16439         * doc/posix-functions/gethostname.texi: More details.
16440
16441 2008-10-25  Bruno Haible  <bruno@clisp.org>
16442
16443         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
16444         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
16445         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
16446
16447         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
16448         here ...
16449         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
16450         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
16451         gl_UNISTD_H_DEFAULTS.
16452
16453 2008-10-25  Eric Blake  <ebb9@byu.net>
16454
16455         signbit: avoid spurious compiler failure
16456         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
16457         declarations inside function.
16458
16459 2008-10-24  Simon Josefsson  <simon@josefsson.org>
16460             Bruno Haible  <bruno@clisp.org>
16461
16462         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
16463         * modules/random_r (Depends-on): Add stdint.
16464
16465 2008-10-24  Bruno Haible  <bruno@clisp.org>
16466
16467         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
16468         Eggert.
16469         * modules/strerror (License): Likewise.
16470
16471 2008-10-24  Jim Meyering  <meyering@redhat.com>
16472
16473         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
16474         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
16475
16476 2008-10-24  Eric Blake  <ebb9@byu.net>
16477
16478         getgroups: fix compilation when getgroups is available
16479         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
16480         but with <config.h> override of getgroups disabled.
16481
16482 2008-10-24  Simon Josefsson  <simon@josefsson.org>
16483
16484         * doc/gnulib.texi (Header files): Add note about C++ problems.
16485         Explained by Bruno Haible <bruno@clisp.org>.
16486
16487 2008-10-23  Bruno Haible  <bruno@clisp.org>
16488
16489         Define a dummy SA_NODEFER macro on Interix.
16490         * lib/signal.in.h (SA_NODEFER): Define fallback.
16491         Reported by Aleksey Cheusov <cheusov@tut.by> via
16492         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
16493
16494 2008-10-23  Bruno Haible  <bruno@clisp.org>
16495
16496         * modules/freadahead (License): Change to LGPLv2+.
16497         Suggested by Simon Josefsson.
16498
16499 2008-10-23  Jim Meyering  <meyering@redhat.com>
16500
16501         random_r: new module
16502         * modules/random_r: New file.
16503         * m4/random_r.m4: New file.
16504         * lib/random_r.c: New file, from glibc.
16505         * modules/random_r-tests: New file.
16506         * tests/test-random_r.c: New file.
16507         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
16508          Declare.
16509         (RAND_MAX): Define.
16510         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
16511         * modules/stdlib: Substitute them, too.
16512         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
16513         * doc/glibc-functions/initstate_r.texi: Mention the new module.
16514         * doc/glibc-functions/random_r.texi: Likewise.
16515         * doc/glibc-functions/setstate_r.texi: Likewise.
16516         * doc/glibc-functions/srandom_r.texi: Likewise.
16517         * config/srclist.txt: Mention it.
16518
16519 2008-10-23  David Lutterkort  <lutter@redhat.com>
16520
16521         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
16522         link requirement
16523
16524 2008-10-23  Jim Meyering  <meyering@redhat.com>
16525
16526         selinux-h: mark parameters of stub functions as intentionally unused
16527         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
16528         * lib/se-context.in.h: Likewise.
16529
16530 2008-10-22  Simon Josefsson  <simon@josefsson.org>
16531
16532         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
16533
16534 2008-10-22  Simon Josefsson  <simon@josefsson.org>
16535
16536         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
16537
16538 2008-10-22  Eric Blake  <ebb9@byu.net>
16539
16540         glthread/thread: avoid compiler warning
16541         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
16542         Add unreachable abort to silence compiler.
16543
16544 2008-10-22  Eric Blake  <ebb9@byu.net>
16545
16546         netdb: also supply struct addrinfo for cygwin 1.5.x
16547         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
16548         older cygwin.
16549         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
16550         cygwin.
16551         * doc/posix-headers/netdb.texi (netdb.h): Document this.
16552
16553 2008-10-22  Bruno Haible  <bruno@clisp.org>
16554
16555         * users.txt: Update entry about pspp.
16556
16557 2008-10-21  Bruno Haible  <bruno@clisp.org>
16558
16559         Simplification.
16560         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
16561         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
16562
16563         Simplification.
16564         * lib/ioctl.c (ioctl): Don't undefine.
16565         * lib/socket.c (socket): Don't undefine.
16566
16567         Remove unused module indicator macros.
16568         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
16569         GNULIB_$1 as a C macro.
16570
16571         * doc/posix-functions/close.texi: Undo last change.
16572         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
16573         Windows platforms.
16574
16575 2008-10-21  Bruno Haible  <bruno@clisp.org>
16576
16577         Add gethostname() declaration to <unistd.h>.
16578         * lib/unistd.in.h (gethostname): New declaration.
16579         * lib/gethostname.c: Include <unistd.h>.
16580         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
16581         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
16582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
16583         and HAVE_GETHOSTNAME.
16584         * modules/gethostname (Depends-on): Add unistd.
16585         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16586         (Include): Specify <unistd.h>.
16587         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
16588         HAVE_GETHOSTNAME.
16589         * tests/test-gethostname.c: Include <unistd.h> first.
16590
16591 2008-10-21  Bruno Haible  <bruno@clisp.org>
16592
16593         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
16594         * modules/select-tests (Depends-on): Likewise.
16595         Reported by Simon Josefsson.
16596
16597 2008-10-21  Simon Josefsson  <simon@josefsson.org>
16598
16599         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
16600         * lib/accept.c: New file, based on winsock.c.
16601         * lib/bind.c: New file, based on winsock.c.
16602         * lib/connect.c: New file, based on winsock.c.
16603         * lib/getpeername.c: New file, based on winsock.c.
16604         * lib/getsockname.c: New file, based on winsock.c.
16605         * lib/getsockopt.c: New file, based on winsock.c.
16606         * lib/ioctl.c: New file, based on winsock.c.
16607         * lib/listen.c: New file, based on winsock.c.
16608         * lib/recv.c: New file, based on winsock.c.
16609         * lib/recvfrom.c: New file, based on winsock.c.
16610         * lib/send.c: New file, based on winsock.c.
16611         * lib/sendto.c: New file, based on winsock.c.
16612         * lib/setsockopt.c: New file, based on winsock.c.
16613         * lib/shutdown.c: New file, based on winsock.c.
16614         * lib/socket.c: New file, based on winsock.c.
16615         * lib/w32sock.h: New file, based on winsock.c.
16616         * lib/winsock.c: Remove file.
16617         * modules/accept: Likewise.
16618         * modules/bind: Likewise.
16619         * modules/connect: Likewise.
16620         * modules/getpeername: Likewise.
16621         * modules/getsockname: Likewise.
16622         * modules/getsockopt: Likewise.
16623         * modules/ioctl: Likewise.
16624         * modules/listen: Likewise.
16625         * modules/recv: Likewise.
16626         * modules/recvfrom: Likewise.
16627         * modules/send: Likewise.
16628         * modules/sendto: Likewise.
16629         * modules/setsockopt: Likewise.
16630         * modules/shutdown: Likewise.
16631         * modules/socket: Use socket.c instead of winsock.c.
16632         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
16633         * doc/posix-functions/accept.texi: Doc fix.
16634         * doc/posix-functions/bind.texi: Doc fix.
16635         * doc/posix-functions/close.texi: Doc fix.
16636         * doc/posix-functions/connect.texi: Doc fix.
16637         * doc/posix-functions/getpeername.texi: Doc fix.
16638         * doc/posix-functions/getsockname.texi: Doc fix.
16639         * doc/posix-functions/getsockopt.texi: Doc fix.
16640         * doc/posix-functions/ioctl.texi: Doc fix.
16641         * doc/posix-functions/listen.texi: Doc fix.
16642         * doc/posix-functions/recv.texi: Doc fix.
16643         * doc/posix-functions/recvfrom.texi: Doc fix.
16644         * doc/posix-functions/send.texi: Doc fix.
16645         * doc/posix-functions/sendto.texi: Doc fix.
16646         * doc/posix-functions/setsockopt.texi: Doc fix.
16647         * doc/posix-functions/shutdown.texi: Doc fix.
16648         * doc/posix-functions/socket.texi: Doc fix.
16649
16650 2008-10-20  Bruno Haible  <bruno@clisp.org>
16651
16652         Take into account the role of SIGABRT_COMPAT on Windows 2008.
16653         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
16654         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
16655         as an alias for SIGABRT.
16656         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
16657         (sigaction): Map it to SIGABRT.
16658         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
16659
16660 2008-10-20  Bruno Haible  <bruno@clisp.org>
16661
16662         * lib/fts.c: Don't include lstat.h.
16663         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
16664
16665         Move the lstat() declaration to <sys/stat.h>.
16666         * lib/lstat.h: Remove file.
16667         * lib/sys_stat.in.h: Add special invocation convention.
16668         (lstat): New declaration.
16669         * lib/lstat.c (orig_lstat): New function.
16670         (rpl_lstat): Use orig_lstat instead of lstat.
16671         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
16672         AC_C_INLINE. Set REPLACE_LSTAT.
16673         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
16674         and REPLACE_LSTAT.
16675         * modules/lstat (Files): Remove lib/lstat.h.
16676         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
16677         (Include): Specify <sys/stat.h> instead of lstat.h.
16678         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
16679         REPLACE_LSTAT.
16680         * NEWS: Mention the change.
16681
16682 2008-10-20  Bruno Haible  <bruno@clisp.org>
16683
16684         * modules/posix_spawn-tests: New file.
16685         * tests/test-posix_spawn3.c: New file.
16686
16687 2008-10-20  Bruno Haible  <bruno@clisp.org>
16688
16689         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
16690         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
16691         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
16692         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
16693         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
16694
16695 2008-10-20  Bruno Haible  <bruno@clisp.org>
16696
16697         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
16698         of posix_spawn on AIX 5.3.
16699
16700 2008-10-20  Bruno Haible  <bruno@clisp.org>
16701
16702         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
16703
16704 2008-10-20  Bruno Haible  <bruno@clisp.org>
16705
16706         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
16707         of AC_LANG_PROGRAM.
16708
16709 2008-10-20  Simon Josefsson  <simon@josefsson.org>
16710
16711         * lib/netdb.in.h: Don't define GNU specific constants until they
16712         are supported or needed.  Reported by Bruno Haible
16713         <bruno@clisp.org>.
16714
16715 2008-10-20  Simon Josefsson  <simon@josefsson.org>
16716
16717         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
16718
16719 2008-10-20  Simon Josefsson  <simon@josefsson.org>
16720
16721         * lib/getaddrinfo.h: Remove file.
16722         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
16723         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
16724         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
16725         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
16726         * modules/netdb: Substitute GNULIB_GETADDRINFO.
16727         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
16728         * tests/test-getaddrinfo.c: Likewise.
16729         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
16730         * NEWS: Mention change.
16731
16732 2008-10-19  Bruno Haible  <bruno@clisp.org>
16733
16734         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
16735
16736 2008-10-19  Bruno Haible  <bruno@clisp.org>
16737
16738         * lib/wait-process.c: Include simply <sys/wait.h>.
16739         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
16740         WIFSTOPPED): Remove fallback definitions.
16741         * modules/wait-process (Depends-on): Add sys_wait.
16742
16743         New module 'sys_wait'.
16744         * modules/sys_wait: New file.
16745         * lib/sys_wait.in.h: New file, partially copied from
16746         lib/wait-process.c.
16747         * m4/sys_wait_h.m4: New file.
16748         * doc/posix-headers/sys_wait.texi: Mention the new module.
16749
16750 2008-10-19  Bruno Haible  <bruno@clisp.org>
16751
16752         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
16753
16754 2008-10-19  Bruno Haible  <bruno@clisp.org>
16755
16756         Assume that waitpid() fills an 'int' status, not a 'union wait'.
16757         * lib/wait-process.c (WAIT_T): Remove type.
16758         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
16759         (wait_subprocess): Update.
16760
16761 2008-10-19  Bruno Haible  <bruno@clisp.org>
16762
16763         New module 'atoll'.
16764         * modules/atoll: New file.
16765         * lib/stdlib.in.h (atoll): New declaration.
16766         * lib/atoll.c: New file, from glibc with modifications.
16767         * m4/atoll.m4: New file.
16768         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
16769         HAVE_ATOLL.
16770         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
16771         * doc/posix-functions/atoll.texi: Mention the new module.
16772
16773 2008-10-19  Bruno Haible  <bruno@clisp.org>
16774
16775         Add strtoull() declaration to <stdlib.h>.
16776         * lib/stdlib.in.h (strtoull): New declaration.
16777         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
16778         Set HAVE_STRTOULL.
16779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
16780         HAVE_STRTOULL.
16781         * modules/strtoull (Depends-on): Add stdlib.
16782         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16783         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
16784         HAVE_STRTOULL.
16785
16786 2008-10-19  Bruno Haible  <bruno@clisp.org>
16787
16788         Add strtoll() declaration to <stdlib.h>.
16789         * lib/stdlib.in.h (strtoll): New declaration.
16790         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
16791         Set HAVE_STRTOLL.
16792         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
16793         HAVE_STRTOLL.
16794         * modules/strtoll (Depends-on): Add stdlib.
16795         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16796         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
16797
16798 2008-10-19  Bruno Haible  <bruno@clisp.org>
16799
16800         * modules/bcopy (Depends-on): Add strings.
16801         (Include): Specify <strings.h>.
16802
16803 2008-10-19  Bruno Haible  <bruno@clisp.org>
16804
16805         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
16806
16807 2008-10-19  Bruno Haible  <bruno@clisp.org>
16808
16809         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
16810         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
16811         mingw.
16812
16813 2008-10-19  Bruno Haible  <bruno@clisp.org>
16814
16815         * lib/atanl.c: Don't include isnanl.h.
16816         * lib/cosl.c: Likewise.
16817         * lib/ldexpl.c: Likewise.
16818         * lib/logl.c: Likewise.
16819         * lib/sinl.c: Likewise.
16820         * lib/sqrtl.c: Likewise.
16821         * lib/tanl.c: Likewise.
16822
16823         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
16824         * lib/isnanf.h: Remove file.
16825         * lib/isnand.h: Remove file.
16826         * lib/isnanl.h: Remove file.
16827         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
16828         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
16829         macros.
16830         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
16831         HAVE_ISNANF, don't define it as a C macro.
16832         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
16833         HAVE_ISNAND, don't define it as a C macro.
16834         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
16835         HAVE_ISNANL, don't define it as a C macro.
16836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
16837         HAVE_ISNAN[FDL].
16838         * modules/isnanf (Files): Remove lib/isnanf.h.
16839         (Depends-on): Add math.
16840         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16841         (Include): Specify <math.h> instead of isnanf.h.
16842         * modules/isnand (Files): Remove lib/isnand.h.
16843         (Depends-on): Add math.
16844         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16845         (Include): Specify <math.h> instead of isnand.h.
16846         * modules/isnanl (Files): Remove lib/isnanl.h.
16847         (Depends-on): Add math.
16848         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16849         (Include): Specify <math.h> instead of isnanl.h.
16850         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
16851         HAVE_ISNAN[FDL].
16852         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
16853         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
16854         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
16855         * NEWS: Mention the change.
16856
16857 2008-10-18  Bruno Haible  <bruno@clisp.org>
16858
16859         Add getusershell(), setusershell(), endusershell() declarations to
16860         <unistd.h>.
16861         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
16862         declarations.
16863         * lib/getusershell.c: Include unistd.h.
16864         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
16865         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
16866         HAVE_GETUSERSHELL.
16867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
16868         and HAVE_GETUSERSHELL.
16869         * modules/getusershell (Depends-on): Add unistd, extensions.
16870         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16871         (Include): Specify <unistd.h>.
16872         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
16873         HAVE_GETUSERSHELL.
16874
16875 2008-10-18  Bruno Haible  <bruno@clisp.org>
16876
16877         Add a getloadavg() declaration to <stdlib.h>.
16878         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
16879         getloadavg declaration.
16880         (getloadavg): New declaration.
16881         * lib/getloadavg.c: Include <stdlib.h> first.
16882         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
16883         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
16884         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
16885         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
16886         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
16887         * modules/getloadavg (Depends-on): Add stdlib, extensions.
16888         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16889         (Include): Specify <stdlib.h>.
16890         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
16891         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
16892
16893 2008-10-18  Bruno Haible  <bruno@clisp.org>
16894
16895         * lib/dirchownmod.c: Don't include lchmod.h.
16896
16897         Move the lchmod() declaration to <sys/stat.h>.
16898         * lib/lchmod.h: Remove file.
16899         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
16900         (lchmod): New declaration, moved here from lib/lchown.h.
16901         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
16902         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
16903         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
16904         and HAVE_LCHMOD.
16905         * modules/lchmod (Files): Remove lib/lchmod.h.
16906         (Depends-on): Add sys_stat, extensions.
16907         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
16908         (Include): Specify <sys/stat.h> instead of lchmod.h.
16909         * modules/sys_stat (Depends-on): Add link-warning.
16910         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
16911         definition of GL_LINK_WARNING.
16912         * NEWS: Mention the change.
16913
16914 2008-10-18  Bruno Haible  <bruno@clisp.org>
16915
16916         * lib/fchdir.c: Don't include dirfd.h.
16917         * lib/fts.c: Likewise.
16918         * lib/getcwd.c: Likewise.
16919         * lib/glob.c: Likewise.
16920
16921         Move the dirfd() declaration to <dirent.h>.
16922         * lib/dirfd.h: Remove file.
16923         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
16924         (dirfd): New declaration.
16925         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
16926         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
16927         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
16928         HAVE_DECL_DIRFD.
16929         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
16930         HAVE_DECL_DIRFD.
16931         * modules/dirfd (Files): Remove lib/dirfd.h.
16932         (Depends-on): Add dirent, extensions.
16933         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
16934         (Include): Specify <dirent.h> instead of dirfd.h.
16935         * modules/dirent (Depends-on): Add link-warning.
16936         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
16937         definition of GL_LINK_WARNING.
16938         * NEWS: Mention the change.
16939
16940 2008-10-18  Bruno Haible  <bruno@clisp.org>
16941
16942         Move the euidaccess() declaration to <unistd.h>.
16943         * lib/euidaccess.h: Remove file.
16944         * lib/unistd.in.h (euidaccess): New declaration.
16945         * lib/euidaccess.c: Don't include euidaccess.h.
16946         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
16947         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
16948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
16949         and HAVE_EUIDACCESS.
16950         * modules/euidaccess (Files): Remove lib/euidaccess.h.
16951         (Depends-on): Add unistd.
16952         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16953         (Include): Specify <unistd.h> instead of euidaccess.h.
16954         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
16955         HAVE_EUIDACCESS.
16956         * NEWS: Mention the change.
16957
16958 2008-10-18  Bruno Haible  <bruno@clisp.org>
16959
16960         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
16961
16962         Move the getdomainname() declaration to <unistd.h>.
16963         * lib/getdomainname.h: Remove file.
16964         * lib/unistd.in.h (getdomainname): New declaration.
16965         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
16966         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
16967         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
16968         HAVE_GETDOMAINNAME.
16969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16970         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
16971         * modules/getdomainname (Files): Remove lib/getdomainname.h.
16972         (Depends-on): Add unistd, extensions.
16973         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16974         (Includes): Specify <unistd.h> instead of getdomainname.h.
16975         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
16976         HAVE_GETDOMAINNAME.
16977         * NEWS: Mention the change.
16978
16979 2008-10-18  Bruno Haible  <bruno@clisp.org>
16980
16981         * modules/dirent: New file.
16982         * m4/dirent_h.m4: New file.
16983         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
16984         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
16985         * modules/fchdir (Files): Remove lib/dirent.in.h.
16986         (Depends-on): Add dirent.
16987         (Makefile.am): Move rules to modules/dirent.
16988         * doc/posix-headers/dirent.texi: Mention the new module.
16989
16990 2008-10-18  Bruno Haible  <bruno@clisp.org>
16991
16992         Avoid -Wunused-parameter warnings in public gnulib header files.
16993         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
16994         macro.
16995         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
16996
16997 2008-10-18  Bruno Haible  <bruno@clisp.org>
16998
16999         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
17000         * doc/glibc-functions/error.texi: Mention the module 'error'.
17001         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
17002         * doc/glibc-functions/getdomainname.texi: Mention the module
17003         'getdomainname'.
17004         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
17005         * doc/glibc-functions/getpagesize.texi: Mention the module
17006         'getpagesize'.
17007         * doc/glibc-functions/getusershell.texi: Mention the module
17008         'getusershell'.
17009         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
17010         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
17011         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
17012         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
17013         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
17014         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
17015         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
17016         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
17017         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
17018         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
17019         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
17020         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
17021         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
17022         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
17023
17024 2008-10-17  Bruno Haible  <bruno@clisp.org>
17025
17026         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
17027         HP-UX and IRIX, use -0.0L.
17028         * tests/test-ceill.c (minus_zero): Likewise.
17029         * tests/test-floorl.c (minus_zero): Likewise.
17030         * tests/test-frexpl.c (minus_zero): Likewise.
17031         * tests/test-isnan.c (minus_zerol): Likewise.
17032         * tests/test-isnanl.h (minus_zero): Likewise.
17033         * tests/test-ldexpl.c (minus_zero): Likewise.
17034         * tests/test-roundl.c (minus_zero): Likewise.
17035         * tests/test-signbit.c (minus_zerol): Likewise.
17036         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17037         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17038         * tests/test-truncl.c (minus_zero): Likewise.
17039         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17040         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17041         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
17042         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17043
17044 2008-10-17  Bruno Haible  <bruno@clisp.org>
17045
17046         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
17047         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
17048         that it gets activated only for gcc >= 3.0.
17049         * lib/dirent.in.h: Likewise.
17050         * lib/errno.in.h: Likewise.
17051         * lib/fcntl.in.h: Likewise.
17052         * lib/float.in.h: Likewise.
17053         * lib/iconv.in.h: Likewise.
17054         * lib/inttypes.in.h: Likewise.
17055         * lib/locale.in.h: Likewise.
17056         * lib/math.in.h: Likewise.
17057         * lib/netdb.in.h: Likewise.
17058         * lib/netinet_in.in.h: Likewise.
17059         * lib/search.in.h: Likewise.
17060         * lib/signal.in.h: Likewise.
17061         * lib/spawn.in.h: Likewise.
17062         * lib/stdarg.in.h: Likewise.
17063         * lib/stdint.in.h: Likewise.
17064         * lib/stdio.in.h: Likewise.
17065         * lib/stdlib.in.h: Likewise.
17066         * lib/string.in.h: Likewise.
17067         * lib/strings.in.h: Likewise.
17068         * lib/sys_file.in.h: Likewise.
17069         * lib/sys_ioctl.in.h: Likewise.
17070         * lib/sys_select.in.h: Likewise.
17071         * lib/sys_socket.in.h: Likewise.
17072         * lib/sys_stat.in.h: Likewise.
17073         * lib/sys_time.in.h: Likewise.
17074         * lib/sysexits.in.h: Likewise.
17075         * lib/time.in.h: Likewise.
17076         * lib/unistd.in.h: Likewise.
17077         * lib/wchar.in.h: Likewise.
17078         * lib/wctype.in.h: Likewise.
17079         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17080
17081 2008-10-17  Jim Meyering  <meyering@redhat.com>
17082
17083         ignore-value: don't depend on inline module
17084         * modules/ignore-value (Depends-on): Remove 'inline'.
17085         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
17086         Suggestion from Bruno Haible.
17087
17088 2008-10-17  Bruno Haible  <bruno@clisp.org>
17089
17090         New implementation of condition variables for Win32.
17091         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
17092         (gl_linked_waitqueue_t): New type.
17093         (gl_cond_t): Use it.
17094         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
17095         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
17096         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
17097         (glthread_cond_init_func, glthread_cond_wait_func,
17098         glthread_cond_timedwait_func, glthread_cond_signal_func,
17099         glthread_cond_broadcast_func, glthread_cond_destroy_func):
17100         Reimplemented on the basis of gl_linked_waitqueue_t.
17101         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
17102         gl_waitqueue_t.
17103         (gl_rwlock_t): Update.
17104         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
17105
17106 2008-10-17  Simon Josefsson  <simon@josefsson.org>
17107
17108         * modules/recvfrom (Depends-on): Add dependency on getpeername.
17109         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17110
17111 2008-10-17  Jim Meyering  <meyering@redhat.com>
17112
17113         ignore-value: new module
17114         * modules/ignore-value: New file.
17115         * lib/ignore-value.h: New file.
17116         * MODULES.html.sh (Compiler warning management): New section,
17117         just for this module.  More to come.
17118
17119 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
17120
17121         open-safer.c: avoid 'signed and unsigned in conditional...' warning
17122         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
17123         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
17124
17125 2008-10-16  Jim Meyering  <meyering@redhat.com>
17126
17127         openat-die.c: avoid 'no previous prototype' warning
17128         * lib/openat-die.c: Include "openat.h".
17129         Reported by Reuben Thomas <rrt@sc3d.org>.
17130
17131 2008-10-16  Simon Josefsson  <simon@josefsson.org>
17132
17133         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
17134         * lib/netdb.in.h: Fix typo.
17135         Reported by Bruno Haible  <bruno@clisp.org>
17136
17137         * lib/netdb.in.h: Include sys/socket.h for platforms without
17138         netdb.h, to get structures like hostent on MinGW.
17139         * modules/netdb (Depends-on): Add sys_socket.
17140
17141 2008-10-15  Simon Josefsson  <simon@josefsson.org>
17142
17143         * modules/netdb, modules/netdb-tests: New file.
17144         * m4/netdb_h.m4: New file.
17145         * lib/netdb.in.h: Add, currently just an empty file pending
17146         definitions.
17147         * tests/test-netdb.c: New file.
17148         * doc/posix-headers/netdb.texi: Mention that we replace it if
17149         needed.
17150         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17151         netdb.
17152
17153 2008-10-15  Simon Josefsson  <simon@josefsson.org>
17154
17155         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
17156         with code.
17157
17158 2008-10-13  Bruno Haible  <bruno@clisp.org>
17159
17160         * lib/glthread/cond.c (glthread_cond_wait_func,
17161         glthread_cond_timedwait_func): Add a comment.
17162
17163 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17164
17165         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
17166         * tests/test-select.c: Likewise,
17167
17168 2008-10-13  Bruno Haible  <bruno@clisp.org>
17169
17170         * lib/glthread/cond.c (glthread_cond_wait_func,
17171         glthread_cond_timedwait_func): Fix variable name.
17172         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17173
17174 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
17175
17176         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
17177         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
17178         struct sockaddr.sa_len.
17179         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
17180
17181 2008-10-13  Simon Josefsson  <simon@josefsson.org>
17182
17183         * build-aux/pmccabe2html: Add css and css_url parameters.
17184
17185 2008-10-12  Bruno Haible  <bruno@clisp.org>
17186
17187         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
17188         calling aclx_get.
17189         Reported by Rainer Tammer <tammer@tammer.net>.
17190
17191 2008-10-12  Bruno Haible  <bruno@clisp.org>
17192
17193         Use msvcrt aware primitives for creation/termination of Win32 threads.
17194         * lib/glthread/thread.c: Include <process.h>.
17195         (glthread_create_func): Use _beginthreadex instead of CreateThread.
17196         (wrapper_func): Update signature.
17197         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
17198
17199 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17200             Bruno Haible  <bruno@clisp.org>
17201
17202         Provide a Win32 implementation of the 'cond' module.
17203         * lib/glthread/cond.h [USE_WIN32]: New implementation.
17204         * lib/glthread/cond.c (glthread_cond_init_func,
17205         glthread_cond_wait_func, glthread_cond_timedwait_func,
17206         glthread_cond_signal_func, glthread_cond_broadcast_func,
17207         glthread_cond_destroy_func) [USE_WIN32]: New functions.
17208         * modules/cond (Dependencies): Add gettimeofday.
17209
17210 2008-10-11  Bruno Haible  <bruno@clisp.org>
17211
17212         Make sleep work on older versions of mingw.
17213         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
17214         only whether it exists.
17215         * doc/posix-functions/sleep.texi: Mention the problem with older
17216         versions of mingw.
17217
17218 2008-10-11  Bruno Haible  <bruno@clisp.org>
17219
17220         New module 'shutdown'.
17221         * modules/shutdown: New file.
17222         * lib/sys_socket.in.h (shutdown): New declaration.
17223         * lib/winsock.c (shutdown): New function.
17224         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17225         GNULIB_SHUTDOWN.
17226         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
17227         * doc/posix-functions/shutdown.texi: Document the new module.
17228
17229 2008-10-11  Jim Meyering  <meyering@redhat.com>
17230
17231         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
17232
17233 2008-10-11  Bruno Haible  <bruno@clisp.org>
17234
17235         New module 'fclose'.
17236         * modules/fclose: New file.
17237         * lib/stdio.in.h (fclose): New declaration.
17238         * lib/fclose.c: New file.
17239         * m4/fclose.m4: New file.
17240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
17241         REPLACE_FCLOSE.
17242         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
17243         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
17244         REPLACE_FCLOSE.
17245         * modules/close (Depends-on): fclose.
17246         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
17247
17248 2008-10-11  Bruno Haible  <bruno@clisp.org>
17249
17250         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
17251         set errno and don't call _close.
17252
17253 2008-10-10  Bruno Haible  <bruno@clisp.org>
17254
17255         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
17256         ACL, not afterwards. Fixes test failure on Cygwin.
17257
17258 2008-10-09  Ben Pfaff  <blp@gnu.org>
17259
17260         * build-aux/announce-gen: Fix gnulib version related part of usage
17261         message.  Die with a useful error message if no tarballs are
17262         found.
17263
17264 2008-10-10  Jim Meyering  <meyering@redhat.com>
17265
17266         bootstrap: use git's --depth=N option only if it's supported
17267         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
17268         recognize the --depth option.  Reported by Pádraig Brady.
17269
17270 2008-10-09  Bruno Haible  <bruno@clisp.org>
17271
17272         New module 'ioctl'.
17273         * modules/ioctl: New file.
17274         * lib/sys_socket.in.h (ioctl): Remove declaration.
17275         * lib/winsock.c: Include <sys/ioctl.h>.
17276         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
17277         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
17278         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
17279         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
17280         * doc/posix-functions/ioctl.texi: Mention the new module.
17281
17282 2008-10-09  Bruno Haible  <bruno@clisp.org>
17283
17284         New module 'sys_ioctl'.
17285         * lib/sys_ioctl.in.h: New file.
17286         * m4/sys_ioctl_h.m4: New file.
17287         * modules/sys_ioctl: New file.
17288         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
17289
17290 2008-10-09  Bruno Haible  <bruno@clisp.org>
17291
17292         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
17293         * lib/winsock.c: Include <stdarg.h>.
17294         (rpl_ioctl): Change to second argument 'int' and then varargs.
17295
17296 2008-10-09  Bruno Haible  <bruno@clisp.org>
17297
17298         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
17299         when the sys_socket module is present and the system has <winsock2.h>.
17300
17301 2008-10-09  Bruno Haible  <bruno@clisp.org>
17302
17303         * doc/posix-functions/close.texi: Mention module 'close' instead of
17304         module 'sys_socket'.
17305
17306 2008-10-09  Bruno Haible  <bruno@clisp.org>
17307
17308         * doc/glibc-headers/sys_ioctl.texi: New file.
17309         * doc/gnulib.texi: Include it.
17310
17311 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17312             Bruno Haible  <bruno@clisp.org>
17313
17314         Combine the two replacements of 'close'.
17315         * lib/sys_socket.in.h (close): Define to a reminder to include
17316         <unistd.h>.
17317         (_gl_close_fd_maybe_socket): New declaration.
17318         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
17319         * lib/winsock.c (close): Remove undefinition.
17320         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
17321         needed for the gnulib module 'close'.
17322         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
17323         define to an error symbol or to a warning, if suitable.
17324         * lib/close.c: Include <sys/socket.h>.
17325         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
17326         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
17327         UNISTD_H_HAVE_WINSOCK2_H.
17328         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
17329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17330         UNISTD_H_HAVE_WINSOCK2_H.
17331         * modules/sys_socket (Files): Add m4/unistd_h.m4.
17332         (configure.ac): Set a module indicator.
17333         (Makefile.am): Substitute GNULIB_CLOSE.
17334         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
17335         * modules/poll-tests (Depends-on): Add close.
17336         * modules/select-tests (Depends-on): Likewise.
17337
17338 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17339             Bruno Haible  <bruno@clisp.org>
17340
17341         New module 'close'.
17342         * modules/close: New file.
17343         * lib/unistd.in.h (close): Move declaration out of the
17344         FCHDIR_REPLACEMENT scope.
17345         (_gl_unregister_fd): New declaration.
17346         * lib/close.c: New file.
17347         * lib/fchdir.c (rpl_close): Remove function.
17348         * m4/close.m4: New file.
17349         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
17350         close.
17351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
17352         REPLACE_CLOSE.
17353         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
17354         REPLACE_CLOSE.
17355         * modules/fchdir (Depends-on): Add close.
17356
17357 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17358             Bruno Haible  <bruno@clisp.org>
17359
17360         * lib/fcntl.in.h (open): Simplify conditionals.
17361         (_gl_register_fd): New declaration.
17362         * lib/fchdir.c (rpl_open): Remove function.
17363         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
17364         also.
17365         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
17366         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
17367         open.
17368
17369 2008-10-09  Jim Meyering  <meyering@redhat.com>
17370
17371         GNUmakefile: use the more name-space-friendly "_version"
17372         * top/GNUmakefile (_dummy): Update.
17373         (_version): Rename from "version".
17374
17375 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17376             Bruno Haible  <bruno@clisp.org>
17377
17378         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
17379         rpl_close.
17380         (_gl_register_fd): New function, extracted from rpl_open.
17381         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
17382         (rpl_open, rpl_opendir): Use _gl_register_fd.
17383
17384 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17385
17386         Fix organization of 'open' replacement.
17387         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
17388         (gl_FUNC_OPEN): Use it.
17389         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
17390
17391 2008-10-08  Bruno Haible  <bruno@clisp.org>
17392
17393         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
17394
17395 2008-10-08  Simon Josefsson  <simon@josefsson.org>
17396
17397         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
17398         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
17399         listen).
17400
17401 2008-10-08  Eric Blake  <ebb9@byu.net>
17402
17403         GNUmakefile: add 'make version' target
17404         * top/GNUmakefile (_curr-ver): Split version update rules...
17405         (version): ...into a target.
17406
17407 2008-10-07  Bruno Haible  <bruno@clisp.org>
17408
17409         Use a more portable replacement expression for -0.0L.
17410         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
17411         instead of -0.0L. Fix m4 quotation.
17412
17413         * tests/test-signbit.c: Include <float.h>.
17414         (minus_zero): New variable.
17415         (test_signbitl): Use minus_zero instead of -zero.
17416         * modules/signbit-tests (Depends-on): Add float.
17417
17418         * tests/test-ceill.c: Include <float.h>.
17419         (zero): Remove variable.
17420         (minus_zero): New variable.
17421         (main): Use minus_zero instead of -zero.
17422         * modules/ceill-tests (Depends-on): Add float.
17423
17424         * tests/test-floorl.c: Include <float.h>.
17425         (zero): Remove variable.
17426         (minus_zero): New variable.
17427         (main): Use minus_zero instead of -zero.
17428         * modules/floorl-tests (Depends-on): Add float.
17429
17430         * tests/test-roundl.c: Include <float.h>.
17431         (zero): Remove variable.
17432         (minus_zero): New variable.
17433         (main): Use minus_zero instead of -zero.
17434         * modules/roundl-tests (Depends-on): Add float.
17435
17436         * tests/test-truncl.c: Include <float.h>.
17437         (zero): Remove variable.
17438         (minus_zero): New variable.
17439         (main): Use minus_zero instead of -zero.
17440         * modules/truncl-tests (Depends-on): Add float.
17441
17442         * tests/test-frexpl.c (zero): Remove variable.
17443         (minus_zero): New variable.
17444         (main): Use minus_zero instead of -zero.
17445         * modules/frexpl-tests (Depends-on): Add float.
17446
17447         * tests/test-isnan.c (zerol): Remove variable.
17448         (minus_zerol): New variable.
17449         (test_long_double): Use minus_zerol instead of -zerol.
17450         * modules/isnan-tests (Depends-on): Add float.
17451
17452         * tests/test-isnanl.h (zero): Remove variable.
17453         (minus_zero): New variable.
17454         (main): Use minus_zero instead of -zero.
17455         * modules/isnanl-nolibm-tests (Depends-on): Add float.
17456         * modules/isnanl-tests (Depends-on): Add float.
17457
17458         * tests/test-ldexpl.c (zero): Remove variable.
17459         (minus_zero): New variable.
17460         (main): Use minus_zero instead of -zero.
17461         * modules/ldexpl-tests (Depends-on): Add float.
17462
17463         * tests/test-snprintf-posix.h (zerol): Remove variable.
17464         (minus_zerol): New variable.
17465         (test_function): Use minus_zerol instead of -zerol.
17466         * modules/snprintf-posix-tests (Depends-on): Add float.
17467         * modules/vsnprintf-posix-tests (Depends-on): Add float.
17468
17469         * tests/test-sprintf-posix.h (zerol): Remove variable.
17470         (minus_zerol): New variable.
17471         (test_function): Use minus_zerol instead of -zerol.
17472         * modules/sprintf-posix-tests (Depends-on): Add float.
17473         * modules/vsprintf-posix-tests (Depends-on): Add float.
17474
17475         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
17476         (minus_zerol): New variable.
17477         (test_function): Use minus_zerol instead of -zerol.
17478         * modules/vasnprintf-posix-tests (Depends-on): Add float.
17479
17480         * tests/test-vasprintf-posix.c (zerol): Remove variable.
17481         (minus_zerol): New variable.
17482         (test_function): Use minus_zerol instead of -zerol.
17483         * modules/vasprintf-posix-tests (Depends-on): Add float.
17484
17485 2008-10-07  Simon Josefsson  <simon@josefsson.org>
17486
17487         * MODULES.html.sh (Support for building documentation): Mention
17488         pmccabe2html.  Sort entries.
17489
17490         Add pmccabe2html module, from gnupdf.
17491         * build-aux/pmccabe.css: New file.
17492         * build-aux/pmccabe2html: New file.
17493         * m4/pmccabe2html.m4: New file.
17494         * modules/pmccabe2html: New file.
17495
17496 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
17497
17498         flock: new module
17499         * MODULES.html.sh: Add to list of modules.
17500         * lib/flock.c: flock implementation for Windows and Unix systems
17501         which have fcntl.
17502         * doc/glibc-functions/flock.texi: Update documentation.
17503         * lib/sys_file.in.h: <sys/file.h> header file.
17504         * m4/flock.m4: M4 macros.
17505         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
17506         * modules/flock: flock module.
17507         * modules/flock-tests: flock tests module.
17508         * modules/sys_file: sys/file.h module.
17509         * tests/test-flock.c: test suite for flock.
17510
17511 2008-10-06  Jim Meyering  <meyering@redhat.com>
17512
17513         bootstrap: check for LT_INIT more portably still ;-)
17514         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
17515         Spotted by Bruno Haible.
17516
17517 2008-10-06  Eric Blake  <ebb9@byu.net>
17518
17519         test-signbit: avoid tripping Irix cc bug on -0.0L
17520         * tests/test-signbit.c (minus_zerol): Delete, and replace with
17521         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
17522         entire testsuite consistent and avoids an Irix 6.2 bug.
17523
17524 2008-10-05  Bruno Haible  <bruno@clisp.org>
17525             Jim Meyering  <jim@meyering.net>
17526
17527         Add an option for ignoring EPIPE during close_stdout.
17528         * lib/closeout.h: Include <stdbool.h>.
17529         (close_stdout_set_ignore_EPIPE): New declaration.
17530         * lib/closeout.c: Include <stdbool.h>.
17531         (ignore_EPIPE): New variable.
17532         (close_stdout_set_ignore_EPIPE): New function.
17533         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
17534         * lib/close-stream.c (close_stream): Mention the possible EPIPE
17535         failure.
17536         * modules/closeout (Depends-on): Add stdbool.
17537
17538 2008-10-05  Bruno Haible  <bruno@clisp.org>
17539
17540         * modules/accept: New file.
17541         * modules/bind: New file.
17542         * modules/connect: New file.
17543         * modules/getpeername: New file.
17544         * modules/getsockname: New file.
17545         * modules/getsockopt: New file.
17546         * modules/listen: New file.
17547         * modules/recv: New file.
17548         * modules/recvfrom: New file.
17549         * modules/send: New file.
17550         * modules/sendto: New file.
17551         * modules/setsockopt: New file.
17552         * modules/socket: New file.
17553         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
17554         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17555         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
17556         the particular module is requested. Add a link warning when the
17557         particular module is not requested.
17558         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
17559         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
17560         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
17561         the particular module is requested.
17562         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
17563         gl_SYS_SOCKET_H_DEFAULTS): New macros.
17564         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
17565         * modules/sys_socket (Depends-on): Add link-warning.
17566         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
17567         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
17568         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
17569         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
17570         GL_LINK_WARNING.
17571         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
17572         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
17573         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
17574         * doc/posix-functions/getpeername.texi: Mention the new module
17575         'getpeername'.
17576         * doc/posix-functions/getsockname.texi: Mention the new module
17577         'getsockname'.
17578         * doc/posix-functions/getsockopt.texi: Mention the new module
17579         'getsockopt'.
17580         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
17581         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
17582         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
17583         * doc/posix-functions/send.texi: Mention the new module 'send'.
17584         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
17585         * doc/posix-functions/setsockopt.texi: Mention the new module
17586         'setsockopt'.
17587         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
17588         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
17589         listen, connect, accept.
17590         * modules/select-tests (Depends-on): Likewise.
17591
17592 2008-10-05  Bruno Haible  <bruno@clisp.org>
17593
17594         * lib/winsock.c (strerror): Remove unused #undef.
17595         (rpl_close): Remove unused local variable.
17596
17597         * modules/sys_socket (Depends-on); Add errno.
17598
17599 2008-10-05  Bruno Haible  <bruno@clisp.org>
17600
17601         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
17602         (select): Add a link warning when the 'select' module is not used.
17603         * modules/sys_select (Depends-on): Add link-warning.
17604         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
17605         Suggested by Paolo Bonzini.
17606
17607 2008-10-05  Jim Meyering  <meyering@redhat.com>
17608
17609         bootstrap: check for LT_INIT more portably
17610         * build-aux/bootstrap: Avoid using grep -E, since it's not
17611         portable enough.  Suggestion from Bruno Haible.
17612
17613 2008-10-05  Bruno Haible  <bruno@clisp.org>
17614
17615         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
17616         as being fixed by gnulib.
17617
17618 2008-10-05  Bruno Haible  <bruno@clisp.org>
17619
17620         * modules/select-tests: New file, mostly copied from
17621         modules/sys_select-tests.
17622         * tests/test-select.c: New file, mostly copied from
17623         tests/test-sys_select.c.
17624         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
17625         * modules/sys_select-tests (Depends-on): Remove all dependencies.
17626         (Makefile.am): Remove test_sys_select_LDADD.
17627
17628         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
17629         to an undefined symbol, for an error message.
17630         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
17631         (gl_SYS_SELECT_H_DEFAULTS): New macro.
17632         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
17633         winsock-select.c here.
17634         * modules/sys_select (Files): Remove lib/winsock-select.c.
17635         (Depends-on): Remove alloca.
17636         (Makefile.am): Substitute GNULIB_SELECT.
17637         * modules/select: New file.
17638         * doc/posix-functions/select.texi: Update.
17639
17640 2008-10-05  Bruno Haible  <bruno@clisp.org>
17641
17642         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
17643         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
17644         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
17645         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
17646         getdtablesize.
17647         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17648         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17649
17650 2008-10-05  Bruno Haible  <bruno@clisp.org>
17651
17652         * modules/getdtablesize-tests: New file.
17653         * tests/test-getdtablesize.c: New file.
17654
17655         New module 'getdtablesize'.
17656         * lib/unistd.in.h (getdtablesize): New declaration.
17657         * lib/getdtablesize.c: New file.
17658         * m4/getdtablesize.m4: New file.
17659         * modules/getdtablesize: New file.
17660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17661         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
17662         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
17663         HAVE_GETDTABLESIZE.
17664         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
17665
17666 2008-10-05  Bruno Haible  <bruno@clisp.org>
17667
17668         * modules/sched (Makefile.am): Fix typo.
17669         Reported by Simon Josefsson.
17670
17671 2008-10-05  Jim Meyering  <meyering@redhat.com>
17672
17673         bootstrap: check for LT_INIT, too
17674         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
17675         are deprecated.  Suggestion from Ralf Wildenhues.
17676
17677 2008-10-05  Bruno Haible  <bruno@clisp.org>
17678
17679         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
17680         overriding them by ours.
17681         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
17682
17683 2008-10-05  Jim Meyering  <meyering@redhat.com>
17684
17685         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
17686         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
17687         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
17688
17689 2008-10-04  Bruno Haible  <bruno@clisp.org>
17690
17691         * modules/dup2 (License): Change to LGPLv2+.
17692         * modules/sleep (License): Likewise.
17693         * modules/perror (License): Likewise.
17694         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
17695         Blake.
17696         * modules/signal (License): Likewise.
17697         * modules/sigprocmask (License): Likewise.
17698         * modules/raise (License): Change to LGPLv2+, with approval by Jim
17699         Meyering.
17700
17701 2008-10-04  Bruno Haible  <bruno@clisp.org>
17702
17703         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
17704         Reported by Rainer Tammer <tammer@tammer.net>.
17705
17706 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
17707             Bruno Haible  <bruno@clisp.org>
17708
17709         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
17710         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
17711         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
17712
17713 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
17714
17715         filevercmp: new module
17716         * lib/filevercmp.h: New function filevercmp comparing version strings.
17717         * lib/filevercmp.c: Implementation of filevercmp function.
17718         * modules/filevercmp: Module metadata.
17719         * tests/test-filevercmp.c: Unit test for new module.
17720         * modules/filevercmp-tests: Unit test metadata.
17721         * MODULES.html.sh: Add filevercmp module.
17722
17723 2008-10-03  Bruno Haible  <bruno@clisp.org>
17724
17725         * lib/c-ctype.h: Add comment.
17726         Reported by Jim Meyering.
17727
17728 2008-10-02  Bruno Haible  <bruno@clisp.org>
17729
17730         * modules/posix_spawn-internal (Depends-on): Add 'open'.
17731
17732 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
17733
17734         * build-aux/bootstrap: Allow renaming bootstrap, and change the
17735         name of bootstrap.conf accordingly.
17736
17737 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
17738
17739         * build-aux/bootstrap: Install git-merge-changelog configuration
17740         items into .gitconfig if needed.
17741
17742 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
17743
17744         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
17745         git repository, and initialize/update it accordingly.
17746
17747 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
17748
17749         * modules/fsync-tests: New file.
17750         * tests/test-fsync.c: New file.
17751
17752         New module 'fsync'.
17753         * lib/fsync.c: New file.
17754         * m4/fsync.m4: New file.
17755         * modules/fsync: New file.
17756         * lib/unistd.in.h (fsync): New declaration.
17757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
17758         GNULIB_FSYNC and HAVE_FSYNC.
17759         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
17760         * MODULES.html.sh (posix_functions): Add fsync.
17761         * doc/posix-functions/fsync.texi: Mention the new module.
17762
17763 2008-10-02  Jim Meyering  <meyering@redhat.com>
17764
17765         fts.c: sync with similar code from coreutils' remove.c
17766         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
17767         Guard also with "#if defined __linux__", since for now at least,
17768         this code is Linux-kernel-specific.
17769
17770 2008-10-02  Jim Meyering  <meyering@redhat.com>
17771
17772         fts: bug fixes
17773         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
17774         Include <sys/vfs.h>, not <sys/statfs.h>.
17775
17776         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
17777         Include <sys/vfs.h>, not <sys/statfs.h>.
17778
17779 2008-10-01  Bruno Haible  <bruno@clisp.org>
17780
17781         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
17782         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
17783         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
17784         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
17785         * doc/posix-functions/posix_spawnp.texi: Likewise.
17786         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
17787         whether posix_spawn actually works.
17788         * m4/pipe.m4 (gl_PIPE): Likewise.
17789         * modules/execute (Files): Add m4/posix_spawn.m4.
17790         * modules/pipe (Files): Add m4/posix_spawn.m4.
17791         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
17792
17793 2008-10-01  Jim Meyering  <meyering@redhat.com>
17794
17795         remove trailing spaces
17796         * NEWS: Likewise.
17797         * lib/poll.c (poll): Likewise.
17798         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
17799         * lib/winsock.c (rpl_close): Likewise.
17800         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
17801         * modules/yield: Likewise.
17802         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
17803         * tests/test-sys_select.c (connect_to_socket): Likewise.
17804
17805         fts.c: adjust a new interface to be more generally useful
17806         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
17807         (fts_build): Adjust caller.
17808
17809 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17810
17811         * modules/cond-tests: New file.
17812         * tests/test-cond.c: New file.
17813
17814 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17815             Bruno Haible  <bruno@clisp.org>
17816
17817         * modules/cond (Dependencies): Add errno, time.
17818         * lib/glthread/cond.h: Include <time.h>.
17819         (gl_cond_define, gl_cond_define_initialized): Use the same definition
17820         across platforms.
17821
17822 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17823             Bruno Haible  <bruno@clisp.org>
17824
17825         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
17826
17827 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17828             Bruno Haible  <bruno@clisp.org>
17829
17830         * modules/tls-tests (Depends-on): Add thread, yield.
17831         (configure.ac): Remove all checks.
17832         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
17833         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
17834         gl_thread_self): Remove definitions. Include glthread/thread.h and
17835         glthread/yield.h instead.
17836         (test_tls): Pass an additional NULL argument to gl_thread_join.
17837
17838 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17839             Bruno Haible  <bruno@clisp.org>
17840
17841         * modules/lock-tests (Depends-on): Add thread, yield.
17842         (configure.ac): Remove all checks.
17843         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
17844         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
17845         gl_thread_self): Remove definitions. Include glthread/thread.h and
17846         glthread/yield.h instead.
17847         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
17848         additional NULL argument to gl_thread_join.
17849
17850 2008-09-30  Bruno Haible  <bruno@clisp.org>
17851
17852         Fix the Win32 implementation of the 'thread' module.
17853         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
17854         pointer type.
17855         (gl_thread_self): Invoke gl_thread_self_func.
17856         (gl_thread_self_func): New declaration.
17857         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
17858         (do_init_self_key, init_self_key): New functions.
17859         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
17860         Remove some fields.
17861         (running_threads, running_lock): Remove variables.
17862         (get_current_thread_handle): New function.
17863         (gl_thread_self_func, wrapper_func, glthread_create_func,
17864         glthread_join_func, gl_thread_exit_func): Largely rewritten and
17865         simplified.
17866
17867 2008-09-30  Bruno Haible  <bruno@clisp.org>
17868
17869         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
17870         files.
17871
17872 2008-09-30  Jim Meyering  <meyering@redhat.com>
17873
17874         fts.m4: correct the test for statfs.f_type
17875         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
17876         when checking for statfs.f_type.
17877
17878 2008-09-15  Simon Josefsson  <simon@josefsson.org>
17879
17880         tests: avoid some compiler warnings
17881         * tests/test-memchr.c (main): Pass NULL indirectly.
17882         * tests/test-getdate.c (main): Remove unused variable 'ret'.
17883
17884 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
17885
17886         getdate.y: disallow countable dayshifts like "4 yesterday ago"
17887         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
17888         exactly specified dayshifts.
17889         (dayshift): New rule.
17890         (rel): Add dayshift.
17891         (relative_time_table) [tomorrow, yesterday, today, now]:
17892         Use tDAY_SHIFT in place of tDAY_UNIT.
17893         * tests/test-getdate.c: Add tests for now-disallowed countable
17894         dayshifts, e.g., "4 yesterday ago".
17895
17896 2008-09-29  Bruno Haible  <bruno@clisp.org>
17897
17898         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
17899         * tests/test-posix_spawn1.in.sh: Renamed from
17900         tests/test-posix_spawn.in.sh.
17901         * tests/test-posix_spawn2.c: New file.
17902         * tests/test-posix_spawn2.in.sh: New file.
17903         * modules/posix_spawnp-tests (Files): Update.
17904         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
17905
17906 2008-09-29  Bruno Haible  <bruno@clisp.org>
17907
17908         Propagate effects of putenv/setenv/unsetenv to child processes.
17909         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
17910         * lib/pipe.c (create_pipe): Likewise.
17911
17912 2008-09-29  Bruno Haible  <bruno@clisp.org>
17913
17914         Enable use of shell scripts as executables in mingw.
17915         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
17916         run the program as a shell script.
17917         * lib/pipe.c (create_pipe): Likewise.
17918         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
17919         resulting array.
17920
17921 2008-09-29  Eric Blake  <ebb9@byu.net>
17922
17923         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
17924
17925 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
17926
17927         * doc/posix-functions/accept.texi: Update mingw problems.
17928         * doc/posix-functions/bind.texi: Update mingw problems.
17929         * doc/posix-functions/close.texi: Update mingw problems.
17930         * doc/posix-functions/connect.texi: Update mingw problems.
17931         * doc/posix-functions/getpeername.texi: Update mingw problems.
17932         * doc/posix-functions/getsockname.texi: Update mingw problems.
17933         * doc/posix-functions/getsockopt.texi: Update mingw problems.
17934         * doc/posix-functions/ioctl.texi: Update mingw problems.
17935         * doc/posix-functions/listen.texi: Update mingw problems.
17936         * doc/posix-functions/recv.texi: Update mingw problems.
17937         * doc/posix-functions/recvfrom.texi: Update mingw problems.
17938         * doc/posix-functions/select.texi: Update mingw problems.
17939         * doc/posix-functions/send.texi: Update mingw problems.
17940         * doc/posix-functions/sendto.texi: Update mingw problems.
17941         * doc/posix-functions/setsockopt.texi: Update mingw problems.
17942         * doc/posix-functions/socket.texi: Update mingw problems.
17943
17944 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
17945             Bruno Haible  <bruno@clisp.org>
17946
17947         * lib/sys_select.in.h: Include sys/time.h.
17948         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
17949         * modules/sys_select: Depend on sys_time.
17950         * tests/test-sys_select.c: Test that sys/select.h defines struct
17951         timeval fully.
17952
17953 2008-09-29  Bruno Haible  <bruno@clisp.org>
17954
17955         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
17956         * lib/sys_select.in.h: Likewise.
17957
17958 2008-09-29  Bruno Haible  <bruno@clisp.org>
17959
17960         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
17961
17962 2008-09-29  Bruno Haible  <bruno@clisp.org>
17963
17964         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
17965         Set LIBSOCKET instead of augmenting LIBS.
17966         * modules/sockets (Link): New section.
17967         * modules/sockets-tests (test_sockets_LDADD): New variable.
17968         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
17969         * modules/poll-tests (test_poll_LDADD): New variable.
17970         * NEWS: Document the change.
17971
17972 2008-09-29  Bruno Haible  <bruno@clisp.org>
17973
17974         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
17975         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
17976         ARPA_INET_H directly.
17977         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17978
17979 2008-09-28  Bruno Haible  <bruno@clisp.org>
17980
17981         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
17982         from gl_HEADER_SYS_SOCKET.
17983         (gl_HEADER_SYS_SOCKET): Invoke it.
17984         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17985
17986 2008-09-28  Bruno Haible  <bruno@clisp.org>
17987
17988         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
17989         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
17990         Needed on OSF/1 4.0.
17991
17992 2008-09-28  Bruno Haible  <bruno@clisp.org>
17993
17994         Override open more carefully.
17995         * lib/open.c (orig_open): New function.
17996         (rpl_open): Use orig_open instead of open.
17997         * lib/fcntl.in.h: Add special invocation convention.
17998         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
17999         (gl_FUNC_OPEN): Invoke it.
18000
18001         Override freopen more carefully.
18002         * lib/freopen.c (orig_freopen): New function.
18003         (rpl_freopen): Use orig_freopen instead of freopen.
18004         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
18005         (gl_FUNC_FREOPEN): Invoke it.
18006
18007         Override fopen more carefully.
18008         * lib/fopen.c (orig_fopen): New function.
18009         (rpl_fopen): Use orig_fopen instead of fopen.
18010         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
18011         (gl_FUNC_FOPEN): Invoke it.
18012         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
18013
18014 2008-09-28  Bruno Haible  <bruno@clisp.org>
18015
18016         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
18017         SIGPIPE.
18018
18019 2008-09-28  Bruno Haible  <bruno@clisp.org>
18020
18021         * tests/test-sigaction.c (handler, main): Disable the check whether
18022         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
18023         glibc systems with LinuxThreads.
18024
18025 2008-09-28  Bruno Haible  <bruno@clisp.org>
18026
18027         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
18028
18029         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
18030         with AIX xlc.
18031         * lib/fcntl.in.h (open): Likewise.
18032         Reported by Rainer Tammer <tammer@tammer.net>.
18033
18034 2008-09-28  Bruno Haible  <bruno@clisp.org>
18035
18036         * modules/posix_spawnp-tests: New file.
18037         * tests/test-posix_spawn.c: New file.
18038         * tests/test-posix_spawn.in.sh: New file.
18039
18040         New module 'posix_spawnp'.
18041         * modules/posix_spawnp: New file.
18042         * lib/spawnp.c: New file, from GNU libc with modifications.
18043         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
18044
18045         New module 'posix_spawn'.
18046         * modules/posix_spawn: New file.
18047         * lib/spawn.c: New file, from GNU libc with modifications.
18048         * doc/posix-functions/posix_spawn.texi: Mention the new module.
18049
18050         New module 'posix_spawnattr_destroy'.
18051         * modules/posix_spawnattr_destroy: New file.
18052         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
18053         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
18054         module.
18055
18056         New module 'posix_spawnattr_setsigmask'.
18057         * modules/posix_spawnattr_setsigmask: New file.
18058         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
18059         modifications.
18060         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
18061         new module.
18062
18063         New module 'posix_spawnattr_getsigmask'.
18064         * modules/posix_spawnattr_getsigmask: New file.
18065         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
18066         modifications.
18067         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
18068         new module.
18069
18070         New module 'posix_spawnattr_setsigdefault'.
18071         * modules/posix_spawnattr_setsigdefault: New file.
18072         * lib/spawnattr_setdefault.c: New file, from GNU libc with
18073         modifications.
18074         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
18075         new module.
18076
18077         New module 'posix_spawnattr_getsigdefault'.
18078         * modules/posix_spawnattr_getsigdefault: New file.
18079         * lib/spawnattr_getdefault.c: New file, from GNU libc with
18080         modifications.
18081         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
18082         new module.
18083
18084         New module 'posix_spawnattr_setschedpolicy'.
18085         * modules/posix_spawnattr_setschedpolicy: New file.
18086         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
18087         modifications.
18088         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
18089         new module.
18090
18091         New module 'posix_spawnattr_getschedpolicy'.
18092         * modules/posix_spawnattr_getschedpolicy: New file.
18093         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
18094         modifications.
18095         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
18096         new module.
18097
18098         New module 'posix_spawnattr_setschedparam'.
18099         * modules/posix_spawnattr_setschedparam: New file.
18100         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
18101         modifications.
18102         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
18103         new module.
18104
18105         New module 'posix_spawnattr_getschedparam'.
18106         * modules/posix_spawnattr_getschedparam: New file.
18107         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
18108         modifications.
18109         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
18110         new module.
18111
18112         New module 'posix_spawnattr_setpgroup'.
18113         * modules/posix_spawnattr_setpgroup: New file.
18114         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
18115         modifications.
18116         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
18117         module.
18118
18119         New module 'posix_spawnattr_getpgroup'.
18120         * modules/posix_spawnattr_getpgroup: New file.
18121         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
18122         modifications.
18123         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
18124         module.
18125
18126         New module 'posix_spawnattr_setflags'.
18127         * modules/posix_spawnattr_setflags: New file.
18128         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
18129         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
18130         module.
18131
18132         New module 'posix_spawnattr_getflags'.
18133         * modules/posix_spawnattr_getflags: New file.
18134         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
18135         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
18136         module.
18137
18138         New module 'posix_spawnattr_init'.
18139         * modules/posix_spawnattr_init: New file.
18140         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
18141         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
18142         module.
18143
18144         New module 'posix_spawn_file_actions_destroy'.
18145         * modules/posix_spawn_file_actions_destroy: New file.
18146         * lib/spawn_faction_destroy.c: New file, from GNU libc with
18147         modifications.
18148         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
18149         the new module.
18150
18151         New module 'posix_spawn_file_actions_addopen'.
18152         * modules/posix_spawn_file_actions_addopen: New file.
18153         * lib/spawn_faction_addopen.c: New file, from GNU libc with
18154         modifications.
18155         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
18156         the new module.
18157
18158         New module 'posix_spawn_file_actions_adddup2'.
18159         * modules/posix_spawn_file_actions_adddup2: New file.
18160         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
18161         modifications.
18162         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
18163         the new module.
18164
18165         New module 'posix_spawn_file_actions_addclose'.
18166         * modules/posix_spawn_file_actions_addclose: New file.
18167         * lib/spawn_faction_addclose.c: New file, from GNU libc with
18168         modifications.
18169         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
18170         the new module.
18171
18172         New module 'posix_spawn_file_actions_init'.
18173         * modules/posix_spawn_file_actions_init: New file.
18174         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
18175         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
18176         new module.
18177
18178         New module 'posix_spawn-internal'.
18179         * modules/posix_spawn-internal: New file.
18180         * lib/spawn_int.h: New file, from GNU libc with modifications.
18181         * lib/spawni.c: New file, from GNU libc with modifications.
18182         * m4/posix_spawn.m4: New file.
18183
18184         New module 'spawn'.
18185         * modules/spawn: New file.
18186         * lib/spawn.in.h: New file, from GNU libc with modifications.
18187         * m4/spawn_h.m4: New file.
18188         * doc/posix-headers/spawn.texi: Mention the new module.
18189
18190 2008-09-28  Bruno Haible  <bruno@clisp.org>
18191
18192         * modules/sched-tests: New file.
18193         * tests/test-sched.c: New file.
18194
18195         New module 'sched'.
18196         * modules/sched: New file.
18197         * lib/sched.in.h: New file.
18198         * m4/sched_h.m4: New file.
18199         * doc/posix-headers/sched.texi: Mention the new module.
18200
18201 2008-09-27  Eric Blake  <ebb9@byu.net>
18202
18203         Fix previous patch, and tweak references to $0.
18204         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
18205         (func_version, func_gnulib_dir): Don't call this program
18206         gnulib-tool.
18207         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
18208         with using $0 in function.
18209         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
18210         (func_fatal_error): Reuse the name the user invoked us with.
18211
18212 2008-09-27  Bruno Haible  <bruno@clisp.org>
18213
18214         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
18215         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
18216         (gl_ICONV_H): Not here.
18217         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
18218         instead of assigning ICONV_H directly.
18219
18220         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
18221         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
18222         WCHAR_H directly.
18223
18224 2008-09-27  Bruno Haible  <bruno@clisp.org>
18225
18226         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
18227         * modules/arpa_inet (Depends-on): Add link-warning.
18228         (Makefile.am): Insert the definition of GL_LINK-WARNING.
18229         * modules/unistd (Makefile.am): Likewise.
18230
18231 2008-09-26  Bruno Haible  <bruno@clisp.org>
18232
18233         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
18234         variables.
18235         (func_version): Essentially copied from gnulib-tool.
18236         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
18237         func_readlink): Copied from gnulib-tool.
18238
18239 2008-09-26  Bruno Haible  <bruno@clisp.org>
18240
18241         * gnulib-tool (func_version): Change directory to $gnulib_dir before
18242         invoking git-version-gen.
18243
18244 2008-09-26  Bruno Haible  <bruno@clisp.org>
18245
18246         * posix-modules: Update to directory names changed on 2008-01-19.
18247         Remove commas in output before splitting into words. No more need to
18248         avoid 'ftruncate' since 2007-02-19.
18249
18250 2008-09-26  Bruno Haible  <bruno@clisp.org>
18251
18252         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
18253
18254 2008-09-26  Bruno Haible  <bruno@clisp.org>
18255
18256         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
18257         * modules/fwriteerror (Depends-on): Add errno.
18258
18259 2008-09-26  Bruno Haible  <bruno@clisp.org>
18260
18261         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
18262         * tests/test-vc-list-files-cvs.sh: Likewise.
18263
18264 2008-09-26  Bruno Haible  <bruno@clisp.org>
18265
18266         * doc/posix-headers/sys_resource.texi: Reorder items.
18267
18268 2008-09-26  Jim Meyering  <meyering@redhat.com>
18269
18270         fts: tweak inode comparison function
18271         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
18272         inode numbers, as documented.
18273
18274         fts: sort dirent entries on inode number before traversing
18275         This avoids a quadratic, seek-related performance penalty when
18276         operating on a directory containing many entries (measurable at 10k;
18277         3.5 hours at 2 million entries with a cold cache) on certain types
18278         of file systems, including ext3 and ext4, but not tmpfs.
18279         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
18280         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
18281         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
18282         (fs_handles_readdir_ordered_dirents_efficiently): New function.
18283         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
18284         (fts_build): Set the stat.st_ino member from D_INO.
18285         If it is likely to be useful, sort dirent entries on inode number.
18286
18287         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
18288         and the struct statfs.f_type member.
18289         * modules/fts (Depends-on): Add d-ino.
18290
18291 2008-09-26  Bruno Haible  <bruno@clisp.org>
18292
18293         * modules/sigpipe-die (Depends-on): Add sigpipe.
18294
18295         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
18296         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
18297         and GNULIB_STDIO_H_SIGPIPE are set.
18298         * lib/stdio-write.c: New file.
18299         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
18300         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18301         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18302         REPLACE_STDIO_WRITE_FUNCS.
18303         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
18304         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18305         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18306         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
18307         * modules/stdio (Files): Add lib/stdio-write.c.
18308         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
18309         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18310         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18311         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
18312         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
18313         REPLACE_FPRINTF_POSIX.
18314         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
18315         REPLACE_PRINTF_POSIX.
18316         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
18317         REPLACE_VFPRINTF_POSIX.
18318         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
18319         REPLACE_VPRINTF_POSIX.
18320         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
18321         SIGPIPE issue.
18322         * doc/posix-functions/fputc.texi: Likewise.
18323         * doc/posix-functions/fputs.texi: Likewise.
18324         * doc/posix-functions/fwrite.texi: Likewise.
18325         * doc/posix-functions/printf.texi: Likewise.
18326         * doc/posix-functions/putc.texi: Likewise.
18327         * doc/posix-functions/putchar.texi: Likewise.
18328         * doc/posix-functions/puts.texi: Likewise.
18329         * doc/posix-functions/vfprintf.texi: Likewise.
18330         * doc/posix-functions/vprintf.texi: Likewise.
18331
18332         * modules/safe-write (Depends-on): Add write.
18333
18334         * modules/sigpipe-tests: New file.
18335         * tests/test-sigpipe.c: New file.
18336         * tests/test-sigpipe.sh: New file.
18337
18338         * modules/write: New file.
18339         * lib/unistd.in.h: Include <sys/types.h>.
18340         (write): New declaration.
18341         * lib/write.c: New file.
18342         * m4/write.m4: New file.
18343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18344         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
18345         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
18346         GNULIB_WRITE, REPLACE_WRITE.
18347         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
18348         and the SIGPIPE issue.
18349
18350         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
18351         (raise): New declaration.
18352         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
18353         (ext_signal): New function.
18354         (rpl_raise): New function.
18355         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
18356         GNULIB_SIGNAL_H_SIGPIPE.
18357         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
18358         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
18359
18360         * modules/sigpipe: New file.
18361         * m4/sigpipe.m4: New file.
18362
18363 2008-09-25  Derek Price  <derek@ximbiot.com>
18364             Bruno Haible  <bruno@clisp.org>
18365
18366         * gnulib-tool (func_import): Report all license incompatibilities, not
18367         just the first one.
18368
18369 2008-09-25  Bruno Haible  <bruno@clisp.org>
18370
18371         * gnulib-tool (func_import): When computing the edits, consider not
18372         only the Makefile.ams that exist but also those that will be generated.
18373
18374 2008-09-25  Simon Josefsson  <simon@josefsson.org>
18375
18376         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
18377         fixes gnulib-tool --test warning about duplicate dependency.
18378
18379 2008-09-25  Bruno Haible  <bruno@clisp.org>
18380
18381         * gnulib-tool: Don't ask the user to perform edits in the generated
18382         Makefile.ams.
18383         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
18384         apply to the Makefile.am being generated.
18385         (func_emit_tests_Makefile_am): Execute edits that apply to the
18386         Makefile.am being generated.
18387         (func_import): Setup list of Makefile.am edits before emitting the
18388         Makefile.ams, not at the end.
18389         (func_create_testdir): Update.
18390         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18391
18392 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18393
18394         * gnulib-tool (func_import): Store the --tests-base option in the
18395         comment in gnulib-cache.m4.
18396
18397 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
18398
18399         * NEWS: Document increased portability that sys_select now provides.
18400
18401         * lib/sys_select.in.h: Install select wrapper.
18402         * lib/sys_socket.in.h: Use more descriptive name when there is no
18403         select wrapper.
18404         * lib/winsock-select.c: New.
18405         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
18406         Require gl_HEADER_SYS_SOCKET.
18407         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
18408         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
18409         * tests/test-sys_select.c: Add functional tests.
18410
18411 2008-09-24  Eric Blake  <ebb9@byu.net>
18412
18413         open, fopen: close fd leak in last patch
18414         * lib/open.c (rpl_open): Close fd before returning error.
18415         * lib/fopen.c (rpl_fopen): Close fd before returning error.
18416         * doc/posix-functions/open.texi (open): Document that Irix also
18417         has the bug.
18418         * doc/posix-functions/fopen.texi (fopen): Likewise.
18419         Reported by Paolo Bonzini.
18420
18421 2008-09-24  Bruno Haible  <bruno@clisp.org>
18422
18423         Ensure that a filename ending in a slash cannot be used to access a
18424         non-directory.
18425         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
18426         to check whether it's really a directory.
18427         * lib/fopen.c: Include fcntl.h, unistd.h.
18428         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
18429         and fdopen().
18430         * modules/fopen (Depends-on): Add unistd.
18431         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
18432         * tests/test-fopen.c (main): Likewise.
18433         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
18434         * doc/posix-functions/fopen.texi: Likewise.
18435         Reported by Eric Blake.
18436
18437 2008-09-23  Eric Blake  <ebb9@byu.net>
18438
18439         c-stack: avoid compiler optimizations when provoking overflow
18440         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
18441         recursion harder to optimize, to ensure a stack overflow occurs.
18442         * tests/test-c-stack.c (recurse): Likewise.
18443         Borrowed from libsigsegv.
18444
18445         c-stack: work around Irix sigaltstack bug
18446         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
18447         whether sigaltstack uses wrong end of stack_t (copied in part from
18448         libsigsegv).
18449         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
18450         Irix bug, without requiring an over-allocation.
18451         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
18452         bug.
18453
18454         fopen: document mingw bug on directories
18455         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
18456         not allowing a stream visiting a directory, even though reading
18457         from such a stream is not portable.
18458
18459 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
18460
18461         * lib/poll.c: Rewrite.
18462         * modules/poll: Depend on alloca.
18463
18464 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
18465
18466         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
18467         instead define prototypes for a full set of wrappers.  Ensure
18468         that Cygwin does not use the compatibility code, which is only
18469         for MinGW.
18470         * lib/winsock.c: New.
18471         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
18472         * modules/sys_socket: Add lib/winsock.c.
18473
18474         * modules/poll-tests: Add errno and perror.
18475         * tests/test-poll.c: Use ioctl, not ioctlsocket.
18476
18477 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
18478
18479         * tests/test-poll.c: Downgrade minimum needed Winsock version.
18480
18481 2008-09-23  Bruno Haible  <bruno@clisp.org>
18482
18483         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
18484         * doc/glibc-functions/*: Likewise.
18485
18486 2008-09-23  Simon Josefsson  <simon@josefsson.org>
18487
18488         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
18489         success.
18490
18491 2008-09-22  Eric Blake  <ebb9@byu.net>
18492             Bruno Haible  <bruno@clisp.org>
18493
18494         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
18495         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
18496         supply %A but mishandle pseudo-NaN.
18497         Reported by Simon Josefsson.
18498
18499 2008-09-21  Bruno Haible  <bruno@clisp.org>
18500
18501         * tests/test-lock.c (main): Tweak skip message.
18502         * tests/test-tls.c (main): Likewise.
18503
18504 2008-09-21  Bruno Haible  <bruno@clisp.org>
18505
18506         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
18507         whether 'struct sigaction' has sa_sigaction here...
18508         (gl_PREREQ_SIG_HANDLER_H): ... not here.
18509         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
18510
18511 2008-09-21  Bruno Haible  <bruno@clisp.org>
18512
18513         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
18514         section.
18515         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
18516         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
18517         the new section.
18518         (Support for obsolete systems lacking POSIX:2001): New section.
18519         (String handling <string.h>): Move strdup to the new section.
18520         Suggested by Simon Josefsson and Paolo Bonzini.
18521
18522 2008-09-21  Bruno Haible  <bruno@clisp.org>
18523
18524         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
18525         exponents in %e and %g results on 'long double'. Needed for mingw's
18526         improved *printf functions.
18527         * tests/test-vasprintf-posix.c (test_function): Likewise.
18528         * tests/test-snprintf-posix.h (test_function): Likewise.
18529         * tests/test-sprintf-posix.h (test_function): Likewise.
18530         Reported by Eric Blake.
18531
18532 2008-09-21  Bruno Haible  <bruno@clisp.org>
18533
18534         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
18535         * tests/test-sprintf-posix.h (test_function): Likewise.
18536
18537 2008-09-21  Bruno Haible  <bruno@clisp.org>
18538
18539         * modules/getpass (Depends-on): Add strdup-posix.
18540
18541         New module 'strdup-posix'.
18542         * modules/strdup-posix: New file.
18543         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
18544         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
18545         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18546         REPLACE_STRDUP.
18547         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
18548         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
18549         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18550         strdup-posix.
18551
18552         * modules/strdup (Depends-on): Remove malloc-posix.
18553
18554 2008-09-20  Bruno Haible  <bruno@clisp.org>
18555
18556         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
18557         Wildenhues.
18558
18559 2008-09-20  Bruno Haible  <bruno@clisp.org>
18560
18561         Ensure that wint_t gets defined on IRIX 5.3.
18562         * lib/wchar.in.h (wint_t): Define if not defined by the system.
18563         * lib/wctype.in.h (wint_t): Likewise.
18564         (__wctype_wint_t): Remove type.
18565         (isw*): Use wint_t instead of __wctype_wint_t.
18566         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
18567         * modules/wchar (Files): Add m4/wint_t.m4.
18568         (Makefile.am): Substitute HAVE_WINT_T.
18569         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
18570         * tests/test-wctype.c: Check that wint_t is defined.
18571         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
18572         * doc/posix-headers/wctype.texi: Likewise.
18573         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18574
18575 2008-09-18  Bruno Haible  <bruno@clisp.org>
18576
18577         * gnulib-tool (func_exit): Update comment.
18578
18579 2008-09-18  Simon Josefsson  <simon@josefsson.org>
18580
18581         * modules/getaddrinfo (Depends-on): Remove strdup, this module
18582         assumes strdup exists and does not depend on strdup to return
18583         ENOMEM on out of memory conditions.
18584
18585 2008-09-18  Bruno Haible  <bruno@clisp.org>
18586
18587         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
18588         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
18589         digits for the exponent.
18590
18591 2008-09-18  Jim Meyering  <meyering@redhat.com>
18592             Bruno Haible  <bruno@clisp.org>
18593
18594         * lib/vasnprintf.c (decimal_point_char): Define also if
18595         NEED_PRINTF_INFINITE_LONG_DOUBLE.
18596
18597 2008-09-16  Bruno Haible  <bruno@clisp.org>
18598         and Eric Blake  <ebb9@byu.net>
18599
18600         vasnprintf: support Irix 5.3
18601         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
18602         that mishandle long double infinity.
18603         Reported by Tom G. Christensen.
18604
18605 2008-09-16  Bruno Haible  <bruno@clisp.org>
18606
18607         * doc/glibc-functions/scandir.texi: Mention the function is missing on
18608         Solaris 9.
18609         * doc/glibc-functions/alphasort.texi: Likewise.
18610         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
18611
18612 2008-09-16  Jim Meyering  <meyering@redhat.com>
18613
18614         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
18615         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
18616         a umask modification leak out of a subshell.  Otherwise, the
18617         opensolaris /bin/sh would be accepted and thus cause unwarranted
18618         failures in the coreutils test suite.
18619
18620 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
18621
18622         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
18623         to succeed.
18624
18625 2008-09-16  Jim Meyering  <meyering@redhat.com>
18626
18627         avoid spurious test failure when library is built without ACL support
18628         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
18629         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
18630         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
18631         * tests/test-copy-acl.sh: Likewise.
18632
18633 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18634
18635         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
18636         based on character occurrence counts.
18637
18638 2008-09-15  Eric Blake  <ebb9@byu.net>
18639
18640         tests: avoid some compiler warnings
18641         * tests/test-memchr.c (main): Pass NULL indirectly.
18642         * tests/test-closein.c (main): Avoid unused variable.
18643
18644 2008-09-15  Bruno Haible  <bruno@clisp.org>
18645
18646         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
18647         are missing on OpenBSD 4.0 individually.
18648         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18649
18650 2008-09-15  Bruno Haible  <bruno@clisp.org>
18651
18652         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
18653         * doc/posix-functions/strerror.texi: Mention also Cygwin.
18654         * doc/posix-functions/perror.texi: Likewise.
18655         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
18656         is missing.
18657         Reported by Eric Blake.
18658
18659         * lib/errno.in.h: Use replacement values >= 2000.
18660         Reported by Eric Blake.
18661
18662 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18663
18664         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
18665         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
18666         limit.
18667         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
18668         compareseq was aborted.
18669
18670 2008-09-14  Bruno Haible  <bruno@clisp.org>
18671
18672         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
18673         yvec_edit_count.
18674         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
18675         (fstrcmp_bounded): Simplify result computation accordingly.
18676
18677 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18678
18679         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
18680         (fstrcmp): Define in terms of fstrcmp_bounded.
18681         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
18682         lower_bound argument.
18683         Return quickly if the result is certainly < lower_bound.
18684         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
18685
18686 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18687
18688         * lib/diffseq.h (EARLY_ABORT): New macro.
18689         (compareseq): Change return type to bool. Return true when EARLY_ABORT
18690         evaluates to true.
18691
18692 2008-09-14  Bruno Haible  <bruno@clisp.org>
18693
18694         * modules/perror-tests: New file.
18695         * tests/test-perror.sh: New file.
18696         * tests/test-perror.c: New file.
18697
18698         New module 'perror'.
18699         * lib/stdio.in.h (perror): New declaration.
18700         * lib/perror.c: New file.
18701         * m4/perror.m4: New file.
18702         * modules/perror: New file.
18703         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
18704         * doc/posix-functions/perror.texi: Mention the perror module.
18705         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
18706         REPLACE_PERROR.
18707         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
18708         REPLACE_PERROR.
18709
18710 2008-09-14  Bruno Haible  <bruno@clisp.org>
18711
18712         * modules/stdio (Makefile.am): Reorder to match the order in
18713         lib/stdio.in.h.
18714         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18715
18716 2008-09-13  Bruno Haible  <bruno@clisp.org>
18717
18718         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
18719
18720 2008-09-13  Bruno Haible  <bruno@clisp.org>
18721
18722         Extend strerror to cover the added errno values.
18723         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
18724         (rpl_strerror): Provide error messages for the added errno values and
18725         for the WSA* values.
18726         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
18727         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
18728         strerror.
18729         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
18730         * modules/strerror (Depends-on): Add errno.
18731         * doc/posix-functions/strerror.texi: Document the change.
18732         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
18733         and EOVERFLOW.
18734
18735 2008-09-13  Bruno Haible  <bruno@clisp.org>
18736
18737         * modules/EOVERFLOW: Remove file.
18738         * m4/eoverflow.m4: Remove file.
18739         * modules/EOVERFLOW-tests: Remove file.
18740         * tests/test-EOVERFLOW.c: Remove file.
18741         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
18742         * modules/ftell (Depends-on): Likewise.
18743         * modules/getdelim (Depends-on): Likewise.
18744         * modules/getugroups (Depends-on): Likewise.
18745         * modules/poll (Depends-on): Likewise.
18746         * modules/snprintf (Depends-on): Likewise.
18747         * modules/sprintf-posix (Depends-on): Likewise.
18748         * modules/vasnprintf (Depends-on): Likewise.
18749         * modules/vasprintf (Depends-on): Likewise.
18750         * modules/vfprintf-posix (Depends-on): Likewise.
18751         * modules/vsnprintf (Depends-on): Likewise.
18752         * modules/vsprintf-posix (Depends-on): Likewise.
18753         * modules/xvasprintf (Depends-on): Likewise.
18754         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18755         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
18756         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
18757         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
18758         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18759         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
18760         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
18761         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
18762         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18763         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
18764         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
18765         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
18766         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18767         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
18768         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
18769         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
18770         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18771         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
18772         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
18773         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
18774         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18775         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
18776         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
18777         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
18778         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
18779         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18780         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
18781         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
18782         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
18783         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
18784         * MODULES.html.sh: Remove EOVERFLOW.
18785         * NEWS: Mention the change.
18786
18787 2008-09-13  Bruno Haible  <bruno@clisp.org>
18788
18789         * modules/errno-tests: New file.
18790         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
18791
18792         * lib/errno.in.h: New file.
18793         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
18794         * modules/errno: New file.
18795         * doc/posix-headers/errno.texi: Update documentation.
18796         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
18797
18798 2008-09-13  Bruno Haible  <bruno@clisp.org>
18799
18800         * tests/test-poll.c: Use #if for native Windows, rather than testing
18801         __MSVCRT__.
18802
18803 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18804             Bruno Haible  <bruno@clisp.org>
18805
18806         * lib/glob.c: Don't include <pwd.h> on native Windows.
18807         (WINDOWS32): New macro.
18808         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
18809
18810 2008-09-13  Bruno Haible  <bruno@clisp.org>
18811
18812         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
18813         (ETIMEDOUT): Remove macro.
18814         (glthread_cond_timedwait_multithreaded): New declaration.
18815         (glthread_cond_timedwait): Use it.
18816         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
18817         (glthread_cond_timedwait_multithreaded): New function.
18818
18819 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
18820
18821         * modules/poll-tests: Do not check for io.h.
18822         * tests/test-poll.c: Check for __MSVCRT__ instead.
18823
18824 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
18825
18826         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
18827         * modules/poll-tests: Add inet_pton, stdbool, sockets.
18828         * tests/test-poll.c: Use them.  Use _pipe on Windows.
18829
18830 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
18831
18832         * modules/poll-tests: New.
18833         * tests/test-poll.c: New.
18834
18835 2008-09-12  Eric Blake  <ebb9@byu.net>
18836
18837         frexp: test for NetBSD failure on -0.0
18838         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
18839         not all, bugs from NetBSD 3.0 have been fixed.
18840         * doc/posix-functions/frexp.texi (frexp): Document bug.
18841         Reported by Thomas Klausner.
18842
18843         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
18844         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
18845         literal -0.0.
18846         Reported by Jonathan C. Patschke <jp@centtech.com>.
18847
18848 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18849
18850         * lib/glthread/cond.h: Use dummy implementation also if
18851         USE_WIN32_THREADS.
18852
18853 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18854
18855         * modules/fnmatch-posix (License): Change to LGPLv2+.
18856         * modules/fnmatch-gnu (License): Likewise.
18857
18858 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18859
18860         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
18861
18862 2008-09-11  Jim Meyering  <meyering@redhat.com>
18863
18864         * users.txt: Add gtk-vnc.
18865
18866 2008-09-08  Simon Josefsson  <simon@josefsson.org>
18867
18868         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
18869         rotate amounts.
18870
18871         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
18872         required for 16-bit and 8-bit rotates.
18873         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
18874         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
18875         UINT8_MAX instead of hard-coded constants.
18876         Suggested by Paul Eggert.
18877
18878 2008-09-07  Bruno Haible  <bruno@clisp.org>
18879
18880         * tests/test-striconveh.c (main): Check behaviour when converting from
18881         UTF-7.
18882
18883         Make striconveh work better with stateful encodings.
18884         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
18885         that iconv does not increment the inptr when returning -1/EINVAL.
18886
18887 2008-09-07  Bruno Haible  <bruno@clisp.org>
18888
18889         * build-aux/config.rpath: Update according to libtool-2.2.6.
18890         * build-aux/config.libpath: Likewise.
18891
18892 2008-09-06  Bruno Haible  <bruno@clisp.org>
18893
18894         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
18895         * lib/freadptr.c (freadptr): Likewise.
18896         * lib/freadseek.c (freadptrinc): Likewise.
18897         Reported by Simon Josefsson.
18898
18899 2008-09-06  Bruno Haible  <bruno@clisp.org>
18900
18901         * modules/freadptr (License): Change to LGPLv2+.
18902         * modules/freadseek (License): Likewise.
18903         Suggested by Eric Blake.
18904
18905         * modules/memchr2 (License): Change to LGPLv2+.
18906         Approved by Eric Blake.
18907
18908 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18909             Bruno Haible  <bruno@clisp.org>
18910
18911         Make gnulib-tool work with native 'sed' on AIX.
18912         * gnulib-tool (sed_noop): New variable.
18913         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
18914         func_add_or_update, func_create_testdir): Use it to initialize sed
18915         script variables.
18916         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18917
18918 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
18919             Bruno Haible  <bruno@clisp.org>
18920
18921         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
18922         also works after #include directives.
18923
18924 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
18925
18926         getdate.y: reject an out-of-range timezone value
18927         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
18928         the range [-24...+24].  When specified with only one or two digits,
18929         * tests/test-getdate.c: Tests for the fix.
18930         * doc/getdate.texi: Document this change.
18931
18932 2008-09-03  Bruno Haible  <bruno@clisp.org>
18933
18934         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
18935
18936 2008-09-02  Simon Josefsson  <simon@josefsson.org>
18937
18938         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
18939         <bruce.korb@gmail.com> with ideas from Ben Pfaff
18940         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
18941         Blake <ebb9@byu.net>.
18942
18943         * tests/test-bitrotate.c: Add more test vectors.
18944
18945 2008-09-02  Eric Blake  <ebb9@byu.net>
18946
18947         vasnprintf-posix: handle large precision via %.*d
18948         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
18949         when handling it ourselves.
18950         * tests/test-vasnprintf-posix.c (test_function): Add test.
18951         * tests/test-snprintf-posix.h (test_function): Likewise.
18952         * tests/test-sprintf-posix.h (test_function): Likewise.
18953         * tests/test-vasprintf-posix.c (test_function): Likewise.
18954         Reported by Alain Guibert.
18955
18956 2008-09-01  Eric Blake  <ebb9@byu.net>
18957
18958         c-stack: make configure-time check more robust
18959         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
18960         successful sigaction call.
18961         Reported by Tom G. Christensen.
18962
18963 2008-09-01  Bruno Haible  <bruno@clisp.org>
18964
18965         New module 'findprog-lgpl'.
18966         * modules/findprog-lgpl: New file.
18967         * lib/findprog-lgpl.c: New file.
18968         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
18969         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
18970         to decide whether to use strdup or xstrdup, concatenated_filename or
18971         xconcatenated_filename.
18972
18973 2008-09-01  Bruno Haible  <bruno@clisp.org>
18974
18975         Split module 'concat-filename' into 'concat-filename' (LGPL) and
18976         'xconcat-filename' (GPL).
18977         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
18978         (License): Change to LGPLv2+.
18979         * modules/xconcat-filename: New file.
18980         * lib/concat-filename.h (concatenated_filename): Change specification.
18981         (xconcatenated_filename): New declaration.
18982         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
18983         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
18984         memory situations.
18985         * lib/xconcat-filename.c: New file.
18986         * NEWS: Mention the change.
18987         * lib/findprog.c: Include concat-filename.h, not filename.h.
18988         (find_in_path): Use xconcatenated_filename instead of
18989         concatenated_filename.
18990         * lib/javacomp.c: Include concat-filename.h, not filename.h.
18991         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
18992         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
18993         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
18994         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
18995         instead of concatenated_filename.
18996         * lib/javaexec.c: Include concat-filename.h, not filename.h.
18997         (execute_java_class): Use xconcatenated_filename instead of
18998         concatenated_filename.
18999         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
19000         * modules/javacomp (Depends-on): Likewise.
19001         * modules/javaexec (Depends-on): Likewise.
19002
19003 2008-09-01  Bruno Haible  <bruno@clisp.org>
19004
19005         Split module 'filename' into 'filename' and 'concat-filename'.
19006         * modules/filename: Keep only lib/filename.h.
19007         (License): Change to LGPLv2+.
19008         * modules/concat-filename: New file, extracted from modules/filename.
19009         * lib/filename.h (concatenated_filename): Remove declaration.
19010         * lib/concat-filename.h: New file, extracted from lib/filename.h.
19011         * lib/concat-filename.c: Include concat-filename.h.
19012         * NEWS: Mention the change.
19013
19014 2008-09-01  Simon Josefsson  <simon@josefsson.org>
19015
19016         * lib/bitrotate.h (rotl8, rotr8): Add.
19017
19018         * modules/bitrotate (configure.ac): Need
19019         AC_REQUIRE([AC_C_INLINE]).
19020         (Description): Mention stdint.h.  Reported by Bruno Haible
19021         <bruno@clisp.org>.
19022
19023         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
19024         Paolo Bonzini <bonzini@gnu.org>.
19025
19026 2008-08-31  Bruno Haible  <bruno@clisp.org>
19027
19028         Assume Solaris specific bi-arch conventions on Solaris systems.
19029         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
19030         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
19031         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
19032         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
19033         like acl_libdirstem.
19034         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
19035         acl_libdirstem.
19036         * NEWS: Mention the change.
19037         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
19038
19039 2008-08-31  Jim Meyering  <meyering@redhat.com>
19040
19041         * lib/strftime.h: Add comments describing the two added arguments.
19042
19043         remove duplicate #include directives
19044         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
19045         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
19046
19047 2008-08-31  Bruno Haible  <bruno@clisp.org>
19048
19049         New module 'sigpipe-die'.
19050         * modules/sigpipe-die: New file.
19051         * lib/sigpipe-die.h: New file.
19052         * lib/sigpipe-die.c: New file.
19053         * MODULES.html.sh (Signal handling): Add sigpipe-die.
19054
19055 2008-08-31  Bruno Haible  <bruno@clisp.org>
19056
19057         Don't override previously installed signal handlers.
19058         * lib/fatal-signal.c (saved_sigactions): New variable.
19059         (uninstall_handlers): Reset the signal to the saved handler, not
19060         to SIG_DFL (except when ignored).
19061         (install_handlers): Save the previous handlers.
19062
19063 2008-08-30  Bruno Haible  <bruno@clisp.org>
19064
19065         * gnulib-tool (func_reset_sigpipe): New function.
19066         (func_get_automake_snippet, func_modules_transitive_closure,
19067         func_import): Invoke it before a join command that reads from stdin,
19068         to avoid "echo: write error: Broken pipe" error messages on stderr.
19069         Reported by Sam Steingold <sds@gnu.org>.
19070
19071 2008-08-30  Bruno Haible  <bruno@clisp.org>
19072
19073         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
19074         Code copied from m4/open.m4.
19075         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
19076         access and the filename ends in a slash. Code copied from lib/open.c.
19077         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
19078         * tests/test-fopen.c (main): Check against bug with trailing slash.
19079
19080 2008-08-29  Bruno Haible  <bruno@clisp.org>
19081
19082         Avoid some "gcc -pedantic" warnings.
19083         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
19084         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
19085         * lib/dirent.in.h: Likewise.
19086         * lib/fcntl.in.h: Likewise.
19087         * lib/float.in.h: Likewise.
19088         * lib/iconv.in.h: Likewise.
19089         * lib/inttypes.in.h: Likewise.
19090         * lib/locale.in.h: Likewise.
19091         * lib/math.in.h: Likewise.
19092         * lib/netinet_in.in.h: Likewise.
19093         * lib/search.in.h: Likewise.
19094         * lib/signal.in.h: Likewise.
19095         * lib/stdarg.in.h: Likewise.
19096         * lib/stdint.in.h: Likewise.
19097         * lib/stdio.in.h: Likewise.
19098         * lib/stdlib.in.h: Likewise.
19099         * lib/string.in.h: Likewise.
19100         * lib/strings.in.h: Likewise.
19101         * lib/sys_select.in.h: Likewise.
19102         * lib/sys_socket.in.h: Likewise.
19103         * lib/sys_stat.in.h: Likewise.
19104         * lib/sys_time.in.h: Likewise.
19105         * lib/sysexits.in.h: Likewise.
19106         * lib/time.in.h: Likewise.
19107         * lib/unistd.in.h: Likewise.
19108         * lib/wchar.in.h: Likewise.
19109         * lib/wctype.in.h: Likewise.
19110         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
19111         * modules/fchdir (Makefile.am): Likewise.
19112         * modules/fcntl (Makefile.am): Likewise.
19113         * modules/float (Makefile.am): Likewise.
19114         * modules/iconv_open (Makefile.am): Likewise.
19115         * modules/inttypes (Makefile.am): Likewise.
19116         * modules/locale (Makefile.am): Likewise.
19117         * modules/math (Makefile.am): Likewise.
19118         * modules/netinet_in (Makefile.am): Likewise.
19119         * modules/search (Makefile.am): Likewise.
19120         * modules/signal (Makefile.am): Likewise.
19121         * modules/stdarg (Makefile.am): Likewise.
19122         * modules/stdint (Makefile.am): Likewise.
19123         * modules/stdio (Makefile.am): Likewise.
19124         * modules/stdlib (Makefile.am): Likewise.
19125         * modules/string (Makefile.am): Likewise.
19126         * modules/strings (Makefile.am): Likewise.
19127         * modules/sys_select (Makefile.am): Likewise.
19128         * modules/sys_socket (Makefile.am): Likewise.
19129         * modules/sys_stat (Makefile.am): Likewise.
19130         * modules/sys_time (Makefile.am): Likewise.
19131         * modules/sysexits (Makefile.am): Likewise.
19132         * modules/time (Makefile.am): Likewise.
19133         * modules/unistd (Makefile.am): Likewise.
19134         * modules/wchar (Makefile.am): Likewise.
19135         * modules/wctype (Makefile.am): Likewise.
19136         Reported by Reuben Thomas <rrt@sc3d.org>.
19137
19138 2008-08-29  Bruno Haible  <bruno@clisp.org>
19139
19140         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
19141         any more.
19142
19143 2008-08-29  Simon Josefsson  <simon@josefsson.org>
19144
19145         * MODULES.html.sh (Misc): Add bitrotate.
19146
19147         * modules/bitrotate: New file.
19148
19149         * lib/bitrotate.h: New file.
19150
19151         * modules/bitrotate-tests: New file.
19152
19153         * tests/test-bitrotate.c: New file.
19154
19155         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
19156         on the bitrotate module.
19157
19158         * lib/arctwo.c: Use new bitrotate module.
19159
19160 2008-08-29  Jim Meyering  <meyering@redhat.com>
19161
19162         bootstrap: merge changes from coreutils
19163         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
19164         of copied files.  Remove a kludge, now that this is fixed.
19165         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
19166         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
19167         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
19168
19169 2008-08-29  Bruno Haible  <bruno@clisp.org>
19170
19171         * MODULES.html.sh: Remove --cvs-urls option.
19172
19173 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
19174
19175         maint.mk: adjust to file name change
19176         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
19177
19178 2008-08-28  Jim Meyering  <meyering@redhat.com>
19179
19180         * modules/getndelim2 (License): Relicense to LGPLv2+.
19181         Approved by Richard Stallman for the version of 1995, and by
19182         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
19183
19184 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
19185
19186         * lib/getdelim.c (flockfile, funlockfile): Make all of them
19187         dummy if one is not available.  Do not touch them if
19188         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
19189         (getc_maybe_unlocked): New.
19190         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
19191
19192 2008-08-26  Eric Blake  <ebb9@byu.net>
19193
19194         doc/INSTALL: resync from autoconf
19195         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
19196         (INSTALL_PRELUDE): Delete; this is done more efficiently by
19197         moving...
19198         * install.texi [!autoconf]: ...here.  Resync from autoconf.
19199         * INSTALL: Regenerate.
19200         * INSTALL.ISO: New file.
19201         * INSTALL.UTF-8: Likewise.
19202
19203 2008-08-26  Jim Meyering  <meyering@redhat.com>
19204
19205         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
19206         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
19207         these definitions conditional, so that they may be overridden, too.
19208
19209 2008-08-26  Bruno Haible  <bruno@clisp.org>
19210
19211         Generate INSTALL file variants with prettier quotes.
19212         * doc/Makefile (INSTALL_PRELUDE): New macro.
19213         (INSTALL): Use it.
19214         (INSTALL.ISO, INSTALL.UTF-8): New rules.
19215
19216 2008-08-26  Bruno Haible  <bruno@clisp.org>
19217
19218         Run makeinfo in an English locale.
19219         * doc/Makefile (MAKEINFO): New variable.
19220
19221 2008-08-26  Bruno Haible  <bruno@clisp.org>
19222
19223         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
19224         Suggested by Eric Blake.
19225
19226 2008-08-25  Bruno Haible  <bruno@clisp.org>
19227
19228         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
19229
19230 2008-08-25  Eric Blake  <ebb9@byu.net>
19231
19232         c-stack: test that stack overflow can be caught
19233         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
19234         that platform allows handling stack overflow; at least OS/2 EMX
19235         has sigaltstack, but crashes before transferring control to
19236         handler on stack overflow.
19237         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
19238         check for HAVE_STACK_OVERFLOW_HANDLING.
19239         Reported by Elbert Pol.
19240
19241 2008-08-25  Bruno Haible  <bruno@clisp.org>
19242
19243         * doc/posix-functions/strftime.texi: Fix description of strftime
19244         module.
19245
19246 2008-08-24  Bruno Haible  <bruno@clisp.org>
19247
19248         * tests/uniwidth/test-uc_width2.c: New file.
19249         * tests/uniwidth/test-uc_width2.sh: New file.
19250         * modules/uniwidth/width-tests (Files): Add the new files.
19251         (TESTS): Add uniwidth/test-uc_width2.sh.
19252         (TESTS_ENVIRONMENT): New variable.
19253         (check_PROGRAMS): Add test-uc_width2.
19254         (test_uc_width2_SOURCES): New variable.
19255
19256         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
19257         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
19258         not 0x00AB.
19259         Reported by Alexander V. Lukyanov <lav@netis.ru>.
19260
19261 2008-08-22  Eric Blake  <ebb9@byu.net>
19262
19263         test-lock, test-tls: mention why a test is skipped
19264         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
19265         skipped.
19266         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
19267
19268         count-one-bits: relax license
19269         * modules/count-one-bits (License): Relicense to LGPLv2+.
19270         Suggested by Ludovic Courtès, approved by Ben Pfaff.
19271
19272 2008-08-22  Andreas Schwab  <schwab@suse.de>
19273
19274         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19275         Remove spurious space in assignment.
19276
19277 2008-08-21  Simon Josefsson  <simon@josefsson.org>
19278
19279         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
19280         Paul Eggert <eggert@CS.UCLA.EDU>.
19281
19282 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
19283
19284         * modules/gettext: Add m4/threadlib.m4.
19285
19286 2008-08-19  Eric Blake  <ebb9@byu.net>
19287
19288         test-c-stack: fix compilation failure on FreeBSD 5.0
19289         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
19290         headers before <sys/resource.h>.
19291         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
19292         the bug.
19293         Reported by Nelson H. F. Beebe.
19294
19295         strverscmp: migrate from "strverscmp.h" to <string.h>
19296         * modules/string (Makefile.am): Add new hooks.
19297         * modules/strverscmp (Files): Remove strverscmp.h.
19298         (Depends-on): Add string.
19299         (configure.ac): Add indicator.
19300         (Include): Mention new header.
19301         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
19302         defaults.
19303         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
19304         results.
19305         * lib/strverscmp.h: Delete.
19306         * lib/string.in.h (strverscmp): Provide declaration, when needed.
19307         * tests/test-strverscmp.c (includes): Adjust client.
19308         * lib/check-version.c (includes): Likewise.
19309         * NEWS: Document the change.
19310
19311         strverscmp: add unit test
19312         * modules/strverscmp-tests: New file.
19313         * tests/test-strverscmp.c: Likewise.
19314
19315 2008-08-19  Simon Josefsson  <simon@josefsson.org>
19316
19317         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
19318         regarding Windows crypto stuff, from Mono.
19319
19320 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
19321
19322         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
19323         if present, for intel RND.  Return error on failures.
19324
19325 2008-08-18  Ben Pfaff  <blp@gnu.org>
19326
19327         gitlog-to-changelog: give better diagnostic for failed pipe-open
19328         * build-aux/gitlog-to-changelog: Improve error message: suggest
19329         that the version of Git may be too old.
19330
19331 2008-08-18  Simon Josefsson  <simon@josefsson.org>
19332
19333         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
19334         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
19335
19336 2008-08-18  Bruno Haible  <bruno@clisp.org>
19337
19338         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
19339         pthread_in_use().
19340
19341 2008-08-18  Bruno Haible  <bruno@clisp.org>
19342
19343         * lib/glthread/threadlib.c: Include <pthread.h>.
19344
19345 2008-08-18  Bruno Haible  <bruno@clisp.org>
19346
19347         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
19348         glthread_recursive_lock_* macros.
19349         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
19350         Fix syntax error.
19351
19352 2008-08-18  Bruno Haible  <bruno@clisp.org>
19353
19354         * lib/glthread/thread.c: Avoid forcing a context switch right after
19355         thread creation.
19356
19357 2008-08-17  Bruno Haible  <bruno@clisp.org>
19358
19359         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
19360         * lib/glthread/thread.h: Provide Win32 specific implementation.
19361         * modules/thread (Files): Add lib/glthread/thread.c.
19362         (Depends-on): Add lock.
19363         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
19364
19365 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19366
19367         New module 'yield'.
19368         * modules/yield: New file.
19369         * lib/glthread/yield.h: New file.
19370         * m4/yield.m4: New file.
19371         * MODULES.html.sh (Multithreading): Add yield.
19372
19373 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19374
19375         New module 'thread'.
19376         * modules/thread: New file.
19377         * lib/glthread/thread.h: New file.
19378         * m4/thread.m4: New file.
19379         * MODULES.html.sh (Multithreading): Add thread.
19380
19381 2008-08-17  Bruno Haible  <bruno@clisp.org>
19382
19383         * lib/glthread/lock.h: Include <stdlib.h> always.
19384         * lib/glthread/tls.h: Likewise.
19385         * lib/glthread/cond.h: Likewise.
19386
19387 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19388
19389         New module 'cond'.
19390         * modules/cond: New file.
19391         * lib/glthread/cond.h: New file.
19392         * lib/glthread/cond.c: New file.
19393         * m4/cond.m4: New file.
19394         * MODULES.html.sh (Multithreading): Add cond.
19395
19396 2008-08-16  Eric Blake  <ebb9@byu.net>
19397
19398         c-stack: fix regression on Irix 5.3 from 2008-06-21
19399         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
19400         sa_sigaction...
19401         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
19402         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
19403         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
19404         * modules/signal (Makefile.am): Use the value.
19405         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
19406         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
19407         * doc/posix-headers/signal.texi (signal.h): Document this
19408         portability issue.
19409         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
19410         Reported by Tom G. Christensen.
19411
19412 2008-08-17  Bruno Haible  <bruno@clisp.org>
19413
19414         New module 'threadlib'.
19415         * modules/threadlib: New file.
19416         * lib/glthread/threadlib.c: New file, extracted from
19417         lib/glthread/lock.c.
19418         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
19419         functions.
19420         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
19421         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
19422         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
19423         macros.
19424         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
19425         (gl_DISABLE_THREADS): Remove macro.
19426         * modules/lock (Files): Remove build-aux/config.rpath.
19427         (Depends-on): Remove havelib. Add threadlib.
19428         (configure.ac-early): Remove section.
19429         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
19430         * modules/tls (Depends-on): Remove lock. Add threadlib.
19431         (Link): New section, copied from threadlib.
19432         * MODULES.html.sh (Multithreading): Add threadlib.
19433
19434 2008-08-14  Bruno Haible  <bruno@clisp.org>
19435
19436         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
19437         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
19438         glthread_rwlock_unlock, glthread_rwlock_destroy,
19439         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
19440         glthread_recursive_lock_destroy): Define as macros always.
19441         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
19442         glthread_lock_lock.
19443         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
19444         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
19445         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
19446         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
19447         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
19448         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
19449         (glthread_recursive_lock_lock_func): Renamed from
19450         glthread_recursive_lock_lock.
19451         (glthread_recursive_lock_unlock_func): Renamed from
19452         glthread_recursive_lock_unlock.
19453         (glthread_recursive_lock_destroy_func): Renamed from
19454         glthread_recursive_lock_destroy.
19455
19456 2008-08-14  Bruno Haible  <bruno@clisp.org>
19457
19458         * lib/glthread/lock.h: Renamed from lib/lock.h.
19459         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
19460         * lib/glthread/tls.h: Renamed from lib/tls.h.
19461         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
19462         * lib/fstrcmp.c: Update includes.
19463         * lib/strsignal.c: Update includes.
19464         * modules/lock (Files, Makefile.am): Update.
19465         (Include): Change to "glthread/lock.h".
19466         * modules/tls (Files, Makefile.am): Update.
19467         (Include): Change to "glthread/tls.h".
19468         * tests/test-lock.c: Update includes.
19469         * tests/test-tls.c: Update includes.
19470         * NEWS: Mention the renamed header files.
19471
19472 2008-08-11  Jim Meyering  <meyering@redhat.com>
19473
19474         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
19475
19476 2008-08-11  Eric Blake  <ebb9@byu.net>
19477
19478         test-c-stack: avoid C99-ism
19479         * tests/test-c-stack.c (main): Fix whitespace, move declaration
19480         before statement.
19481         Reported by Alain Guibert.
19482
19483 2008-08-10  Jim Meyering  <meyering@redhat.com>
19484
19485         ensure that return value of uinttostr et al are not ignored
19486         * lib/inttostr.h (__GNUC_PREREQ): Define.
19487         (__attribute_warn_unused_result__): Define.
19488         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
19489
19490 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
19491
19492         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
19493         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
19494
19495 2008-08-07  Jim Meyering  <meyering@redhat.com>
19496
19497         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
19498
19499         * modules/mkstemp (License): Relicense under LGPLv2+.
19500         * modules/tempname (License): Likewise.
19501
19502 2008-08-06  Bruno Haible  <bruno@clisp.org>
19503
19504         * lib/poll.c (poll): Further micro-optimization.
19505
19506 2008-08-06  Jim Meyering  <meyering@redhat.com>
19507
19508         inet_pton.c: use locale-independent tolower
19509         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
19510         (inet_pton6): Use c_tolower rather than tolower.
19511         * modules/inet_pton (Depends-on): Add c-ctype.
19512
19513 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
19514
19515         * lib/poll.c (poll): Avoid division when timeout is 0, cache
19516         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
19517
19518 2008-08-06  Jim Meyering  <meyering@redhat.com>
19519
19520         * modules/inet_pton (License): Relicense under LGPLv2+.
19521
19522 2008-08-03  Bruno Haible  <bruno@clisp.org>
19523
19524         Additional non-aborting API for lock and tls.
19525         * lib/lock.h: Include <errno.h>.
19526         (glthread_lock_init): New macro/function.
19527         (gl_lock_init): Define as wrapper around glthread_lock_init.
19528         (glthread_lock_lock): New macro/function.
19529         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
19530         (glthread_lock_unlock): New macro/function.
19531         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
19532         (glthread_lock_destroy): New macro/function.
19533         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
19534         (glthread_rwlock_init): New macro/function.
19535         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
19536         (glthread_rwlock_rdlock): New macro/function.
19537         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
19538         (glthread_rwlock_wrlock): New macro/function.
19539         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
19540         (glthread_rwlock_unlock): New macro/function.
19541         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
19542         (glthread_rwlock_destroy): New macro/function.
19543         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
19544         (glthread_recursive_lock_init): New macro/function.
19545         (gl_recursive_lock_init): Define as wrapper around
19546         glthread_recursive_lock_init.
19547         (glthread_recursive_lock_lock): New macro/function.
19548         (gl_recursive_lock_lock): Define as wrapper around
19549         glthread_recursive_lock_lock.
19550         (glthread_recursive_lock_unlock): New macro/function.
19551         (gl_recursive_lock_unlock): Define as wrapper around
19552         glthread_recursive_lock_unlock.
19553         (glthread_recursive_lock_destroy): New macro/function.
19554         (gl_recursive_lock_destroy): Define as wrapper around
19555         glthread_recursive_lock_destroy.
19556         (glthread_once): New macro/function.
19557         (gl_once): Define as wrapper around glthread_once.
19558         Update function declarations.
19559         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
19560         glthread_rwlock_init. Return error code.
19561         (glthread_rwlock_rdlock_multithreaded): Renamed from
19562         glthread_rwlock_rdlock. Return error code.
19563         (glthread_rwlock_wrlock_multithreaded): Renamed from
19564         glthread_rwlock_wrlock. Return error code.
19565         (glthread_rwlock_unlock_multithreaded): Renamed from
19566         glthread_rwlock_unlock. Return error code.
19567         (glthread_rwlock_destroy_multithreaded): Renamed from
19568         glthread_rwlock_destroy. Return error code.
19569         (glthread_recursive_lock_init_multithreaded): Renamed from
19570         glthread_recursive_lock_init. Return error code.
19571         (glthread_recursive_lock_lock_multithreaded): Renamed from
19572         glthread_recursive_lock_lock. Return error code.
19573         (glthread_recursive_lock_unlock_multithreaded): Renamed from
19574         glthread_recursive_lock_unlock. Return error code.
19575         (glthread_recursive_lock_destroy_multithreaded): Renamed from
19576         glthread_recursive_lock_destroy. Return error code.
19577         (glthread_once_call): Make static.
19578         (glthread_once_multithreaded): Renamed from glthread_once.
19579         * lib/tls.h: Include <errno.h>.
19580         (glthread_tls_key_init): New macro/function.
19581         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
19582         (glthread_tls_set): New macro/function.
19583         (gl_tls_set): Define as wrapper around glthread_tls_set.
19584         (glthread_tls_key_destroy): New macro/function.
19585         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
19586         Update function declarations.
19587         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
19588         glthread_tls_get.
19589         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19590
19591 2008-08-04  Eric Blake  <ebb9@byu.net>
19592
19593         gnumakefile: use space, not TAB, outside of targets
19594         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
19595
19596 2008-08-02  Jim Meyering  <meyering@redhat.com>
19597
19598         getdate.y: avoid locale-dependent date parsing failure
19599         In Turkish locales, getdate would fail to recognize keywords
19600         containing a lowercase "i".  The solution is not to rely on
19601         locale-sensitive case-conversion.
19602         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
19603         (lookup_word): Use c_toupper in place of toupper.
19604         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
19605         Reported by Vefa Bicakci <bicave@superonline.com> in
19606         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
19607         * modules/getdate (Depends-on): Add c-ctype.
19608
19609 2008-08-02  Bruno Haible  <bruno@clisp.org>
19610
19611         * gnulib-tool (func_import): When updating or creating a .gitignore
19612         file, prepend each added line with a slash, and ignore leading slashes
19613         from the existing lines.
19614         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
19615
19616 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19617
19618         Portability fix for GNU make 3.79.1.
19619         * top/GNUmakefile: Avoid 'else COND', which older GNU make
19620         versions do not understand.
19621
19622 2008-08-01  Bruno Haible  <bruno@clisp.org>
19623
19624         Work around bug of HP-UX 10.20 cc with -0.0 literal.
19625         * tests/test-isnanf.h (zero): New variable.
19626         (main): Avoid literal -0.0f.
19627         * tests/test-isnand.h (zero): New variable.
19628         (main): Avoid literal -0.0.
19629         * tests/test-isnanl.h (zero): New variable.
19630         (main): Avoid literal -0.0L.
19631         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
19632         (test_float, test_double, test_long_double): Avoid literals -0.0f,
19633         -0.0, -0.0L.
19634         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
19635         (test_signbitd): Avoid literal -0.0.
19636         (test_signbitl): Avoid literal -0.0L.
19637         * tests/test-ceilf1.c (zero): New variable.
19638         (main): Avoid literal -0.0f.
19639         * tests/test-ceill.c (zero): New variable.
19640         (main): Avoid literal -0.0L.
19641         * tests/test-floorf1.c (zero): New variable.
19642         (main): Avoid literal -0.0f.
19643         * tests/test-floorl.c (zero): New variable.
19644         (main): Avoid literal -0.0L.
19645         * tests/test-roundf1.c (zero): New variable.
19646         (main): Avoid literal -0.0f.
19647         * tests/test-round1.c (zero): New variable.
19648         (main): Avoid literal -0.0.
19649         * tests/test-roundl.c (zero): New variable.
19650         (main): Avoid literal -0.0L.
19651         * tests/test-truncf1.c (zero): New variable.
19652         (main): Avoid literal -0.0f.
19653         * tests/test-trunc1.c (zero): New variable.
19654         (main): Avoid literal -0.0.
19655         * tests/test-truncl.c (zero): New variable.
19656         (main): Avoid literal -0.0L.
19657         * tests/test-frexp.c (zero): New variable.
19658         (main): Avoid literal -0.0.
19659         * tests/test-frexpl.c (zero): New variable.
19660         (main): Avoid literal -0.0L.
19661         * tests/test-ldexpl.c (zero): New variable.
19662         (main): Avoid literal -0.0L.
19663         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
19664         (zerod, zerol): New variables.
19665         (test_function): Avoid literals -0.0, -0.0L.
19666         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
19667         (zerod, zerol): New variables.
19668         (test_function): Avoid literals -0.0, -0.0L.
19669         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
19670         (zerod, zerol): New variables.
19671         (test_function): Avoid literals -0.0, -0.0L.
19672         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
19673         (zerod, zerol): New variables.
19674         (test_function): Avoid literals -0.0, -0.0L.
19675         * tests/test-strtod.c (zero): New variable.
19676         (main): Avoid literal -0.0.
19677         Reported by Jonathan C. Patschke <jp@centtech.com>.
19678
19679 2008-07-31  Jim Meyering  <meyering@redhat.com>
19680
19681         sha256.h: correct definition of SHA224_DIGEST_SIZE
19682         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
19683         Reported by Paulie Pena IV <paulie4@gmail.com>.
19684         Define as 224 / 8, rather than as a literal.
19685         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
19686         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
19687         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
19688
19689 2008-07-31  Bruno Haible  <bruno@clisp.org>
19690
19691         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
19692         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
19693         Reported by Jonathan Patschke <jp@centtech.com>.
19694
19695 2008-07-31  Bruno Haible  <bruno@clisp.org>
19696
19697         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
19698         Reported by Paolo Bonzini <bonzini@gnu.org>.
19699
19700 2008-07-30  Eric Blake  <ebb9@byu.net>
19701
19702         test-strtod: allow compilation without -lm
19703         * tests/test-strtod.c (main): Avoid link dependence on fabs.
19704         Reported by Dennis Clarke <blastwave@gmail.com>.
19705
19706 2008-07-28  Jim Meyering  <meyering@redhat.com>
19707
19708         bootstrap: work also when there are no .po files in po/
19709         * build-aux/bootstrap (update_po_files): Complete the change
19710         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
19711
19712 2008-07-27  Jim Meyering  <meyering@redhat.com>
19713
19714         * users.txt: Add zile.
19715
19716 2008-07-26  Ben Pfaff  <blp@gnu.org>
19717
19718         Add missing dependencies on new m4/exponent[fdl].m4 files.
19719         * modules/isnanf-nolibm: Add m4/exponentf.m4.
19720         * modules/isnand-nolibm: Add m4/exponentd.m4.
19721         * modules/isnanl-nolibm: Add m4/exponentl.m4.
19722         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
19723         m4/isnan[fdl].m4, because the macros actually used moved.
19724         Reported by Jim Meyering.
19725
19726 2008-07-14  Ben Pfaff  <blp@gnu.org>
19727
19728         Add isinf module.
19729         * lib/isinf.c: New file.
19730         * lib/math.in.h: Define isinf macro if we have decided to replace
19731         it.
19732         * m4/isinf.m4: New file.
19733         * m4/math_h.m4: Initialize and substitute variables for isinf
19734         module.
19735         * modules/isinf: New file.
19736         * modules/isinf-tests: New file.
19737         * modules/math: Add substitutions for new module.
19738         * tests/test-isinf.c: New file.
19739         * doc/posix-functions/isinf.texi: Mention new module.
19740         * MODULES.html.sh: Mention new module.
19741
19742 2008-07-14  Ben Pfaff  <blp@gnu.org>
19743
19744         Factor out some macros for use by additional modules.
19745         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
19746         exponentf.m4.
19747         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
19748         exponentd.m4.
19749         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
19750         file exponentl.m4.
19751         * m4/exponentf.m4: New file.
19752         * m4/exponentd.m4: New file.
19753         * m4/exponentl.m4: New file.
19754         * modules/isnanf: Use new file m4/exponentf.m4.
19755         * modules/isnand: Use new file m4/exponentd.m4.
19756         * modules/isnanl: Use new file m4/exponentl.m4.
19757
19758 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
19759
19760         mktime.c: normalize tp->tm_isdst value to -1/0/1.
19761         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
19762         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
19763         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
19764
19765         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
19766         readlink on platforms without PATH_MAX.
19767
19768 2008-07-21  Eric Blake  <ebb9@byu.net>
19769
19770         Warn, not fail, on stale version.
19771         * top/GNUmakefile (_curr-ver): Tone down previous patch.
19772
19773         Don't allow installation with stale devel version number.
19774         * top/GNUmakefile (_is-install-target): New macro.
19775         (_curr-ver): Forbid installation with stale version number.
19776
19777 2008-07-20  Bruno Haible  <bruno@clisp.org>
19778
19779         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
19780         TESTS_ENVIRONMENT.
19781         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
19782
19783 2008-07-20  Bruno Haible  <bruno@clisp.org>
19784
19785         * lib/c-stack.h (c_stack_action): Add documentation.
19786         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
19787
19788 2008-07-20  Bruno Haible  <bruno@clisp.org>
19789
19790         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
19791         * modules/readlink (License): Likewise.
19792
19793 2008-07-17  Eric Blake  <ebb9@byu.net>
19794
19795         * modules/c-stack (Link): Fix typo.
19796
19797         Make c-stack use libsigsegv, when available.
19798         * modules/c-stack (Depends-on): Add libsigsegv.
19799         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
19800         needed.
19801         * lib/c-stack.c (SIGSTKSZ): Define fallback.
19802         (segv_handler, overflow_handler, c_stack_action)
19803         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
19804         implementation when libsigsegv is available, but only when using
19805         the library is necessary.
19806         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
19807         comment, explaining why XSI check fails on Linux.
19808         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
19809         * tests/test-c-stack2.sh: Tweak skip message.
19810         * NEWS: Document new link-time requirements.
19811
19812 2008-07-16  Eric Blake  <ebb9@byu.net>
19813
19814         c-stack: Expose false positives when not using libsigsegv.
19815         * modules/c-stack-tests (Files): Expand test.
19816         * tests/test-c-stack.c (main): Add means to conditionally trigger
19817         non-overflow SIGSEGV.
19818         * tests/test-c-stack2.sh: New file.
19819
19820 2008-07-14  Bruno Haible  <bruno@clisp.org>
19821
19822         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
19823         Reported by Eric Blake.
19824
19825 2008-07-14  Sam Steingold  <sds@gnu.org>
19826             Bruno Haible  <bruno@clisp.org>
19827
19828         New module libsigsegv.
19829         * modules/libsigsegv: New file.
19830         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
19831         modifications.
19832         * MODULES.html.sh (Signal handling): New section.
19833
19834 2008-07-14  Bruno Haible  <bruno@clisp.org>
19835
19836         * modules/unictype/ctype-* (Description): Add the word "function".
19837         Improves the resulting doc in MODULES.html.
19838
19839 2008-07-12  Ben Pfaff  <blp@gnu.org>
19840
19841         Add longlong module.
19842         * modules/longlong: New file.
19843
19844 2008-07-12  Bruno Haible  <bruno@clisp.org>
19845
19846         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
19847         to empty.
19848
19849 2008-07-10  Ben Pfaff  <blp@gnu.org>
19850
19851         Add isnan module.
19852         * doc/posix-functions/isnan.texi: Mention new module.
19853         * lib/math.in.h: Define isnan macro if we have decided to replace
19854         it.
19855         * m4/isnan.m4: New file.
19856         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
19857         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
19858         also.
19859         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
19860         redundancy.
19861         * m4/math_h.m4: Initialize and substitute variables for isnan
19862         module.
19863         * modules/isnan: New file.
19864         * modules/isnan-tests: New file.
19865         * modules/math: Add substitutions for new module.
19866         * tests/test-isnan.c: New file.
19867         * MODULES.html.sh: Mention new module.
19868
19869 2008-07-10  Ben Pfaff  <blp@gnu.org>
19870
19871         Add isnanf module.
19872         * lib/isnanf.m4: New file.
19873         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
19874         (gl_HAVE_ISNANF_IN_LIBM): New macro.
19875         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
19876         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
19877         * modules/isnanf: New file.
19878         * modules/isnanf-tests: New file.
19879         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
19880         files.
19881         * tests/test-isnanf-nolibm.c: factored most of its contents into
19882         new file tests/test-isnanf.h.
19883         * tests/test-isnanf.h: New file.
19884         * tests/test-isnanf.c: New file.
19885         * MODULES.html.sh: Mention new module.
19886         * doc/glibc-functions/isnanf.texi: Mention new module.
19887
19888 2008-07-10  Ben Pfaff  <blp@gnu.org>
19889
19890         Add isnand module.
19891         * lib/isnand.h: New file.
19892         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
19893         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
19894         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
19895         functionality also.
19896         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
19897         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
19898         (gl_HAVE_ISNAND_IN_LIBM): New macro.
19899         * modules/isnand: New file.
19900         * modules/isnand-tests: New file.
19901         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
19902         files.
19903         * tests/test-isnand-nolibm.c: factored most of its contents into
19904         new file tests/test-isnand.h.
19905         * tests/test-isnand.h: New file.
19906         * tests/test-isnand.c: New file.
19907         * MODULES.html.sh: Mention new module.
19908
19909 2008-07-10  Ben Pfaff  <blp@gnu.org>
19910
19911         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
19912         * lib/isnand.h: Rename lib/isnand-nolibm.h.
19913         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
19914         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
19915         * modules/isnanf-nolibm: Update references to renamed files.
19916         * modules/isnand-nolibm: Likewise.
19917         * modules/isnanf-nolibm-tests: Likewise.
19918         * modules/isnand-nolibm-tests: Likewise.
19919         * lib/frexp.c: Likewise.
19920         * lib/isfinite.c: Likewise.
19921         * lib/signbitd.c: Likewise.
19922         * lib/signbitf.c: Likewise.
19923         * lib/vasnprintf.c: Likewise.
19924         * tests/test-ceilf1.c: Likewise.
19925         * tests/test-ceilf2.c: Likewise.
19926         * tests/test-floorf1.c: Likewise.
19927         * tests/test-floorf2.c: Likewise.
19928         * tests/test-frexp.c: Likewise.
19929         * tests/test-round1.c: Likewise.
19930         * tests/test-round2.c: Likewise.
19931         * tests/test-roundf1.c: Likewise.
19932         * tests/test-strtod.c: Likewise.
19933         * tests/test-trunc1.c: Likewise.
19934         * tests/test-trunc2.c: Likewise.
19935         * tests/test-truncf1.c: Likewise.
19936         * tests/test-truncf2.c: Likewise.
19937         * NEWS: Mention the renamed header files.
19938
19939 2008-07-11  Jim Meyering  <meyering@redhat.com>
19940
19941         vc-list-files: make the last-resort awk code more portable
19942         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
19943         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
19944         does not support it.
19945
19946 2008-07-10  Eric Blake  <ebb9@byu.net>
19947
19948         Work with tar's bootstrap.
19949         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
19950         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
19951         an m4 comment.
19952
19953 2008-07-09  Jim Meyering  <meyering@redhat.com>
19954
19955         posix-shell.m4: fix typo that made this test malfunction
19956         * m4/posix-shell.m4: Remove capitalization in variable name.
19957
19958 2008-07-08  Bruno Haible  <bruno@clisp.org>
19959
19960         * m4/onceonly.m4: Update comments.
19961         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19962
19963 2008-07-04  Jim Meyering  <meyering@redhat.com>
19964
19965         * users.txt: Add vc-dwim.
19966         (bison, coreutils): Use the gitweb URL.
19967
19968 2008-07-03  Jim Meyering  <meyering@redhat.com>
19969
19970         * users.txt: Add libffcall.  From Sam Steingold.
19971
19972 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
19973
19974         getdate.y: do not ignore TZ with relative day, month or year offset
19975         * lib/getdate.y (get_date): Move the tz-handling block to follow the
19976         relative-date-handling, since otherwise, the latter would clobber the
19977         sole output (an updated Start value) of the tz-handling block.
19978         * tests/test-getdate.c: Tests for the fix
19979
19980 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19981
19982         Recognize 'foo_LIBRARIES += libgnu.a'.
19983         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
19984         makefile snippet has already specified an installation location,
19985         also using '+='.
19986
19987 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
19988
19989         getdate.y: factor out common actions
19990         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
19991         Use them in place of open-coded actions.
19992
19993 2008-07-01  Simon Josefsson  <simon@josefsson.org>
19994
19995         Add self-test for getdate module.
19996         * modules/getdate-tests: New file.
19997         * tests/test-getdate.c: New file.
19998
19999 2008-06-29  Bruno Haible  <bruno@clisp.org>
20000
20001         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
20002         .gitignore.
20003         Reported by Sylvain Beucler <beuc@beuc.net>.
20004
20005 2008-06-29  Bruno Haible  <bruno@clisp.org>
20006
20007         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
20008         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
20009
20010 2008-06-29  Bruno Haible  <bruno@clisp.org>
20011
20012         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
20013         EXTRA_DIST.
20014         Reported by Sylvain Beucler <beuc@beuc.net>.
20015
20016 2008-06-26  Jim Meyering  <meyering@redhat.com>
20017
20018         make several modules depend on the "open" module
20019         This provides slightly increased consistency when opening-for-write
20020         the name of a non-directory spelled with a trailing slash.
20021         * modules/chdir-safer: Likewise.
20022         * modules/chown: Likewise.
20023         * modules/clean-temp: Likewise.
20024         * modules/copy-file: Likewise.
20025         * modules/fchdir: Likewise.
20026         * modules/fcntl-safer: Likewise.
20027         * modules/pipe: Likewise.
20028         * modules/utime: Likewise.
20029         Prompted by Eric Blake and Bruno Haible.
20030
20031 2008-06-24  Andreas Schwab  <schwab@suse.de>
20032
20033         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
20034         literals can be used as initializers for global variables.
20035
20036 2008-06-23  Eric Blake  <ebb9@byu.net>
20037
20038         Make gnulib-cache.m4 easier to diff.
20039         * gnulib-tool (func_import): Allow newlines when reading cached
20040         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
20041
20042 2008-06-23  Bruno Haible  <bruno@clisp.org>
20043
20044         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
20045         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
20046         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
20047         m4/signalblocking.m4.
20048         (gl_PREREQ_SIGACTION): Don't invoke it.
20049         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
20050         gl_PREREQ_SIG_HANDLER_H.
20051         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20052         Don't check for sigaction here.
20053
20054 2008-06-23  Bruno Haible  <bruno@clisp.org>
20055
20056         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
20057         (install_handlers): Don't set the SA_RESETHAND flag.
20058
20059 2008-06-23  Bruno Haible  <bruno@clisp.org>
20060
20061         * m4/sigaction.m4: Comment fixes.
20062         * lib/signal.in.h: Likewise.
20063
20064 2008-06-23  Eric Blake  <ebb9@byu.net>
20065
20066         Fix typo.
20067         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
20068
20069         Avoid SA_ namespace.
20070         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
20071         Reported by Ralf Wildenhues.
20072
20073         Avoid test failure due to SA_RESTORER.
20074         * tests/test-sigaction.c (SA_MASK): New macro.
20075         (main): Avoid failing due to extension flags being set.
20076         Reported by Jim Meyering.
20077
20078         Revert use of sig-handler.h in sigprocmask.c.
20079         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
20080         it requires the existence of struct sigaction.
20081         * lib/sigprocmask.c (handler_t): Restore typedef.
20082         (rpl_signal, old_handlers): Use local type.
20083
20084 2008-06-22  Bruno Haible  <bruno@clisp.org>
20085
20086         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
20087         conditionally.
20088         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20089
20090 2008-06-22  Bruno Haible  <bruno@clisp.org>
20091
20092         * doc/posix-functions/siginterrupt.texi: Move note.
20093
20094         * lib/signal.in.h (SA_RESTART): New macro.
20095         * lib/sigaction.c: Update comment.
20096
20097         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
20098
20099         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
20100         (gl_PREREQ_SIGPROCMASK): Invoke it.
20101         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
20102
20103         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
20104
20105         * lib/sigprocmask.c: Update a comment.
20106
20107 2008-06-21  Eric Blake  <ebb9@byu.net>
20108
20109         Use sigaction module rather than signal().
20110         * modules/c-stack (Depends-on): Add sigaction.
20111         * modules/fatal-signal (Depends-on): Likewise.
20112         * modules/nanosleep (Depends-on): Likewise.
20113         * modules/sigprocmask (Files): Add sig-handler.h.
20114         * modules/sigaction (Files): Likewise.
20115         * lib/sig-handler.h (get_handler): New file, suggested by Paul
20116         Eggert.
20117         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
20118         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
20119         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
20120         (init_fatal_signals): Likewise.
20121         * lib/nanosleep.c (rpl_nanosleep): Likewise.
20122         (siginterrupt): Delete fallback.
20123         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
20124         instead.
20125         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
20126         siginterrupt.
20127
20128         New module sigaction, for mingw.
20129         * modules/sigaction: New module...
20130         * modules/sigaction-tests: ...and its test.
20131         * m4/sigaction.m4: New file.
20132         * lib/sigaction.c: Likewise.
20133         * tests/test-sigaction.c: Likewise.
20134         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
20135         * modules/signal (Makefile.am): Likewise.
20136         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
20137         needed.
20138         * doc/posix-headers/signal.texi (signal.h): Mention provided
20139         types.
20140         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
20141         that sigaction is preferable.
20142         * doc/posix-functions/sigaction.texi (sigaction): Mention new
20143         module.
20144         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20145         sigaction.
20146
20147         Improve robustness of sigprocmask by overriding signal.
20148         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
20149         is in use.
20150         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
20151         (SIGKILL, SIGSTOP): Provide fallbacks.
20152         (rpl_signal): Implement.
20153         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
20154         signal can be called inside handlers.
20155
20156         Fix nanosleep module on mingw.
20157         * modules/nanosleep (Depends-on): Add sys_select.
20158         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
20159
20160         Fix licensing of sigprocmask.
20161         * modules/raise (License): Relicense as LGPL.
20162
20163 2008-06-21  Bruno Haible  <bruno@clisp.org>
20164
20165         * lib/propername.c (proper_name_utf8): Don't use the transliterated
20166         result if it contains question marks.
20167         Reported by Michael Geng <linux@michaelgeng.de>.
20168
20169 2008-06-19  Bruno Haible  <bruno@clisp.org>
20170
20171         Fix CVS-ism.
20172         * doc/gnulib.texi: Include updated-stamp.texi.
20173         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
20174         (updated-stamp.texi): New rule.
20175         (gnulib.info): Depend on it.
20176         * doc/.gitignore: Add updated-stamp.texi.
20177         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
20178
20179 2008-06-19  Bruno Haible  <bruno@clisp.org>
20180
20181         * doc/Makefile (gnulib.info): Update and simplify dependencies.
20182         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20183
20184 2008-06-19  Eric Blake  <ebb9@byu.net>
20185
20186         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
20187         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
20188         Reported by Stepan Kasal.
20189
20190 2008-06-18  Bruno Haible  <bruno@clisp.org>
20191
20192         * lib/fatal-signal.c (init_fatal_signals): Add comment.
20193         Reported by Eric Blake.
20194
20195 2008-06-18  Eric Blake  <ebb9@byu.net>
20196
20197         Work around cygwin 1.5.25 strsignal bug.
20198         * tests/test-strsignal.c: Allow for const char *.
20199         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
20200
20201 2008-06-18  Simon Josefsson  <simon@josefsson.org>
20202
20203         * users.txt: Update URL to article and add author/date
20204         information.
20205
20206 2008-06-17  Bruno Haible  <bruno@clisp.org>
20207
20208         New macro gl_DISABLE_THREADS.
20209         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
20210         if the user did not pass --enable-threads or --disable-threads option.
20211         (gl_DISABLE_THREADS): New macro.
20212         Reported by Eric Blake <ebb9@byu.net>.
20213
20214 2008-06-17  Bruno Haible  <bruno@clisp.org>
20215
20216         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
20217         when the macro ignores it.
20218         Based on a patch by Eric Blake <ebb9@byu.net>.
20219
20220 2008-06-17  Bruno Haible  <bruno@clisp.org>
20221
20222         * modules/tls (License): Change to LGPLv2+.
20223         Reported by Eric Blake.
20224
20225 2008-06-17  Eric Blake  <ebb9@byu.net>
20226
20227         Simplify c-stack prerequisites.
20228         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
20229         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
20230         no longer requires <ucontext.h> to exist.  Optimize setrlimit
20231         check.
20232         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
20233         <sys/resource.h>.
20234
20235         Move c-stack test into testsuite.
20236         * modules/c-stack-tests: New file.
20237         * lib/c-stack.c [DEBUG]: Move test program...
20238         * tests/test-c-stack.c: ...into this new file.  Skip rather than
20239         fail test if sigaltstack is lacking.
20240         * tests/test-c-stack.sh: New driver file.
20241
20242 2008-06-16  Eric Blake  <ebb9@byu.net>
20243
20244         Use raise module consistently.
20245         * modules/fatal-signal (Depends-on): Add raise.
20246         * modules/sigprocmask (Depends-on): Likewise.
20247         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
20248         * lib/sigprocmask.c (sigprocmask): Likewise.
20249         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20250         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
20251
20252         Fix compliance bug in sigpending.
20253         * lib/sigprocmask.c (sigpending): Return pending array via
20254         parameter, not return value.
20255
20256 2008-06-14  Eric Blake  <ebb9@byu.net>
20257
20258         Improve obstack-printf test code.
20259         * tests/test-obstack-printf.c (test_function): Fix comment, and
20260         simplify usage of obstack_* in macros.  Add a test for coverage.
20261         Reported by Bruno Haible.
20262
20263 2008-06-14  Bruno Haible  <bruno@clisp.org>
20264
20265         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
20266         array size as a constant, not as a const variable.
20267         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
20268         AC_USE_SYSTEM_EXTENSIONS.
20269         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20270         Test whether the obstack_printf function actually exists.
20271         * modules/obstack-printf (Depends-on): Add extensions.
20272         (Include): Remove obstack.h.
20273         * modules/obstack-printf-posix (Depends-on): Add extensions.
20274         (Include): Remove obstack.h.
20275
20276 2008-06-13  Eric Blake  <ebb9@byu.net>
20277
20278         Add obstack-printf and obstack-printf-posix modules.
20279         * modules/obstack-printf: New file.
20280         * modules/obstack-printf-posix: Likewise.
20281         * MODULES.html.sh (Misc): Mention them.
20282         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
20283         Likewise.
20284         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
20285         Likewise.
20286         * modules/stdio (Makefile.am): Accomodate new modules.
20287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20288         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
20289         Declare.
20290         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
20291         functions.
20292         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
20293         (gl_REPLACE_OBSTACK_PRINTF): New macros
20294         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
20295         * tests/test-obstack-printf.c: New file.
20296         * modules/obstack-printf-tests: Likewise.
20297         * modules/obstack-printf-posix-tests: Likewise.
20298
20299 2008-06-11  Bruno Haible  <bruno@clisp.org>
20300
20301         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
20302         * lib/open.c: Include errno.h.
20303         (open): Fail when attempting to write to a file that has a trailing
20304         slash.
20305         * tests/test-open.c (main): Test against trailing slash bug.
20306         * doc/posix-functions/open.texi: Mention the trailing slash bug.
20307
20308 2008-06-10  Bruno Haible  <bruno@clisp.org>
20309
20310         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
20311         for $? to work inside the trap command, with various /bin/sh-s.
20312         * tests/test-vc-list-files-cvs.sh: Likewise.
20313
20314 2008-06-10  Bruno Haible  <bruno@clisp.org>
20315
20316         * lib/acl-internal.h: Don't include gettext.h here.
20317         * lib/set-mode-acl.c: Include gettext.h here.
20318         * lib/copy-acl.c: Likewise.
20319
20320 2008-06-10  Bruno Haible  <bruno@clisp.org>
20321
20322         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
20323         * lib/wait-process.c (wait_subprocess): Likewise.
20324         * lib/execute.h (execute): Add termsigp argument.
20325         * lib/execute.c (execute): Likewise.
20326         * lib/csharpcomp.c (compile_csharp_using_pnet,
20327         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
20328         * lib/csharpexec.c (execute_csharp_using_pnet,
20329         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
20330         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
20331         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
20332         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
20333         is_jikes_present): Update.
20334         * lib/javaexec.c (execute_java_class): Update.
20335         * lib/javaversion.c (execute_and_read_line): Update.
20336         * NEWS: Document the changes.
20337         Reported by Eric Blake.
20338
20339 2008-06-10  Eric Blake  <ebb9@byu.net>
20340
20341         Add missing include.
20342         * tests/test-strstr.c (includes): Add <signal.h>.
20343         * tests/test-strcasestr.c (includes): Likewise.
20344         * tests/test-memmem.c (includes): Likewise.
20345
20346 2008-06-10  Bruno Haible  <bruno@clisp.org>
20347
20348         * lib/wait-process.c (wait_subprocess): Add an assertion.
20349
20350 2008-06-10  Bruno Haible  <bruno@clisp.org>
20351
20352         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
20353
20354 2008-06-10  Bruno Haible  <bruno@clisp.org>
20355
20356         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
20357         using alarm().
20358         * tests/test-strcasestr.c (main): Likewise.
20359         * tests/test-strstr.c (main): Likewise.
20360
20361 2008-06-09  Bruno Haible  <bruno@clisp.org>
20362
20363         Work around the Solaris 10 ACE ACLs ABI change.
20364         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
20365         declare if ACL_NO_TRIVIAL is present.
20366         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
20367         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
20368         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
20369         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
20370         define if ACL_NO_TRIVIAL is present.
20371         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
20372         and use the current ABI.
20373         (file_has_acl): Use same #if condition as elsewhere.
20374         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
20375         in use, and use the current ABI.
20376         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
20377         Reported by Jim Meyering.
20378
20379 2008-06-09  Eric Blake  <ebb9@byu.net>
20380
20381         Work around environments that (stupidly) ignore SIGALRM.
20382         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
20383         before using alarm().
20384         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20385         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20386         Reported by Ian Beckwith <ianb@erislabs.net>.
20387
20388         Produce autobuild blurb earlier in log.
20389         * modules/autobuild (configure.ac-early): Move AB_INIT here.
20390
20391 2008-06-09  Jim Meyering  <meyering@redhat.com>
20392         and OndÅ™ej Vašík  <ovasik@redhat.com>
20393
20394         utimens.c: correct kernel bug work-around
20395         OndÅ™ej Vašík found that the invalid return value of 280 indicates
20396         failure, not success, and the kernel bug we're trying to work
20397         around affects not just the utimensat call, but also the fallback
20398         futimens call.
20399         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
20400         not success.
20401         [HAVE_FUTIMENS]: Use the same work-around, here.
20402
20403 2008-06-09  Jim Meyering  <meyering@redhat.com>
20404
20405         add more guards around definition of ACE_-related code
20406         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
20407         ALLOW and ACE_OWNER are also defined.
20408
20409 2008-06-08  Bruno Haible  <bruno@clisp.org>
20410
20411         * lib/acl-internal.h: Add me as co-author.
20412         * lib/file-has-acl.c: Likewise.
20413         * lib/set-mode-acl.c: Likewise.
20414         * lib/copy-acl.c: Likewise.
20415
20416 2008-06-08  Bruno Haible  <bruno@clisp.org>
20417
20418         Add support for AIX ACLs.
20419         * lib/acl-internal.h (acl_nontrivial): New declaration.
20420         * lib/file-has-acl.c (acl_nontrivial): New function.
20421         (file_has_acl): Add implementation using AIX 4 ACL API.
20422         * lib/set-mode-acl.c (qset_acl): Likewise.
20423         * lib/copy-acl.c (qcopy_acl): Likewise.
20424
20425 2008-06-08  Bruno Haible  <bruno@clisp.org>
20426
20427         Add support for HP-UX ACLs.
20428         * lib/acl-internal.h (acl_nontrivial): New declaration.
20429         * lib/file-has-acl.c (acl_nontrivial): New function.
20430         (file_has_acl): Add implementation using HP-UX 11 ACL API.
20431         * lib/set-mode-acl.c (qset_acl): Likewise.
20432         * lib/copy-acl.c (qcopy_acl): Likewise.
20433
20434 2008-06-08  Bruno Haible  <bruno@clisp.org>
20435
20436         Add support for Cygwin ACLs.
20437         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
20438         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
20439         the chmod_or_fchmod call.
20440         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
20441
20442 2008-06-08  Bruno Haible  <bruno@clisp.org>
20443
20444         Fix bug with setuid modes in Solaris 10+ code.
20445         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
20446         succeeded, when the mode contains some special bits.
20447
20448 2008-06-08  Bruno Haible  <bruno@clisp.org>
20449
20450         Add support for Solaris 7..10 ACLs.
20451         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
20452         declarations.
20453         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
20454         functions.
20455         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
20456         * lib/set-mode-acl.c (qset_acl): Likewise.
20457         * lib/copy-acl.c (qcopy_acl): Likewise.
20458
20459 2008-06-08  Bruno Haible  <bruno@clisp.org>
20460
20461         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
20462         declaration.
20463         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
20464         (acl_access_nontrivial): Remove MacOS X case.
20465         (file_has_acl): Use acl_extended_nontrivial.
20466         * lib/copy-acl.c (qcopy_acl): Likewise.
20467
20468 2008-06-08  Bruno Haible  <bruno@clisp.org>
20469
20470         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
20471
20472 2008-06-08  Jim Meyering  <meyering@redhat.com>
20473
20474         * modules/acl (Maintainer): Add Bruno Haible.
20475
20476 2008-06-07  Bruno Haible  <bruno@clisp.org>
20477
20478         Improve support for Tru64 ACLs.
20479         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
20480         ACL on OSF/1.
20481
20482 2008-06-07  Bruno Haible  <bruno@clisp.org>
20483
20484         Add support for MacOS X ACLs.
20485         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
20486         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
20487         * lib/set-mode-acl.c (qset_acl): Likewise.
20488         * lib/copy-acl.c (qcopy_acl): Likewise.
20489
20490 2008-06-07  Bruno Haible  <bruno@clisp.org>
20491
20492         Fix memory leak introduced on 2008-05-22.
20493         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
20494         use.
20495
20496 2008-06-07  Bruno Haible  <bruno@clisp.org>
20497
20498         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
20499         to construct an empty ACL.
20500
20501 2008-06-07  Bruno Haible  <bruno@clisp.org>
20502
20503         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
20504         precisely.
20505         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
20506
20507 2008-06-07  Bruno Haible  <bruno@clisp.org>
20508
20509         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
20510         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
20511
20512 2008-06-07  Bruno Haible  <bruno@clisp.org>
20513
20514         * doc/posix-functions/_setjmp.texi: Explain the use of this function
20515         regardless of POSIX.
20516         * doc/posix-functions/_longjmp.texi: Likewise.
20517         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
20518         SystemV platform in this case.
20519
20520 2008-06-06  Eric Blake  <ebb9@byu.net>
20521
20522         Document abort() bugs.
20523         * doc/posix-functions/abort.texi (abort): Mention anomalies.
20524
20525         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
20526         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
20527         sigsetjmp.
20528         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
20529         siglongjmp, but only as a macro.
20530         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
20531         is obsolete.
20532         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
20533
20534         Tweak documentation to cover cygwin argz bugs.
20535         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
20536         argz bug fix; no code change needed since no cygwin releases
20537         occurred between the last fix and the bug being tested.
20538         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
20539         module and recently fixed cygwin bugs.
20540         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
20541         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
20542         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
20543         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
20544         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
20545         Likewise.
20546         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
20547         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
20548         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
20549         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
20550         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
20551         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
20552         Likewise.
20553
20554         Avoid gcc warning on cygwin.
20555         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
20556         !ACL_NO_TRIVIAL]: Avoid unused variable.
20557
20558 2008-06-05  Eric Blake  <ebb9@byu.net>
20559
20560         Be tolerant of UNKNOWN version in gnulib-tool test dir.
20561         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
20562         git-version-gen fails to come up with a version.
20563         Reported by Simon Josefsson.
20564
20565 2008-06-05  Jim Meyering  <meyering@redhat.com>
20566             Paul Eggert  <eggert@cs.ucla.edu>
20567
20568         utimens.c: work around a probable Linux kernel bug
20569         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
20570         appears to be a kernel bug that causes utimensat to return 280
20571         instead of 0, indicating success.
20572
20573 2008-06-04  Bruno Haible  <bruno@clisp.org>
20574
20575         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
20576         2008-06-01 commit.
20577
20578 2008-06-04  Bruno Haible  <bruno@clisp.org>
20579
20580         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
20581         * lib/file-has-acl.c (acl_access_nontrivial): New function.
20582         (file_has_acl): Use it. Save errno afterwards.
20583         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
20584
20585 2008-06-03  Bruno Haible  <bruno@clisp.org>
20586
20587         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
20588         draft code. Simplify #ifs.
20589         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
20590         Put Solaris code after POSIX-draft code. Fix comments regarding
20591         Solaris 10, HP-UX. Mention Cygwin.
20592         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
20593
20594 2008-06-03  Eric Blake  <ebb9@byu.net>
20595
20596         Provide fallback for older kernels.
20597         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
20598         Provide runtime fallback if kernel lacks support.
20599         Reported by Mike Frysinger.
20600
20601 2008-06-02  Bruno Haible  <bruno@clisp.org>
20602
20603         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
20604         it exists.
20605
20606 2008-06-02  Bruno Haible  <bruno@clisp.org>
20607
20608         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
20609         * lib/copy-acl.c (qcopy_acl): Update comment.
20610
20611 2008-06-02  Bruno Haible  <bruno@clisp.org>
20612
20613         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
20614         like ACL APIs.
20615
20616 2008-06-02  Bruno Haible  <bruno@clisp.org>
20617
20618         * tests/test-file-has-acl.sh: Use different code for Cygwin.
20619         * tests/test-set-mode-acl.sh: Likewise.
20620         * tests/test-copy-acl.sh: Likewise.
20621         * tests/test-copy-file.sh: Likewise.
20622
20623 2008-06-02  Bruno Haible  <bruno@clisp.org>
20624
20625         * tests/test-file-has-acl.sh: Remove unused code.
20626
20627 2008-06-01  Bruno Haible  <bruno@clisp.org>
20628
20629         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
20630         (copy_acl): Just a wrapper around qcopy_acl that emits the error
20631         messages.
20632         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
20633
20634 2008-06-01  Bruno Haible  <bruno@clisp.org>
20635
20636         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
20637         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
20638         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
20639         APIs.
20640         * modules/acl-tests (configure.ac): Remove tests now contained in
20641         m4/acl.m4.
20642
20643 2008-06-02  Jim Meyering  <meyering@redhat.com>
20644
20645         announce-gen: use a better key-server host name
20646         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
20647         it may be more consistently reliable.  Suggested by Werner Koch
20648         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
20649
20650 2008-06-01  Bruno Haible  <bruno@clisp.org>
20651
20652         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
20653         Reported by Voroskoi Andras <voroskoi@gmail.com>.
20654
20655 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
20656
20657         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
20658
20659 2008-06-01  Bruno Haible  <bruno@clisp.org>
20660
20661         New ACL tests.
20662         * tests/test-file-has-acl.sh: New file.
20663         * tests/test-file-has-acl.c: New file.
20664         * tests/test-set-mode-acl.sh: New file.
20665         * tests/test-set-mode-acl.c: New file.
20666         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
20667         * tests/test-copy-acl.c: New file.
20668         * modules/acl-tests: New file, based on modules/copy-file-tests.
20669         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
20670         (Depends-on): Add acl-tests.
20671         (configure.ac): Remove checks.
20672         (Makefile.am): Don't create test-sameacls program here any more.
20673
20674 2008-06-01  Bruno Haible  <bruno@clisp.org>
20675
20676         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
20677         * tests/test-sameacls.c: Include progname.h.
20678         (main): Invoke set_program_name. Portability fixes for MacOS X,
20679         Solaris, HP-UX.
20680
20681 2008-06-01  Bruno Haible  <bruno@clisp.org>
20682
20683         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
20684         function.
20685         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
20686
20687 2008-06-01  Bruno Haible  <bruno@clisp.org>
20688
20689         * modules/rpmatch (Depends-on): Add strdup.
20690
20691 2008-06-01  Bruno Haible  <bruno@clisp.org>
20692
20693         * lib/pipe.c: Include unistd-safer.h.
20694         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
20695         * modules/pipe (Depends-on): Add unistd-safer.
20696
20697 2008-05-30  Simon Josefsson  <simon@josefsson.org>
20698
20699         * modules/autobuild (configure.ac): Call AB_INIT.
20700
20701 2008-05-30  Simon Josefsson  <simon@josefsson.org>
20702
20703         * tests/test-getaddrinfo.c: Don't print debug messages by default.
20704         Suggested by Bruno Haible <bruno@clisp.org>.
20705
20706 2008-05-30  Simon Josefsson  <simon@josefsson.org>
20707
20708         * tests/test-base64.c: Cast size_t to unsigned long when invoking
20709         printf.  Use %lu instead of %d.  Reported by Bruno Haible
20710         <bruno@clisp.org>.
20711
20712 2008-05-29  Eric Blake  <ebb9@byu.net>
20713
20714         Prefer new POSIX 200x interfaces over futimesat.
20715         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
20716         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
20717         when available.
20718         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
20719
20720 2008-05-28  Bruno Haible  <bruno@clisp.org>
20721
20722         * modules/stpcpy (License): Change to LGPLv2+.
20723         Requested by David Lutterkort <dlutter@redhat.com>.
20724
20725 2008-05-27  Bruno Haible  <bruno@clisp.org>
20726
20727         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
20728         current mingw.
20729         Reported by Jose E. Marchesi <jemarch@gnu.org>.
20730
20731 2008-05-27  Bruno Haible  <bruno@clisp.org>
20732
20733         * modules/iconv_open (Link): New section, from module 'iconv'.
20734         * modules/striconv (Link): Likewise.
20735         * modules/striconveh (Link): Likewise.
20736         * modules/xstriconv (Link): Likewise.
20737         * modules/unicodeio (Link): Likewise.
20738         * modules/propername (Link): Likewise.
20739         Reported by Jim Meyering.
20740
20741 2008-05-26  Jim Meyering  <meyering@redhat.com>
20742
20743         sha256: do not artificially restrict buffer length to be < 2^32
20744         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
20745         uint32_t to size_t.
20746         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
20747         to match.
20748
20749         avoid unaligned access errors, e.g., on sparc
20750         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
20751         direct access through a possibly-unaligned uint64* pointer.
20752         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
20753         direct access through a possibly-unaligned uint32* pointer.
20754         Prompted by this patch from Tom "spot" Callaway:
20755         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
20756
20757         sha512.c: fix typo in comment
20758         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
20759
20760 2008-05-25  Bruno Haible  <bruno@clisp.org>
20761
20762         * lib/set-mode-acl.c: Renamed from lib/acl.c.
20763         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
20764         (Makefile.am): Update lib_SOURCES.
20765
20766 2008-05-25  Bruno Haible  <bruno@clisp.org>
20767
20768         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
20769
20770 2008-05-25  Jim Meyering  <meyering@redhat.com>
20771
20772         useless-if-before-free: freed expr may have white-space differences
20773         * build-aux/useless-if-before-free: Recognize cases in which the
20774         freed expression differs from the tested one in embedded white
20775         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
20776         $1 was used, so we can't make any regexp shy.  Improved tests now
20777         detect this.
20778
20779         useless-if-before-free: accept white space in the expression.
20780         * build-aux/useless-if-before-free: For now, any white space
20781         in the expression must be identical in the free argument.
20782
20783         useless-if-before-free: efficiency tweak
20784         * build-aux/useless-if-before-free: Make the expression-matching
20785         regexp "shy".
20786         Make the *outer* regexp shy, not the expr-matching one.
20787
20788         update code-in-comment to accept cast of free arg
20789         * build-aux/useless-if-before-free: Update regexp.
20790
20791 2008-05-25  Bruno Haible  <bruno@clisp.org>
20792
20793         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
20794         * modules/copy-file-tests (Files, Makefile.am): Update.
20795         * tests/test-copy-file.c (func_test_copy): Update.
20796
20797 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
20798
20799         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
20800
20801 2008-05-23  Bruno Haible  <bruno@clisp.org>
20802
20803         Improve support for ACLs on OSF/1.
20804         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
20805         Remove fallback for unknown flavors of ACLs.
20806
20807 2008-05-22  Bruno Haible  <bruno@clisp.org>
20808
20809         Add support for ACLs on OSF/1.
20810         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
20811         replacements.
20812         (acl_free_text): New macro fallback.
20813         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
20814         acl_free.
20815         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
20816         acl_free_text function. Require AC_C_INLINE.
20817
20818 2008-05-22  Bruno Haible  <bruno@clisp.org>
20819
20820         Make copy_acl work on MacOS X 10.5.
20821         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
20822         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
20823         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
20824         If MODE_INSIDE_ACL, don't assume that every system has the same text
20825         representation for ACLs as FreeBSD.
20826         * lib/copy-acl.c (copy_acl): Add support for platforms with
20827         !MODE_INSIDE_ACL.
20828         * lib/file-has-acl.c (file_has_acl): Likewise.
20829         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
20830         FreeBSD, MacOS X, or IRIX, respectively.
20831
20832 2008-05-22  Bruno Haible  <bruno@clisp.org>
20833
20834         * lib/acl.h: Don't include <sys/acl.h>.
20835         (GETACLCNT): Move fallback to lib/acl-internal.h.
20836         * lib/acl-internal.h: Include <sys/acl.h> here.
20837         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
20838
20839 2008-05-22  Bruno Haible  <bruno@clisp.org>
20840
20841         Split off copy_acl function to separate file.
20842         * lib/copy-acl.c: New file, extracted from lib/acl.c.
20843         * lib/acl.c (copy_acl): Moved function to separate file.
20844         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
20845         * modules/acl (Files): Add lib/copy-acl.c.
20846         (Makefiles.am): Augment lib_SOURCES.
20847
20848 2008-05-22  Bruno Haible  <bruno@clisp.org>
20849
20850         * modules/copy-file-tests: New file.
20851         * tests/test-copy-file.sh: New file.
20852         * tests/test-copy-file.c: New file.
20853         * tests/test-copy-file-sameacls.c: New file.
20854
20855 2008-05-22  Eric Blake  <ebb9@byu.net>
20856
20857         Avoid gcc warning.
20858         * tests/test-memcmp.c (main): Pass NULL indirectly.
20859
20860 2008-05-21  Bruno Haible  <bruno@clisp.org>
20861
20862         Add reference doc about ACLs.
20863         * doc/acl-resources.txt: New file.
20864         * doc/acl-cygwin.txt: New file.
20865
20866 2008-05-21  Bruno Haible  <bruno@clisp.org>
20867
20868         Avoid one more warning from gcc.
20869         * lib/vasnprintf.c (IF_LINT): Update comments.
20870         (VASNPRINTF): Use it also for the 'prefix' array initializer.
20871
20872 2008-05-21  Jim Meyering  <meyering@redhat.com>
20873
20874         avoid a warning from gcc
20875         * lib/vasnprintf.c (IF_LINT): Define.
20876         (scale10_round_decimal_long_double):
20877         Use it to avoid a "may be used uninitialized" warning.
20878         (scale10_round_decimal_double): Likewise.
20879
20880 2008-05-21  Simon Josefsson  <simon@josefsson.org>
20881
20882         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
20883         declared.
20884
20885 2008-05-20  Bruno Haible  <bruno@clisp.org>
20886
20887         * tests/test-memcmp.c (main): Test also the sign of the result. Test
20888         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
20889
20890 2008-05-20  Simon Josefsson  <simon@josefsson.org>
20891
20892         * modules/memcmp-tests: New file.
20893         * tests/test-memcmp.c: New file.
20894
20895 2008-05-19  Bruno Haible  <bruno@clisp.org>
20896
20897         * modules/propername (Notice, configure.ac): Put quoted "..." into
20898         --keyword option.
20899         * lib/propername.h: Update comments accordingly.
20900         Reported by Eric Blake.
20901
20902 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
20903
20904         * modules/getpass-gnu (Depends-on): Add fseeko.
20905
20906 2008-05-19  Simon Josefsson  <simon@josefsson.org>
20907
20908         * modules/base64-tests: New file.
20909
20910 2008-05-19  Bo Borgerson <gigabo@gmail.com>
20911
20912         * lib/base64.c (base64_decode_ctx): If a decode context structure
20913         was passed in use it to ignore newlines.  If a context structure
20914         was _not_ passed in, continue to treat newlines as garbage (this
20915         is the historical behavior).  Formerly base64_decode.
20916         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
20917         takes a decode context structure.
20918         * lib/base64.h (base64_decode): Macro for four-argument calls.
20919         (base64_decode_alloc): Likewise.
20920         * lib/base64.c (base64_decode_ctx): If a decode context structure
20921         was passed in use it to ignore newlines.  If a context structure
20922         was _not_ passed in, continue to treat newlines as garbage (this
20923         is the historical behavior).  Formerly base64_decode.
20924         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
20925         takes a decode context structure.
20926         * lib/base64.h (base64_decode): Macro for four-argument calls.
20927         (base64_decode_alloc): Likewise.
20928
20929 2008-05-19  Jim Meyering  <meyering@redhat.com>
20930
20931         avoid a warning from gcc
20932         * lib/trim.c (IF_LINT): Define.
20933         (trim2): Use it to avoid a "may be used uninitialized" warning.
20934
20935         Fix doc typo.
20936         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
20937
20938 2008-05-19  Bruno Haible  <bruno@clisp.org>
20939
20940         * doc/glibc-functions/getpass.texi: Document limits of other
20941         implementations.
20942
20943 2008-05-19  Simon Josefsson  <simon@josefsson.org>
20944             Bruno Haible <bruno@clisp.org>
20945
20946         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
20947
20948 2008-05-18  Bruno Haible  <bruno@clisp.org>
20949
20950         * modules/propername: New file, from GNU gettext.
20951         * lib/propername.h: New file, from GNU gettext.
20952         * lib/propername.c: New file, from GNU gettext.
20953         * MODULES.html.sh (Internationalization functions): Add propername.
20954
20955 2008-05-16  Jim Meyering  <meyering@redhat.com>
20956             Bruno Haible  <bruno@clisp.org>
20957
20958         Avoid some warnings from "gcc -Wshadow".
20959         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
20960
20961 2008-05-15  Eric Blake  <ebb9@byu.net>
20962
20963         Extend previous patch to cygwin 1.7.0.
20964         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
20965         fast implementation in cygwin >= 1.7.0.
20966         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20967         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20968
20969 2008-05-15  Bruno Haible  <bruno@clisp.org>
20970
20971         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
20972         implementation in glibc >= 2.9.
20973         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20974         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20975
20976 2008-05-15  Bruno Haible  <bruno@clisp.org>
20977
20978         * MODULES.html.sh (Internationalization functions): Remove linebreak.
20979         (Unicode string functions): Add unilbrk/*.
20980         Reported by Karl Berry.
20981
20982 2008-05-15  Eric Blake  <ebb9@byu.net>
20983
20984         Fix violation of <stdbool.h> replacement in regex.
20985         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
20986         * lib/regexec.c (re_search_internal): Likewise.
20987         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
20988
20989 2008-05-15  Jim Meyering  <meyering@redhat.com>
20990
20991         avoid distracting test output when git or cvs is not found
20992         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
20993         * tests/test-vc-list-files-git.sh: Likewise.
20994
20995 2008-05-15  Eric Blake  <ebb9@byu.net>
20996
20997         Glibc finally accepted the memmem speedup code, bugzilla #5514.
20998         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
20999         glibc version.
21000         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21001         * doc/posix-functions/strstr.texi (strstr): Likewise.
21002         * lib/str-two-way.h (MAX): Sychronize with glibc.
21003
21004 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
21005
21006         * lib/regcomp.c (optimize_utf8): Add a note on why we test
21007         opr.ctx_type.
21008         (calc_first): Initialize constraint field.
21009         (duplicate_node_closure): Use it instead of special casing ANCHORS.
21010         Fix grammar.
21011         (duplicate_node): Merge constraint field for all node types.
21012         (calc_eclosure_iter): Look at constraint field for all node types.
21013         * lib/regex_internal.c (create_cd_newstate): Don't look at
21014         opr.ctx_type.
21015
21016 2008-05-14  Bruno Haible  <bruno@clisp.org>
21017
21018         Help GCC to do better code generation.
21019         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
21020         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
21021         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
21022         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
21023         Declare with attribute 'malloc' if supported.
21024
21025 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
21026
21027         use "echo STR|wc -c" rather than unportable "expr length STR"
21028         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
21029         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
21030
21031 2008-05-14  Jim Meyering  <meyering@redhat.com>
21032
21033         use dd ibs=$n count=1 ... rather than less-portable head -c$n
21034         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
21035         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
21036         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
21037         via Collin Lasse.
21038
21039 2008-05-14  Eric Blake  <ebb9@byu.net>
21040
21041         Avoid quadratic growth in gl_LIBSOURCES.
21042         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
21043         Suggested by Bruno Haible.
21044
21045         Test xmemdup0.
21046         * modules/xmemdup0-tests: New file.
21047         * tests/test-xmemdup0.c: Likewise.
21048
21049 2008-05-13  Eric Blake  <ebb9@byu.net>
21050
21051         Split xmemdup0 into its own module.
21052         * modules/xmemdup0: New file.
21053         * lib/xmemdup0.h: Likewise.
21054         * lib/xmemdup0.c: Likewise.
21055         * MODULES.html.sh (Memory management functions): Add xmemdup0.
21056         * lib/xalloc.h (xmemdup0): Remove.
21057         * lib/xmalloc.c (xmemdup0): Likewise.
21058
21059 2008-05-13  Eric Blake  <ebb9@byu.net>
21060             Bruno Haible  <bruno@clisp.org>
21061
21062         Reduce number of forks required during autoconf.
21063         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
21064         and gl_LIBSOURCES_DIR.
21065         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
21066         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
21067         m4_syscmd per file.
21068         <m4_foreach_w>: Move...
21069         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
21070
21071 2008-05-13  Eric Blake  <ebb9@byu.net>
21072
21073         * gnulib-tool: Fix various comment typos.
21074
21075 2008-05-12  Bruno Haible  <bruno@clisp.org>
21076
21077         Tailor the linebreaking algorithm.
21078         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
21079
21080 2008-05-12  Bruno Haible  <bruno@clisp.org>
21081
21082         Update to Unicode 5.0.0.
21083         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
21084         LBP_JV, LBP_JT. Redistribute values.
21085         (unilbrk_table): Change size.
21086         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
21087         Unicode TR#14 rev. 22.
21088         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
21089         LBP_JV, LBP_JT. Redistribute values.
21090         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
21091         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
21092         Update.
21093         * lib/unilbrk/lbrkprop1.h: Regenerated.
21094         * lib/unilbrk/lbrkprop2.h: Regenerated.
21095         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
21096         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
21097         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
21098         Likewise.
21099         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
21100         Likewise.
21101         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
21102         result.
21103         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21104         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21105         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21106         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
21107         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
21108         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
21109
21110 2008-05-11  Bruno Haible  <bruno@clisp.org>
21111
21112         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
21113
21114 2008-05-11  Bruno Haible  <bruno@clisp.org>
21115
21116         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
21117         * modules/unilbrk/gen-lbrk: New file.
21118
21119 2008-05-11  Bruno Haible  <bruno@clisp.org>
21120
21121         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
21122         * m4/sha512.m4 (gl_SHA512): Likewise.
21123
21124 2008-05-11  Jim Meyering  <meyering@redhat.com>
21125
21126         New modules: crypto/sha256, crypto/sha512 (from coreutils)
21127         * modules/crypto/sha256: New file.
21128         * modules/crypto/sha512: Likewise.
21129         * lib/sha256.c: Likewise.
21130         * lib/sha256.h: Likewise.
21131         * lib/sha512.c: Likewise.
21132         * lib/sha512.h: Likewise.
21133         * lib/u64.h: Likewise.
21134         * m4/sha256.m4: Likewise.
21135         * m4/sha512.m4: Likewise.
21136         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
21137
21138 2008-05-10  Bruno Haible  <bruno@clisp.org>
21139
21140         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
21141         (Input/Output <stdio.h>): Add xprintf.
21142         (Signal handling <signal.h>): Add strsignal.
21143         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
21144         (Core language properties): Add func.
21145         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
21146         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
21147         strings.
21148         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
21149         (Input/output): New section.
21150         (File system functions): Add openat-die, stat-macros.
21151         (Networking functions): Add sockets.
21152         (Unicode string functions): Add unictype/*.
21153         (Support for building libraries and executables): Add gperf.
21154         (Support for building documentation): Add agpl-3.0.
21155         (Misc): Add nocrash.
21156
21157 2008-05-10  Bruno Haible  <bruno@clisp.org>
21158
21159         * modules/unictype/gen-ctype: New file.
21160
21161 2008-05-10  Jim Meyering  <meyering@redhat.com>
21162
21163         Make chdir-safer.c more efficient on a system with no symlinks.
21164         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
21165         also if ELOOP is zero.  Suggested by Bruno Haible.
21166
21167         Make chdir-safer.c slightly safer.
21168         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
21169         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
21170
21171         Avoid compile failure on systems without ELOOP (like mingw).
21172         * lib/chdir-safer.c (ELOOP): Define if not already defined.
21173         Reported by Bruno Haible.
21174
21175 2008-05-10  Bruno Haible  <bruno@clisp.org>
21176
21177         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
21178         (is_utf8_encoding): Use a case-insensitive comparison.
21179         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
21180         streq.
21181
21182 2008-05-10  Bruno Haible  <bruno@clisp.org>
21183
21184         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
21185         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
21186         * lib/unilbrk/ulc-common.h (iconv_string_length,
21187         iconv_string_keeping_offsets): Remove declarations.
21188         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
21189         Don't include <iconv.h>, streq.h, xsize.h.
21190         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
21191         conversion.
21192         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
21193         <iconv.h>, streq.h, xsize.h.
21194         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
21195         conversion.
21196         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
21197         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
21198         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
21199         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
21200
21201 2008-05-10  Bruno Haible  <bruno@clisp.org>
21202
21203         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
21204         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
21205
21206         * modules/unilbrk/u32-width-linebreaks-tests: New file.
21207         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
21208
21209         * modules/unilbrk/u16-width-linebreaks-tests: New file.
21210         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
21211
21212         * modules/unilbrk/u8-width-linebreaks-tests: New file.
21213         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
21214
21215         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
21216         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
21217
21218         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
21219         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
21220
21221         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
21222         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
21223
21224         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
21225         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
21226
21227 2008-05-10  Bruno Haible  <bruno@clisp.org>
21228
21229         Split up 'linebreak' module.
21230         * lib/unilbrk.h: New file, based on lib/linebreak.h.
21231         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
21232         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
21233         modifications.
21234         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
21235         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
21236         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
21237         lib/linebreak.c.
21238         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
21239         lib/linebreak.c.
21240         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
21241         lib/linebreak.c.
21242         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
21243         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
21244         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
21245         lib/linebreak.c.
21246         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
21247         lib/linebreak.c.
21248         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
21249         lib/linebreak.c.
21250         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
21251         lib/linebreak.c.
21252         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
21253         lib/linebreak.c.
21254         * modules/unilbrk/base: New file.
21255         * modules/unilbrk/tables: New file.
21256         * modules/unilbrk/u8-possible-linebreaks: New file.
21257         * modules/unilbrk/u16-possible-linebreaks: New file.
21258         * modules/unilbrk/u32-possible-linebreaks: New file.
21259         * modules/unilbrk/ulc-common: New file.
21260         * modules/unilbrk/ulc-possible-linebreaks: New file.
21261         * modules/unilbrk/u8-width-linebreaks: New file.
21262         * modules/unilbrk/u16-width-linebreaks: New file.
21263         * modules/unilbrk/u32-width-linebreaks: New file.
21264         * modules/unilbrk/ulc-width-linebreaks: New file.
21265         * lib/linebreak.h: Remove file.
21266         * lib/linebreak.c: Remove file.
21267         * m4/linebreak.m4: Remove file.
21268         * modules/linebreak: Remove file.
21269         * NEWS: Mention the changes.
21270
21271 2008-05-09  Eric Blake  <ebb9@byu.net>
21272
21273         Add xmemdup0.
21274         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
21275         implementation.
21276         * lib/xmalloc.c (xmemdup0): New C implementation.
21277
21278 2008-05-08  Bruno Haible  <bruno@clisp.org>
21279
21280         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
21281
21282 2008-05-07  Eric Blake  <ebb9@byu.net>
21283
21284         Support cross-compilation of <wctype.h>.
21285         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
21286         AC_CACHE_CHECK.
21287
21288 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
21289
21290         * build-aux/vc-list-files: Add support for bzr.
21291
21292 2008-05-03  Jim Meyering  <meyering@redhat.com>
21293
21294         avoid failed assertion with tight malloc
21295         * tests/test-getndelim2.c: Correct an off-by-one assertion.
21296
21297 2008-05-03  Simon Josefsson  <simon@josefsson.org>
21298
21299         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
21300         are needed from arpa/inet.h.
21301         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
21302         Reported by Bruno Haible.
21303
21304 2008-05-02  Jim Meyering  <meyering@redhat.com>
21305
21306         avoid compilation error on FreeBSD 6
21307         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
21308
21309 2008-05-01  Jim Meyering  <meyering@redhat.com>
21310
21311         useless-if-before-free: correct --help's exit status description
21312         * build-aux/useless-if-before-free (usage): Like grep, exit 0
21313         for one or more matches, etc.  Reported by Bruno Haible.
21314
21315         vc-list-files: make the stand-alone gnulib test work
21316         * modules/vc-list-files-tests (configure.ac):
21317         Define and AC_SUBST abs_aux_dir.
21318         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
21319         $(abs_top_srcdir) to each script and having each of them
21320         duplicate the work of setting PATH, set PATH here, using
21321         the new variable, abs_aux_dir instead.
21322         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
21323         * tests/test-vc-list-files-git.sh: Likewise.
21324         Reported by Bruno Haible.
21325
21326 2008-05-01  Bruno Haible  <bruno@clisp.org>
21327
21328         * lib/getndelim2.c (getndelim2): Fix newsize computation during
21329         reallocation. Rename 'done' to 'found_delimiter'.
21330
21331 2008-05-01  Jim Meyering  <meyering@redhat.com>
21332
21333         vc-list-files: accommodate /bin/sh like the one from Solaris 10
21334         * build-aux/vc-list-files: Use `...`, not $(...).
21335
21336 2008-04-30  Jim Meyering  <meyering@redhat.com>
21337
21338         add tests for vc-list-files
21339         * modules/vc-list-files-tests: New module.
21340         * tests/test-vc-list-files-cvs.sh: New file.
21341         * tests/test-vc-list-files-git.sh: New file.
21342
21343         avoid a warning from gcc
21344         * lib/getndelim2.c (IF_LINT): Define.
21345         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
21346
21347         vc-list-files: work properly with build-aux/cvsu, too
21348         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
21349         to all cvs-based clauses.
21350
21351         vc-list-files: work properly in the CVS+awk case, too
21352         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
21353
21354         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
21355         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
21356         take more than one file argument, so .  Add quotes, just in case $dir
21357         ever contains a shell meta-character.  Prompted by Soren Hansen in
21358         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
21359
21360 2008-04-29  Eric Blake  <ebb9@byu.net>
21361
21362         Optimize getndelim2 to use block operations when possible.
21363         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
21364         freadseek, and memchr2.
21365         * lib/getndelim2.c (getndelim2): Use them for block reads.
21366
21367 2008-04-29  Bruno Haible  <bruno@clisp.org>
21368
21369         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
21370         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21371         * modules/inet_ntop (Depends-on): Add extensions.
21372         * modules/inet_pton (Depends-on): Likewise.
21373         Reported by Simon Josefsson.
21374
21375 2008-04-29  Jim Meyering  <meyering@redhat.com>
21376
21377         When the is more than one match in a block, match all of them.
21378         * build-aux/useless-if-before-free: Iterate through each block
21379         until there are no more matches.
21380
21381         Fix broken useless-if-before-free script.
21382         * build-aux/useless-if-before-free: Fix typo: missing "?" after
21383         the expression to match cast of argument to free-like function.
21384
21385 2008-04-29  Eric Blake  <ebb9@byu.net>
21386
21387         Use new header.
21388         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
21389
21390 2008-04-29  Jim Meyering  <meyering@redhat.com>
21391
21392         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
21393         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
21394         by gnulib to exist and to declare e.g., inet_ntop.
21395         Don't include "inet_ntop.h", now removed.
21396
21397         * m4/arpa_inet_h.m4: Remove trailing blanks.
21398
21399 2008-04-29  Eric Blake  <ebb9@byu.net>
21400
21401         Silence valgrind on safe reads beyond potential array bounds.
21402         * lib/rawmemchr.valgrind: New file.
21403         * lib/strchrnul.valgrind: Likewise.
21404         * modules/rawmemchr (Files): Distribute new file.
21405         * modules/strchrnul (Files): Likewise.
21406         Suggested by Bruno Haible.
21407
21408 2008-04-29  Bruno Haible  <bruno@clisp.org>
21409
21410         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
21411         (inet_ntop, inet_pton): Change portability warning's wording.
21412         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
21413         Invoke gl_CHECK_NEXT_HEADERS.
21414         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
21415         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
21416         set ARPA_INET_H.
21417         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21418         * modules/arpa_inet (Description): No longer only for systems that
21419         lack it.
21420         (Depends-on): Add include_next.
21421         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
21422         HAVE_ARPA_INET_H.
21423
21424 2008-04-29  Jim Meyering  <meyering@redhat.com>
21425
21426         * modules/mkdir (License): Re-license as LGPLv2+.
21427
21428 2008-04-29  Bruno Haible  <bruno@clisp.org>
21429
21430         * modules/rawmemchr (Maintainer): Set to Eric.
21431         * modules/strchrnul (Maintainer): Likewise.
21432
21433 2008-04-29  Simon Josefsson  <simon@josefsson.org>
21434
21435         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
21436         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
21437
21438         * modules/arpa_inet (arpa/inet.h): Use them.
21439
21440 2008-04-28  Eric Blake  <ebb9@byu.net>
21441
21442         Test getndelim2.
21443         * modules/getndelim2-tests: New file.
21444         * tests/test-getndelim2.c: Likewise.
21445         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
21446         stream.
21447         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
21448
21449         * MODULES.html.sh: Document new module.
21450
21451 2008-04-20  Bruno Haible  <bruno@clisp.org>
21452
21453         * lib/c-stack.c (die): Use raise.
21454         * modules/c-stack (Depends-on): Add raise.
21455
21456 2008-04-28  Bruno Haible  <bruno@clisp.org>
21457
21458         Expect rpmatch to be declared.
21459         * lib/yesno.c (rpmatch): Remove declaration.
21460
21461         Declare rpmatch.
21462         * lib/stdlib.in.h (rpmatch): New declaration.
21463         * lib/rpmatch.c: Include <stdlib.h> first.
21464         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
21465         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
21466         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
21467         HAVE_RPMATCH.
21468         * modules/rpmatch (Depends-on): Add stdlib, extensions.
21469         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21470         (Include): Set to <stdlib.h>.
21471         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
21472         HAVE_RPMATCH.
21473         * NEWS: Document the change.
21474
21475 2008-04-28  Bruno Haible  <bruno@clisp.org>
21476
21477         Change rpmatch to use nl_langinfo when appropriate.
21478         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
21479         (N_): New macro.
21480         (localized_pattern): New function/macro.
21481         (try): Remove match, nomatch arguments. Copy the pattern into safe
21482         memory before caching it.
21483         (rpmatch): Use localized_pattern. Add translator comments.
21484         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
21485         Suggested by Eric Blake.
21486         * modules/rpmatch (Depends-on): Add stdbool.
21487
21488 2008-04-28  Eric Blake  <ebb9@byu.net>
21489
21490         Add rawmemchr module, matching glibc.
21491         * modules/string (Makefile.am): New indicator.
21492         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
21493         * lib/string.in.h (rawmemchr): Declare when appropriate.
21494         * modules/rawmemchr: New file.
21495         * m4/rawmemchr.m4: Likewise.
21496         * lib/rawmemchr.c: Likewise.
21497         * modules/rawmemchr-tests: Likewise.
21498         * tests/test-rawmemchr.c: Likewise.
21499         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
21500         module.
21501         * modules/strchrnul (Depends-on): Add rawmemchr.
21502         * lib/strchrnul.c (strchrnul): Optimize a corner case.
21503
21504         Whitespace cleanup.
21505         * tests/test-strchrnul.c: Reindent.
21506         * lib/strchrnul.c: Likewise.
21507
21508         Optimize and test strchrnul.
21509         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
21510         * modules/strchrnul-tests: New file.
21511         * tests/test-strchrnul.c: Likewise.
21512
21513         Remove intprops dependency.
21514         * modules/memchr (Depends-on): Remove intprops.
21515         * modules/memrchr (Depends-on): Likewise.
21516         * modules/memchr2 (Depends-on): Likewise.
21517         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
21518         * lib/memrchr.c (__memrchr): Likewise.
21519         * lib/memrchr2.c (memchr2): Likewise.
21520         Reported by Simon Josefsson.
21521
21522 2008-04-28  Simon Josefsson  <simon@josefsson.org>
21523
21524         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
21525         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21526
21527 2008-04-28  Simon Josefsson  <simon@josefsson.org>
21528
21529         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
21530
21531         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
21532
21533         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
21534
21535         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
21536         declarations.
21537         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
21538
21539         * m4/inet_pton.m4: Don't check for header files.
21540
21541         * m4/inet_ntop.m4: Don't check for header files.
21542
21543 2008-04-28  Simon Josefsson  <simon@josefsson.org>
21544
21545         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
21546         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
21547         trigger for cygwin).
21548         Reported by Bruno Haible  <bruno@clisp.org>.
21549
21550 2008-04-28  Bruno Haible  <bruno@clisp.org>
21551
21552         * doc/posix-functions/strdup.texi: Mention mingw problem.
21553
21554 2008-04-27  Bruno Haible  <bruno@clisp.org>
21555
21556         * modules/stat-time-tests (Depends-on): Add sleep.
21557         * tests/test-stat-time.c (force_unlink): New function.
21558         (cleanup): Use it.
21559         (test_mtime): Remove the ctime related tests.
21560         (test_ctime): New function, containing the ctime related tests.
21561         (main): Call test_ctime, except on native Windows platforms.
21562
21563 2008-04-27  Bruno Haible  <bruno@clisp.org>
21564
21565         * lib/rpmatch.c (rpmatch): Add some comments.
21566         Reported by James Youngman <jay@gnu.org>.
21567
21568 2008-04-27  Bruno Haible  <bruno@clisp.org>
21569
21570         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
21571         quiet NaNs.
21572
21573 2008-04-27  Bruno Haible  <bruno@clisp.org>
21574
21575         Make test-yesno.sh work on mingw.
21576         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
21577         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
21578         (main): Set stdin to binary mode.
21579         * modules/yesno-tests (Depends-on): Add binary-io.
21580
21581 2008-04-27  Bruno Haible  <bruno@clisp.org>
21582
21583         Fix 'isfinite' on x86, x86_64, ia64 platforms.
21584         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
21585         argument that lie outside the IEEE 854 domain.
21586         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
21587         (gl_ISFINITE): Use it.
21588         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
21589
21590 2008-04-27  Bruno Haible  <bruno@clisp.org>
21591
21592         Allow local renaming in config.h.
21593         * lib/memrchr.c (memrchr): Don't undefine outside libc.
21594
21595 2008-04-27  Bruno Haible  <bruno@clisp.org>
21596
21597         * lib/memchr.c (__memchr): Change type of 'i'.
21598         * lib/memchr2.c (memchr2): Likewise.
21599
21600 2008-04-26  Eric Blake  <ebb9@byu.net>
21601         and Bruno Haible  <bruno@clisp.org>
21602
21603         Optimize and test memrchr.
21604         * modules/memrchr (Depends-on): Add intprops.
21605         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
21606         * modules/memrchr-tests: New file.
21607         * tests/test-memrchr.c: New file.
21608
21609 2008-04-26  Bruno Haible  <bruno@clisp.org>
21610
21611         Add tentative support for DragonFly BSD.
21612         * lib/stdio-impl.h: Add macros for DragonFly BSD.
21613         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
21614         fp.
21615         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
21616         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
21617         * lib/fpurge.c (fpurge): Likewise.
21618         * lib/freadable.c (freaadable): Likewise.
21619         * lib/freadahead.c (freadahead): Likewise.
21620         * lib/freading.c (freading): Likewise.
21621         * lib/freadptr.c (freadptr): Likewise.
21622         * lib/freadseek.c (freadptrinc): Likewise.
21623         * lib/fseeko.c (fseeko): Likewise.
21624         * lib/fseterr.c (fseterr): Likewise.
21625         * lib/fwritable.c (fwritable): Likewise.
21626         * lib/fwriting.c (fwriting): Likewise.
21627
21628 2008-04-26  Bruno Haible  <bruno@clisp.org>
21629
21630         * lib/stdio-impl.h: New file.
21631         * lib/fbufmode.c: Include stdio-impl.h.
21632         (fbufmode): Use fp_, remove redundant #defines.
21633         * lib/fflush.c: Include stdio-impl.h.
21634         (clear_ungetc_buffer): Remove redundant #defines.
21635         * lib/fpurge.c: Include stdio-impl.h.
21636         (fpurge): Remove redundant #defines.
21637         * lib/freadable.c: Include stdio-impl.h.
21638         (freadable): Remove redundant #defines.
21639         * lib/freadahead.c: Include stdio-impl.h.
21640         (freadahead): Remove redundant #defines.
21641         * lib/freading.c: Include stdio-impl.h.
21642         (freading): Remove redundant #defines.
21643         * lib/freadptr.c: Include stdio-impl.h.
21644         (freadptr): Remove redundant #defines.
21645         * lib/freadseek.c: Include stdio-impl.h.
21646         (freadptrinc): Remove redundant #defines.
21647         * lib/fseeko.c: Include stdio-impl.h.
21648         (rpl_fseeko): Remove redundant #defines.
21649         * lib/fseterr.c: Include stdio-impl.h.
21650         (fseterr): Remove redundant #defines.
21651         * lib/fwritable.c: Include stdio-impl.h.
21652         (fwritable: Remove redundant #defines.
21653         * lib/fwriting.c: Include stdio-impl.h.
21654         (fwriting): Remove redundant #defines.
21655         * modules/fbufmode (Files): Add lib/stdio-impl.h.
21656         * modules/fflush (Files): Likewise.
21657         * modules/fpurge (Files): Likewise.
21658         * modules/freadable (Files): Likewise.
21659         * modules/freadahead (Files): Likewise.
21660         * modules/freading (Files): Likewise.
21661         * modules/freadptr (Files): Likewise.
21662         * modules/freadseek (Files): Likewise.
21663         * modules/fseeko (Files): Likewise.
21664         * modules/fseterr (Files): Likewise.
21665         * modules/fwritable (Files): Likewise.
21666         * modules/fwriting (Files): Likewise.
21667
21668 2008-04-26  Bruno Haible  <bruno@clisp.org>
21669
21670         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
21671         restore_seek_optimization, update_fpos_cache): New functions, extracted
21672         from rpl_fflush.
21673         (rpl_fflush): Use them.
21674         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
21675         (gl_REPLACE_FFLUSH): Use it.
21676
21677 2008-04-26  Bruno Haible  <bruno@clisp.org>
21678
21679         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
21680         on Solaris.
21681         * tests/test-xstrtoimax.sh: Likewise.
21682         * tests/test-xstrtoumax.sh: Likewise.
21683         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21684
21685 2008-04-26  Bruno Haible  <bruno@clisp.org>
21686
21687         * modules/memchr-tests: New file.
21688         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
21689
21690 2008-04-26  Eric Blake  <ebb9@byu.net>
21691             Bruno Haible  <bruno@clisp.org>
21692
21693         * lib/memchr.c: Include intprops.h.
21694         (__memchr): Optimize parallel detection of matching bytes. Rename local
21695         variables. Add explanatory comments.
21696
21697 2008-04-26  Bruno Haible  <bruno@clisp.org>
21698
21699         Fix module 'memchr', broken since 2000-10-28.
21700         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
21701
21702 2008-04-26  Bruno Haible  <bruno@clisp.org>
21703
21704         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
21705         comments.
21706
21707 2008-04-25  Eric Blake  <ebb9@byu.net>
21708
21709         Use native fstatat on cygwin 1.7.0.
21710         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
21711         first.
21712
21713 2008-04-23  Eric Blake  <ebb9@byu.net>
21714
21715         Improve memchr2 performance.
21716         * lib/memchr2.c (memchr2): Further optimize parallel detection of
21717         NUL bytes.
21718         * modules/memchr2 (Depends-on): Use intprops.h.
21719
21720 2008-04-23  Simon Josefsson  <simon@josefsson.org>
21721
21722         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
21723         an inline function instead of a CPP macro.  Patch by Ben Pfaff
21724         <blp@cs.stanford.edu>.
21725
21726 2008-04-23  Simon Josefsson  <simon@josefsson.org>
21727
21728         * lib/arpa_inet.in.h: New file.
21729
21730         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
21731         (Makefile.am): Sed in substitute header file.
21732
21733         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
21734         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
21735
21736         * modules/inet_ntop (configure.ac): Use
21737         gl_ARPA_INET_MODULE_INDICATOR.
21738
21739         * modules/inet_pton (configure.ac): Use
21740         gl_ARPA_INET_MODULE_INDICATOR.
21741
21742 2008-04-22  Jim Meyering  <meyering@redhat.com>
21743
21744         * modules/verify (License): Re-license as LGPLv2+.
21745
21746 2008-04-22  Simon Josefsson  <simon@josefsson.org>
21747
21748         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
21749         parameter to void* as per POSIX standard (MinGW uses char*).
21750
21751 2008-04-21  Bruno Haible  <bruno@clisp.org>
21752
21753         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21754         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
21755         Define to replacements if REPLACE_ISWCNTRL is 1.
21756         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
21757         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
21758         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
21759         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
21760         what it fixes.
21761         * doc/posix-functions/iswalpha.texi: Likewise.
21762         * doc/posix-functions/iswblank.texi: Likewise.
21763         * doc/posix-functions/iswcntrl.texi: Likewise.
21764         * doc/posix-functions/iswdigit.texi: Likewise.
21765         * doc/posix-functions/iswgraph.texi: Likewise.
21766         * doc/posix-functions/iswlower.texi: Likewise.
21767         * doc/posix-functions/iswprint.texi: Likewise.
21768         * doc/posix-functions/iswpunct.texi: Likewise.
21769         * doc/posix-functions/iswspace.texi: Likewise.
21770         * doc/posix-functions/iswupper.texi: Likewise.
21771         * doc/posix-functions/iswxdigit.texi: Likewise.
21772         Reported by Alain Guibert.
21773
21774 2008-04-21  Bruno Haible  <bruno@clisp.org>
21775
21776         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
21777         Patch by Alain Guibert.
21778
21779 2008-04-21  Bruno Haible  <bruno@clisp.org>
21780
21781         Fix test failures on mingw.
21782         * tests/test-xstrtol.c (print_no_progname): New function.
21783         (main): Install it in error_print_progname hook.
21784         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
21785         * tests/test-xstrtoimax.sh: Likewise.
21786         * tests/test-xstrtoumax.sh: Likewise.
21787
21788 2008-04-21  Bruno Haible  <bruno@clisp.org>
21789
21790         Fix test failure on mingw.
21791         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
21792
21793 2008-04-21  Bruno Haible  <bruno@clisp.org>
21794
21795         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
21796         Actually assign a value.
21797
21798 2008-04-20  Bruno Haible  <bruno@clisp.org>
21799
21800         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
21801         take 2.
21802         * lib/canonicalize.c (canonicalize_file_name): Elide if the
21803         'canonicalize-lgpl' module is also used.
21804         * lib/canonicalize-lgpl.c: Undo last change.
21805         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
21806
21807 2008-04-20  Bruno Haible  <bruno@clisp.org>
21808
21809         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
21810         config.h. Provide _mkdir based fallback for mingw.
21811         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
21812         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
21813         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
21814         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
21815         rather than defining mkdir in config.h.
21816         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
21817         (gl_SYS_STAT_H_DEFAULTS): New macro.
21818         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
21819         HAVE_IO_H any more.
21820         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
21821         HAVE_DECL_MKDIR and HAVE_IO_H.
21822
21823 2008-04-20  Bruno Haible  <bruno@clisp.org>
21824
21825         * lib/isapipe.c: Port to native Windows platforms.
21826
21827 2008-04-20  Bruno Haible  <bruno@clisp.org>
21828
21829         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
21830
21831 2008-04-21  Eric Blake  <ebb9@byu.net>
21832
21833         Work around preprocessors that don't handle UINTMAX_MAX.
21834         * lib/memchr2.c (memchr2): Avoid embedded #if.
21835         Reported by Alain Guibert, fix suggested by Bruno Haible.
21836
21837 2008-04-21  Simon Josefsson  <simon@josefsson.org>
21838
21839         * doc/posix-functions/strftime.texi (strftime): Explain better
21840         Windows incompatibility.  Suggested by Micah Cowan
21841         <micah@cowan.name>.
21842
21843 2008-04-20  Bruno Haible  <bruno@clisp.org>
21844
21845         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
21846         unistr/u8-mblen.
21847
21848 2008-04-20  Bruno Haible  <bruno@clisp.org>
21849
21850         Fix test failure on platforms with non-GNU iconv.
21851         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
21852         (U_TO_U8): Use it, rather than u16_to_u8.
21853         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
21854         units at the end of the input string.
21855         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
21856
21857 2008-04-20  Bruno Haible  <bruno@clisp.org>
21858
21859         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
21860         when the resulting length is 0.
21861         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
21862
21863 2008-04-20  Bruno Haible  <bruno@clisp.org>
21864
21865         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
21866         works.
21867         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
21868
21869 2008-04-20  Bruno Haible  <bruno@clisp.org>
21870
21871         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
21872         * modules/tsearch-tests (configure.ac): Test for initstate function.
21873
21874 2008-04-20  Bruno Haible  <bruno@clisp.org>
21875
21876         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
21877         for nlink_t if missing.
21878         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
21879
21880 2008-04-19  Bruno Haible  <bruno@clisp.org>
21881
21882         Work around snprintf bug on Linux libc5.
21883         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
21884         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
21885         gl_SNPRINTF_SIZE1.
21886         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
21887         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
21888         that test failed.
21889         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
21890         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
21891         * modules/snprintf (Files): Add m4/printf.m4.
21892         * modules/vsnprintf (Files): Likewise.
21893         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
21894         * doc/posix-functions/vsnprintf.texi: Likewise.
21895
21896 2008-04-19  Bruno Haible  <bruno@clisp.org>
21897
21898         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
21899         from 0.0058 to less than 10^-7.
21900
21901 2008-04-19  Bruno Haible  <bruno@clisp.org>
21902
21903         Fix rounding when a precision is given.
21904         * lib/vasnprintf.c (is_borderline): New function.
21905         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
21906         9...9x.
21907         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
21908         %e, %g.
21909         * tests/test-vasprintf-posix.c (test_function): Likewise.
21910         * tests/test-snprintf-posix.h (test_function): Likewise.
21911         * tests/test-sprintf-posix.h (test_function): Likewise.
21912         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
21913         * tests/test-printf-posix.h (test_function): Likewise.
21914         * tests/test-printf-posix.output: Update.
21915         Reported by John Darrington <john@darrington.wattle.id.au> via
21916         Ben Pfaff <blp@cs.stanford.edu>.
21917
21918 2008-04-18  Simon Josefsson  <simon@josefsson.org>
21919
21920         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
21921         Suggested by Bruno Haible <bruno@clisp.org>.
21922
21923 2008-04-17  Bruno Haible  <bruno@clisp.org>
21924
21925         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
21926         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
21927         implementation.
21928         Patch by Bruce Merry <bmerry@gmail.com>.
21929
21930 2008-04-17  Simon Josefsson  <simon@josefsson.org>
21931
21932         * doc/posix-functions/strftime.texi (strftime): Mention that %e
21933         doesn't work under Windows.
21934
21935 2008-04-16  Bruno Haible  <bruno@clisp.org>
21936
21937         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
21938         New macros.
21939         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
21940         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
21941         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
21942         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
21943         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
21944         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
21945         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
21946         macros.
21947         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
21948         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
21949         Northern Sotho, Uighur.
21950
21951 2008-04-16  Bruno Haible  <bruno@clisp.org>
21952
21953         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
21954         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
21955         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
21956         Reported by Daniel Bergström <daniel@octocode.com>.
21957
21958 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
21959             Bruno Haible  <bruno@clisp.org>
21960
21961         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
21962         function.
21963         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
21964         New functions, mostly extracted from gl_locale_name_default.
21965         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
21966
21967 2008-04-16  Eric Blake  <ebb9@byu.net>
21968
21969         Adjust strtod detection to catch glibc 2.7 bug.
21970         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
21971         Reported by John Gatewood Ham.
21972
21973 2008-04-16  Bruno Haible  <bruno@clisp.org>
21974
21975         Add tentative support for Linux libc5.
21976         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
21977         * lib/fpurge.c (fpurge): Likewise.
21978         * lib/freadable.c (freadable): Likewise.
21979         * lib/freadahead.c (freadahead): Likewise.
21980         * lib/freading.c (freading): Likewise.
21981         * lib/freadptr.c (freadptr): Likewise.
21982         * lib/freadseek.c (freadptrinc): Likewise.
21983         * lib/fseeko.c (rpl_fseeko): Likewise.
21984         * lib/fseterr.c (fseterr): Likewise.
21985         * lib/fwritable.c (fwritable): Likewise.
21986         * lib/fwriting.c (fwriting): Likewise.
21987         Reported by Alain Guibert <alguibert+bts@free.fr>.
21988
21989 2008-04-15  Bruno Haible  <bruno@clisp.org>
21990
21991         * modules/mathl (configure.ac): Define module indicator.
21992
21993 2008-04-15  Bruno Haible  <bruno@clisp.org>
21994
21995         * lib/logl.c (logl): Remove unused variables.
21996
21997 2008-04-15  Bruno Haible  <bruno@clisp.org>
21998
21999         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
22000         fails.
22001
22002 2008-04-15  Bruno Haible  <bruno@clisp.org>
22003
22004         * lib/trim.c (trim2): Fix argument of isspace() macro.
22005
22006 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
22007
22008         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
22009         to 0.
22010         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
22011
22012 2008-04-14  Bruno Haible  <bruno@clisp.org>
22013
22014         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
22015         AC_LANG_PROGRAM argument.
22016         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
22017         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
22018         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22019         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22020         * m4/math_h.m4 (gl_MATH_H): Likewise.
22021         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22022         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22023         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
22024         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
22025         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22026         * m4/regex.m4 (gl_REGEX): Likewise.
22027         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
22028         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
22029         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22030         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
22031         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
22032         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22033         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22034         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22035
22036 2008-04-14  Jim Meyering  <meyering@redhat.com>
22037
22038         test-strtod: fix typos: s/abs/fabs/
22039         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
22040
22041 2008-04-13  Bruno Haible  <bruno@clisp.org>
22042
22043         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
22044         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
22045         module is also used and while not building the reloc-wrapper.
22046
22047 2008-04-13  Bruno Haible  <bruno@clisp.org>
22048
22049         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
22050
22051 2008-04-13  Bruno Haible  <bruno@clisp.org>
22052
22053         Fix AIX compilation failure introduced on 2008-04-02.
22054         * tests/test-frexp.c (exp): Undefine before redefining.
22055         * tests/test-frexpl.c (exp): Likewise.
22056
22057 2008-04-13  Bruno Haible  <bruno@clisp.org>
22058
22059         Work around a HP-UX stdio bug.
22060         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
22061         * tests/test-ftello.c (main): Likewise.
22062         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
22063         * doc/posix-functions/ftello.texi: Likewise.
22064
22065 2008-04-13  Bruno Haible  <bruno@clisp.org>
22066
22067         Make test-signbit pass on HP-UX/hppa.
22068         * tests/test-signbit.c (minus_zerol): New variable.
22069         (test_signbitl): Use it.
22070
22071 2008-04-13  Bruno Haible  <bruno@clisp.org>
22072
22073         Make truncl work on OSF/1 4.0.
22074         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
22075         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
22076         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
22077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
22078         HAVE_DECL_TRUNCL.
22079         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
22080         HAVE_DECL_TRUNCL.
22081         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
22082
22083 2008-04-13  Bruno Haible  <bruno@clisp.org>
22084
22085         * lib/unictype.h: Remove trailing comma from enumeration definitions.
22086
22087 2008-04-13  Bruno Haible  <bruno@clisp.org>
22088
22089         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
22090         expression, so as to avoid HP-UX 11 cc compiler bug.
22091
22092 2008-04-13  Bruno Haible  <bruno@clisp.org>
22093
22094         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
22095
22096 2008-04-13  Bruno Haible  <bruno@clisp.org>
22097
22098         * lib/git-merge-changelog.c: Remove empty declaration outside of
22099         functions.
22100
22101 2008-04-13  Bruno Haible  <bruno@clisp.org>
22102
22103         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
22104
22105 2008-04-13  Bruno Haible  <bruno@clisp.org>
22106
22107         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
22108         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
22109         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
22110         also if it exists but lacks definitions of the SHUT_* macros.
22111         * modules/sys_socket (Description): Update.
22112         Reported by Elbert Pol <e.pol@chello.nl>.
22113
22114 2008-04-13  Bruno Haible  <bruno@clisp.org>
22115
22116         * lib/localcharset.c (OS2): Don't redefine if already defined.
22117         Reported by Elbert Pol <e.pol@chello.nl>.
22118
22119 2008-04-13  Bruno Haible  <bruno@clisp.org>
22120
22121         * lib/binary-io.h [__EMX__]: Include <io.h>.
22122         Reported by Elbert Pol <e.pol@chello.nl>.
22123
22124 2008-04-12  Bruno Haible  <bruno@clisp.org>
22125
22126         * lib/fpucw.h: Enable the definitions also for x86_64.
22127         Needed for NetBSD/x86_64.
22128         Reported by Thomas Klausner <tk@giga.or.at>.
22129
22130 2008-04-12  Bruno Haible  <bruno@clisp.org>
22131
22132         * tests/test-strtod.c: Include isnand.h.
22133         (main): Use isnand instead of isnan.
22134         Reported by Jim Meyering.
22135
22136 2008-04-12  Bruno Haible  <bruno@clisp.org>
22137
22138         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
22139         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22140
22141 2008-04-12  Jim Meyering  <meyering@redhat.com>
22142
22143         * m4/math_h.m4 (gl_MATH_H): Fix typos.
22144
22145 2008-04-12  Bruno Haible  <bruno@clisp.org>
22146
22147         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
22148         Reported by Elbert Pol <e.pol@chello.nl>.
22149
22150 2008-04-12  Eric Blake  <ebb9@byu.net>
22151
22152         Work around Solaris 10 math.h bug.
22153         * m4/math_h.m4 (gl_MATH_H): Check for bug.
22154         (gl_MATH_H_DEFAULTS): Set up default.
22155         * modules/math (Makefile.am): Replace new indicators.
22156         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
22157         * tests/test-math.c (main): Test this.
22158         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
22159         * doc/posix-headers/math.texi (math.h): Mention bug.
22160         Reported by Nelson H. F. Beebe and Jim Meyering.
22161
22162 2008-04-11  Bruno Haible  <bruno@clisp.org>
22163
22164         Adapt to future versions of Apple GCC.
22165         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
22166         Reported by Peter O'Gorman <peter@pogma.com>.
22167
22168 2008-04-11  Bruno Haible  <bruno@clisp.org>
22169
22170         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
22171
22172 2008-04-11  Bruno Haible  <bruno@clisp.org>
22173
22174         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
22175
22176         * modules/getaddrinfo-tests (Makefile.am): Define
22177         test_getaddrinfo_LDADD.
22178
22179 2008-04-11  Bruno Haible  <bruno@clisp.org>
22180
22181         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
22182         (init): Fix syntax error.
22183         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
22184         is declared.
22185
22186 2008-04-11  Bruno Haible  <bruno@clisp.org>
22187
22188         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
22189         * modules/glob (Depends-on): Add stdbool.
22190
22191 2008-04-11  Bruno Haible  <bruno@clisp.org>
22192
22193         * lib/trim.c: Include <string.h>.
22194
22195 2008-04-11  Eric Blake  <ebb9@byu.net>
22196
22197         Avoid compile failure on OS/2.
22198         * lib/regex_internal.h (internal_function): Disable optimization
22199         on OS/2 (__EMX__), where it caused compiler error.
22200         Reported by Elbert Pol.
22201
22202 2008-04-11  Bruno Haible  <bruno@clisp.org>
22203
22204         Flush the standard error stream before aborting. Needed on mingw.
22205         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
22206         * tests/test-array_list.c (ASSERT): Likewise.
22207         * tests/test-array_oset.c (ASSERT): Likewise.
22208         * tests/test-avltree_list.c (ASSERT): Likewise.
22209         * tests/test-avltree_oset.c (ASSERT): Likewise.
22210         * tests/test-avltreehash_list.c (ASSERT): Likewise.
22211         * tests/test-binary-io.c (ASSERT): Likewise.
22212         * tests/test-byteswap.c (ASSERT): Likewise.
22213         * tests/test-c-ctype.c (ASSERT): Likewise.
22214         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
22215         * tests/test-c-strcasestr.c (ASSERT): Likewise.
22216         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
22217         * tests/test-c-strstr.c (ASSERT): Likewise.
22218         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
22219         * tests/test-canonicalize.c (ASSERT): Likewise.
22220         * tests/test-carray_list.c (ASSERT): Likewise.
22221         * tests/test-ceilf1.c (ASSERT): Likewise.
22222         * tests/test-ceilf2.c (ASSERT): Likewise.
22223         * tests/test-ceill.c (ASSERT): Likewise.
22224         * tests/test-count-one-bits.c (ASSERT): Likewise.
22225         * tests/test-fbufmode.c (ASSERT): Likewise.
22226         * tests/test-fflush2.c (ASSERT): Likewise.
22227         * tests/test-floorf1.c (ASSERT): Likewise.
22228         * tests/test-floorf2.c (ASSERT): Likewise.
22229         * tests/test-floorl.c (ASSERT): Likewise.
22230         * tests/test-fopen.c (ASSERT): Likewise.
22231         * tests/test-fpending.c (ASSERT): Likewise.
22232         * tests/test-fprintf-posix.c (ASSERT): Likewise.
22233         * tests/test-fpurge.c (ASSERT): Likewise.
22234         * tests/test-freadable.c (ASSERT): Likewise.
22235         * tests/test-freadahead.c (ASSERT): Likewise.
22236         * tests/test-freading.c (ASSERT): Likewise.
22237         * tests/test-freadptr.c (ASSERT): Likewise.
22238         * tests/test-freadptr2.c (ASSERT): Likewise.
22239         * tests/test-freadseek.c (ASSERT): Likewise.
22240         * tests/test-freopen.c (ASSERT): Likewise.
22241         * tests/test-frexp.c (ASSERT): Likewise.
22242         * tests/test-frexpl.c (ASSERT): Likewise.
22243         * tests/test-fseek.c (ASSERT): Likewise.
22244         * tests/test-fseeko.c (ASSERT): Likewise.
22245         * tests/test-fstrcmp.c (ASSERT): Likewise.
22246         * tests/test-ftell.c (ASSERT): Likewise.
22247         * tests/test-ftello.c (ASSERT): Likewise.
22248         * tests/test-func.c (ASSERT): Likewise.
22249         * tests/test-fwritable.c (ASSERT): Likewise.
22250         * tests/test-fwriting.c (ASSERT): Likewise.
22251         * tests/test-getdelim.c (ASSERT): Likewise.
22252         * tests/test-getline.c (ASSERT): Likewise.
22253         * tests/test-i-ring.c (ASSERT): Likewise.
22254         * tests/test-iconv-utf.c (ASSERT): Likewise.
22255         * tests/test-iconv.c (ASSERT): Likewise.
22256         * tests/test-isfinite.c (ASSERT): Likewise.
22257         * tests/test-isnand.c (ASSERT): Likewise.
22258         * tests/test-isnanf.c (ASSERT): Likewise.
22259         * tests/test-isnanl.h (ASSERT): Likewise.
22260         * tests/test-ldexpl.c (ASSERT): Likewise.
22261         * tests/test-linked_list.c (ASSERT): Likewise.
22262         * tests/test-linkedhash_list.c (ASSERT): Likewise.
22263         * tests/test-localename.c (ASSERT): Likewise.
22264         * tests/test-lseek.c (ASSERT): Likewise.
22265         * tests/test-mbscasecmp.c (ASSERT): Likewise.
22266         * tests/test-mbscasestr1.c (ASSERT): Likewise.
22267         * tests/test-mbscasestr2.c (ASSERT): Likewise.
22268         * tests/test-mbscasestr3.c (ASSERT): Likewise.
22269         * tests/test-mbscasestr4.c (ASSERT): Likewise.
22270         * tests/test-mbschr.c (ASSERT): Likewise.
22271         * tests/test-mbscspn.c (ASSERT): Likewise.
22272         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
22273         * tests/test-mbspbrk.c (ASSERT): Likewise.
22274         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
22275         * tests/test-mbsrchr.c (ASSERT): Likewise.
22276         * tests/test-mbsspn.c (ASSERT): Likewise.
22277         * tests/test-mbsstr1.c (ASSERT): Likewise.
22278         * tests/test-mbsstr2.c (ASSERT): Likewise.
22279         * tests/test-mbsstr3.c (ASSERT): Likewise.
22280         * tests/test-memchr2.c (ASSERT): Likewise.
22281         * tests/test-memmem.c (ASSERT): Likewise.
22282         * tests/test-open.c (ASSERT): Likewise.
22283         * tests/test-printf-frexp.c (ASSERT): Likewise.
22284         * tests/test-printf-frexpl.c (ASSERT): Likewise.
22285         * tests/test-printf-posix.c (ASSERT): Likewise.
22286         * tests/test-quotearg.c (ASSERT): Likewise.
22287         * tests/test-rbtree_list.c (ASSERT): Likewise.
22288         * tests/test-rbtree_oset.c (ASSERT): Likewise.
22289         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
22290         * tests/test-round1.c (ASSERT): Likewise.
22291         * tests/test-roundf1.c (ASSERT): Likewise.
22292         * tests/test-roundl.c (ASSERT): Likewise.
22293         * tests/test-signbit.c (ASSERT): Likewise.
22294         * tests/test-sleep.c (ASSERT): Likewise.
22295         * tests/test-snprintf-posix.c (ASSERT): Likewise.
22296         * tests/test-snprintf.c (ASSERT): Likewise.
22297         * tests/test-sprintf-posix.c (ASSERT): Likewise.
22298         * tests/test-stat-time.c (ASSERT): Likewise.
22299         * tests/test-strcasestr.c (ASSERT): Likewise.
22300         * tests/test-strerror.c (ASSERT): Likewise.
22301         * tests/test-striconv.c (ASSERT): Likewise.
22302         * tests/test-striconveh.c (ASSERT): Likewise.
22303         * tests/test-striconveha.c (ASSERT): Likewise.
22304         * tests/test-strsignal.c (ASSERT): Likewise.
22305         * tests/test-strstr.c (ASSERT): Likewise.
22306         * tests/test-strtod.c (ASSERT): Likewise.
22307         * tests/test-trunc1.c (ASSERT): Likewise.
22308         * tests/test-trunc2.c (ASSERT): Likewise.
22309         * tests/test-truncf1.c (ASSERT): Likewise.
22310         * tests/test-truncf2.c (ASSERT): Likewise.
22311         * tests/test-truncl.c (ASSERT): Likewise.
22312         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
22313         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
22314         * tests/test-vasnprintf.c (ASSERT): Likewise.
22315         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
22316         * tests/test-vasprintf.c (ASSERT): Likewise.
22317         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
22318         * tests/test-vprintf-posix.c (ASSERT): Likewise.
22319         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
22320         * tests/test-vsnprintf.c (ASSERT): Likewise.
22321         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
22322         * tests/test-wcwidth.c (ASSERT): Likewise.
22323         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
22324         * tests/test-xprintf-posix.c (ASSERT): Likewise.
22325         * tests/test-xvasprintf.c (ASSERT): Likewise.
22326         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
22327         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
22328         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
22329         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
22330         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
22331         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
22332         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
22333         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
22334         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
22335         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
22336         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
22337         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
22338         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
22339         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
22340         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
22341         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
22342         * tests/unictype/test-block_list.c (ASSERT): Likewise.
22343         * tests/unictype/test-block_of.c (ASSERT): Likewise.
22344         * tests/unictype/test-block_test.c (ASSERT): Likewise.
22345         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
22346         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
22347         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
22348         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
22349         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
22350         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
22351         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
22352         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
22353         * tests/unictype/test-combining.c (ASSERT): Likewise.
22354         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
22355         * tests/unictype/test-digit.c (ASSERT): Likewise.
22356         * tests/unictype/test-mirror.c (ASSERT): Likewise.
22357         * tests/unictype/test-numeric.c (ASSERT): Likewise.
22358         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
22359         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
22360         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
22361         * tests/unictype/test-scripts.c (ASSERT): Likewise.
22362         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
22363         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
22364         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
22365         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
22366         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
22367         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
22368         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
22369         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
22370         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
22371         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
22372         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
22373         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
22374         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
22375         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
22376         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
22377         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
22378         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
22379         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
22380         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
22381         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
22382         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
22383         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
22384         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
22385         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
22386         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
22387         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
22388         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
22389         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
22390         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
22391         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
22392         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
22393         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
22394         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
22395         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
22396         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
22397         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
22398         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
22399         Reported by Eric Blake.
22400
22401 2008-04-11  Bruno Haible  <bruno@clisp.org>
22402
22403         * lib/wchar.in.h: Tweak comment.
22404
22405 2008-04-11  Bruno Haible  <bruno@clisp.org>
22406
22407         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
22408         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
22409         gl_COMMON.
22410         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
22411
22412 2008-04-11  Bruno Haible  <bruno@clisp.org>
22413
22414         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
22415
22416 2008-04-11  Simon Josefsson  <simon@josefsson.org>
22417
22418         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
22419         of attempting to use non-existing /dev/*random.  Based on patch
22420         from Adam Strzelecki <ono@java.pl> in
22421         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
22422
22423 2008-04-08  Bruno Haible  <bruno@clisp.org>
22424
22425         Add tentative support for emx+gcc.
22426         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
22427         * lib/fpurge.c (fpurge): Likewise.
22428         * lib/freadable.c (freadable): Likewise.
22429         * lib/freadahead.c (freadahead): Likewise.
22430         * lib/freading.c (freading): Likewise.
22431         * lib/freadptr.c (freadptr): Likewise.
22432         * lib/freadseek.c (freadptrinc): Likewise.
22433         * lib/fseeko.c (rpl_fseeko): Likewise.
22434         * lib/fseterr.c (fseterr): Likewise.
22435         * lib/fwritable.c (fwritable): Likewise.
22436         * lib/fwriting.c (fwriting): Likewise.
22437         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
22438
22439 2008-04-09  Eric Blake  <ebb9@byu.net>
22440
22441         Avoid some autoconf warnings.
22442         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
22443         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
22444         * m4/afs.m4 (gl_AFS): Likewise.
22445         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
22446         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
22447         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22448         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
22449         (gl_INTEGER_TYPE_SUFFIX): Likewise.
22450         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
22451         (AC_CHECK_DECLS_ONCE): Likewise.
22452         Rename file...
22453         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
22454         gnulib-tool requires autoconf 2.59 or better.
22455         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
22456
22457 2008-04-08  Eric Blake  <ebb9@byu.net>
22458
22459         Use 'git describe --match' if present (added in git 1.5.5).
22460         * build-aux/git-version-gen: Limit result to tags that match 'v*'
22461         if possible.
22462
22463 2008-04-08  Bruno Haible  <bruno@clisp.org>
22464
22465         Add tentative support for OpenServer.
22466         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
22467         _ptr, _cnt.
22468         * lib/fpurge.c (fpurge): Likewise.
22469         * lib/freadable.c (freadable): Likewise.
22470         * lib/freadahead.c (freadahead): Likewise.
22471         * lib/freading.c (freading): Likewise.
22472         * lib/freadptr.c (freadptr): Likewise.
22473         * lib/freadseek.c (freadptrinc): Likewise.
22474         * lib/fseeko.c (rpl_fseeko): Likewise.
22475         * lib/fseterr.c (fseterr): Likewise.
22476         * lib/fwritable.c (fwritable): Likewise.
22477         * lib/fwriting.c (fwriting): Likewise.
22478         Reported by Roger Cornelius <rac@tenzing.org> and
22479         Brian K. White <brian@aljex.com>.
22480
22481 2008-04-06  Jim Meyering  <meyering@redhat.com>
22482
22483         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
22484
22485 2008-04-06  Bruno Haible  <bruno@clisp.org>
22486
22487         Avoid possible error with non-ASCII bytes in UTF-8 locales.
22488         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
22489         * tests/test-printf-posix.sh: Likewise.
22490         * tests/test-vfprintf-posix.sh: Likewise.
22491         * tests/test-vprintf-posix.sh: Likewise.
22492         * tests/test-xprintf-posix.sh: Likewise.
22493
22494 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22495
22496         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
22497         hide error from 'ls', needed on OS/2.
22498         Report by Elbert Pol <elbert.pol@gmail.com>.
22499
22500 2008-04-04  Eric Blake  <ebb9@byu.net>
22501
22502         Make test-fseeko.c failures meaningful.
22503         * tests/test-fseeko.c: Print line number on failure.
22504         * tests/test-fseek.c: Likewise.
22505         Reported by Nelson H. F. Beebe.
22506
22507         Improve strtod bug detection check.
22508         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
22509         required for Solaris 10.
22510         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
22511
22512 2008-04-04  Bruno Haible  <bruno@clisp.org>
22513
22514         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
22515         by m4/setenv.m4.
22516
22517 2008-04-03  Eric Blake  <ebb9@byu.net>
22518
22519         Ensure sane .version contents.
22520         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
22521         version string.
22522         * build-aux/git-version-gen: Improve documentation.
22523
22524         Make GNU make output nicer.
22525         * top/GNUmakefile [!_have-Makefile]: Add dependency on
22526         MAKECMDGOALS to enforce message for all command line targets.  Set
22527         srcdir for use in maint.mk.
22528
22529         Another maintainer tweak.
22530         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
22531         a target that regenerates version.
22532
22533 2008-04-03  Jim Meyering  <meyering@redhat.com>
22534
22535         vc-list-files: don't cause coreutils "make po-check" failure
22536         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
22537
22538 2008-04-03  Eric Blake  <ebb9@byu.net>
22539
22540         Allow VPATH usage of vc-list-files.
22541         * build-aux/vc-list-files (scriptversion): Add timestamp.
22542         (options): Add --help, --version, -C.
22543         (CVS): Support installed cvsu.
22544
22545 2008-04-02  Bruno Haible  <bruno@clisp.org>
22546
22547         Avoid some "statement with no effect" warnings from gcc.
22548         * tests/test-wctype.c (main): Explicitly ignore unused values.
22549         Reported by Jim Meyering.
22550
22551 2008-04-02  Jim Meyering  <meyering@redhat.com>
22552
22553         Avoid some warnings from "gcc -Wshadow".
22554         * tests/test-frexp.c (exp): Define to a different identifier.
22555         * tests/test-frexpl.c (exp): Likewise.
22556
22557 2008-04-03  Jim Meyering  <meyering@redhat.com>
22558
22559         bootstrap: remove dangling *.[ch] symlinks from lib
22560         * build-aux/bootstrap [dangling symlink removal]: Move find's
22561         -depth option to precede all others, to avoid a warning.
22562         Remove *.[ch] files too, and from "$source_base" (usually lib/).
22563
22564 2008-04-02  Bruno Haible  <bruno@clisp.org>
22565
22566         Avoid some warnings from "gcc -Wshadow".
22567         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
22568         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
22569         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
22570         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
22571         Reported by Jim Meyering.
22572
22573 2008-04-01  Bruno Haible  <bruno@clisp.org>
22574
22575         Fix test to work on IRIX 6.5 with cc.
22576         * tests/test-math.c (numeric_equal): New function.
22577         (main): Use it.
22578
22579 2008-04-01  Bruno Haible  <bruno@clisp.org>
22580
22581         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
22582
22583 2008-04-01  Bruno Haible  <bruno@clisp.org>
22584
22585         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
22586         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22587         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
22588         (Depends-on): Remove math.
22589
22590         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
22591         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22592         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
22593         (Depends-on): Remove math.
22594
22595         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
22596         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22597         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
22598         (Depends-on): Remove math.
22599         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
22600         (Depends-on): Remove math.
22601
22602         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
22603         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22604         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
22605         (Depends-on): Remove math.
22606         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
22607         (Depends-on): Remove math.
22608
22609         * tests/test-round1.c: Include nan.h.
22610         (main): Use NaNd instead of NAN.
22611         * modules/round-tests (Files): Add tests/nan.h.
22612
22613         * tests/test-trunc1.c: Include nan.h.
22614         (main): Use NaNd instead of NAN.
22615         * modules/trunc-tests (Files): Add tests/nan.h.
22616
22617         * tests/test-roundf1.c: Include nan.h.
22618         (main): Use NaNf instead of NAN.
22619         * modules/roundf-tests (Files): Add tests/nan.h.
22620
22621         * tests/test-truncf1.c: Include nan.h.
22622         (main): Use NaNf instead of NAN.
22623         * modules/truncf-tests (Files): Add tests/nan.h.
22624
22625         * tests/test-ceilf1.c: Include nan.h.
22626         (main): Use NaNf instead of NAN.
22627         * modules/ceilf-tests (Files): Add tests/nan.h.
22628
22629         * tests/test-floorf1.c: Include nan.h.
22630         (main): Use NaNf instead of NAN.
22631         * modules/floorf-tests (Files): Add tests/nan.h.
22632
22633         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
22634         (main): Use NaNf instead of NAN.
22635         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
22636
22637         * tests/test-isnand.c: Include nan.h instead of <math.h>.
22638         (main): Use NaNd instead of NAN.
22639         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
22640
22641         * tests/test-frexp.c: Include nan.h.
22642         (main): Use NaNd instead of NAN.
22643         * modules/frexp-tests (Files): Add tests/nan.h.
22644
22645         * lib/isnan.c: Don't include <math.h>.
22646         (FUNC): Don't use NAN macro.
22647         * modules/isnand-nolibm (Depends-on): Remove math.
22648         * modules/isnanf-nolibm (Depends-on): Remove math.
22649         * modules/isnanl (Depends-on): Remove math.
22650         * modules/isnanl-nolibm (Depends-on): Remove math.
22651
22652         * tests/nan.h: New file.
22653
22654 2008-04-01  Eric Blake  <ebb9@byu.net>
22655
22656         Fix typos.
22657         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
22658         values to be the right type.
22659
22660         For now, cater to gnulib strtod inaccuracies.
22661         * tests/test-strtod.c (main): Allow 1-ulp error on expected
22662         fractional results.  While not as nice from a QoI perspective, it
22663         is a quicker patch than correctly implementing decimal to binary
22664         rounding.
22665
22666 2008-03-31  Eric Blake  <ebb9@byu.net>
22667
22668         Guarantee a definition of NAN.
22669         * lib/math.in.h (NAN): Define if missing.
22670         * tests/test-math.c (main): Test it.
22671         * doc/posix-headers/math.texi (math.h): Document this.
22672         * lib/isnan.c (rpl_isnand): Use it.
22673         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
22674         * tests/test-floorf1.c (NaN): Likewise.
22675         * tests/test-frexp.c (NaN): Likewise.
22676         * tests/test-isnand.c (NaN): Likewise.
22677         * tests/test-isnanf.c (NaN): Likewise.
22678         * tests/test-round1.c (NaN): Likewise.
22679         * tests/test-roundf1.c (NaN): Likewise.
22680         * tests/test-snprintf-posix.h (NaN): Likewise.
22681         * tests/test-sprintf-posix.h (NaN): Likewise.
22682         * tests/test-trunc1.c (NaN): Likewise.
22683         * tests/test-truncf1.c (NaN): Likewise.
22684         * tests/test-vasnprintf-posix.c (NaN): Likewise.
22685         * tests/test-vasprintf-posix.c (NaN): Likewise.
22686         * modules/isnand-nolibm (Depends-on): Add math.
22687         * modules/isnanf-nolibm (Depends-on): Likewise.
22688         * modules/isnanl (Depends-on): Likewise.
22689         * modules/isnanl-nolibm (Depends-on): Likewise.
22690         * modules/snprintf-posix-tests (Depends-on): Likewise.
22691         * modules/sprintf-posix-tests (Depends-on): Likewise.
22692         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
22693         * modules/vsprintf-posix-tests (Depends-on): Likewise.
22694         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
22695         * modules/vasprintf-posix-tests (Depends-on): Likewise.
22696
22697 2008-03-31  Bruno Haible  <bruno@clisp.org>
22698
22699         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
22700         * doc/posix-functions/strtod.texi: Likewise.
22701
22702 2008-03-31  Bruno Haible  <bruno@clisp.org>
22703
22704         * tests/test-strtod.c (main): Don't use C99 syntax.
22705
22706 2008-03-31  Bruno Haible  <bruno@clisp.org>
22707
22708         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
22709         Reported by Eric Blake.
22710
22711 2008-03-31  Jim Meyering  <meyering@redhat.com>
22712
22713         Don't compare actual signbit return values.
22714         * tests/test-strtod.c (main): Rather, compare only their
22715         zero/non-zero nature.
22716
22717 2008-03-31  Eric Blake  <ebb9@byu.net>
22718
22719         More strtod documentation.
22720         * doc/posix-functions/strtod.texi (strtod): Interpret more test
22721         failures as distinct bugs.
22722
22723 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
22724
22725         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
22726         Problem reported by Erik Benada in
22727         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
22728
22729 2008-03-30  Bruno Haible  <bruno@clisp.org>
22730
22731         * tests/test-strtod.c: Add comments about which assertion fails on which
22732         platform.
22733         * doc/posix-functions/strtod.texi: Add info about many more platforms.
22734
22735 2008-03-30  Eric Blake  <ebb9@byu.net>
22736
22737         Test signbit behavior on zeros.
22738         * tests/test-signbit.c (test_signbitf): Add tests for zero.
22739         (test_signbitd, test_signbitl): Likewise.
22740
22741         More strtod touchups.
22742         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
22743         sign of negative underflow, for now.  Use .5, not .1.
22744         * doc/posix-functions/strtod.texi (strtod): Mention these
22745         limitations.
22746         Reported by Jim Meyering.
22747
22748 2008-03-30  Bruno Haible  <bruno@clisp.org>
22749
22750         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
22751         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
22752
22753 2008-03-30  Bruno Haible  <bruno@clisp.org>
22754
22755         Avoid failure when attempting to return empty iconv results on some
22756         platforms.
22757         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
22758         allocation, don't report ENOMEM when the resulting string is empty.
22759
22760 2008-03-30  Bruno Haible  <bruno@clisp.org>
22761
22762         Fix buffer overrun.
22763         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
22764         Don't consider the width for tmp_length. Check count against tmp_length
22765         before doing the padding. Ensure enough allocation during padding.
22766
22767 2008-03-30  Eric Blake  <ebb9@byu.net>
22768
22769         strtod touchups.
22770         * lib/strtod.c (strtod): Avoid compiler warnings.
22771         Reported by Jim Meyering.
22772
22773 2008-03-30  Bruno Haible  <bruno@clisp.org>
22774
22775         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
22776         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
22777         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
22778         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
22779         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
22780         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
22781         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
22782         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
22783
22784         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
22785         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
22786         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
22787         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
22788         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
22789         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
22790         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
22791         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
22792
22793         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
22794         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
22795         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
22796         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
22797         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
22798         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
22799         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
22800         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
22801
22802         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
22803         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
22804
22805         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
22806         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
22807
22808         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
22809         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
22810
22811         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
22812         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
22813         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
22814
22815         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
22816         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
22817         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
22818
22819         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
22820         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
22821         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
22822
22823         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
22824         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
22825         * modules/vasprintf (Depends-on): Add EOVERFLOW.
22826
22827         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
22828         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
22829         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
22830         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
22831         (Depends-on): Add EOVERFLOW.
22832         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
22833         (Depends-on): Add EOVERFLOW.
22834         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
22835         (Depends-on): Add EOVERFLOW.
22836         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
22837         (Depends-on): Add EOVERFLOW.
22838         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
22839         (Depends-on): Add EOVERFLOW.
22840         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
22841         (Depends-on): Add EOVERFLOW.
22842         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
22843         (Depends-on): Add EOVERFLOW.
22844         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
22845         (Depends-on): Add EOVERFLOW.
22846
22847         * lib/sprintf.c (EOVERFLOW): Remove fallback.
22848         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
22849         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
22850
22851         * lib/snprintf.c (EOVERFLOW): Remove fallback.
22852         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
22853         * modules/snprintf (Depends-on): Add EOVERFLOW.
22854
22855         * lib/poll.c (EOVERFLOW): Remove fallback.
22856         * modules/poll (Depends-on): Add EOVERFLOW.
22857
22858         * lib/getugroups.c (EOVERFLOW): Remove fallback.
22859         * modules/getugroups (Depends-on): Add EOVERFLOW.
22860
22861         * lib/getdelim.c (EOVERFLOW): Remove fallback.
22862         * modules/getdelim (Depends-on): Add EOVERFLOW.
22863
22864         * lib/ftell.c (EOVERFLOW): Remove fallback.
22865         * modules/ftell (Depends-on): Add EOVERFLOW.
22866
22867         * lib/fprintf.c (EOVERFLOW): Remove fallback.
22868         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
22869         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
22870
22871         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
22872
22873         * modules/EOVERFLOW-tests: New file.
22874         * tests/test-EOVERFLOW.c: New file.
22875
22876         * modules/EOVERFLOW: New file.
22877         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
22878
22879 2008-03-30  Bruno Haible  <bruno@clisp.org>
22880
22881         Fix bug introduced on 2007-06-10.
22882         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
22883         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
22884
22885 2008-03-30  Bruno Haible  <bruno@clisp.org>
22886
22887         Improve freadseek's efficiency after ungetc.
22888         * lib/freadseek.c: Include freadahead.h.
22889         (freadptrinc): New function, extracted from freadseek.
22890         (freadseek): Use it in a loop. Use freadahead to determine the number
22891         of loop iterations.
22892         * modules/freadseek (Depends-on): Add freadahead.
22893         (configure.ac): Require AC_C_INLINE.
22894
22895 2008-03-30  Bruno Haible  <bruno@clisp.org>
22896
22897         * lib/freadseek.c (freadseek): Don't ignore the return value of
22898         freadptr.
22899
22900 2008-03-29  Eric Blake  <ebb9@byu.net>
22901
22902         Add hex float support.
22903         * modules/strtod (Depends-on): Add c-ctype.
22904         (Link): Mention POW_LIB.
22905         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
22906         whitespace between 'e' and exponent.
22907         * tests/test-strtod.c (main): Enable hex float tests.
22908         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
22909         now provides.
22910
22911         Document various strtod bugs, with some fixes.
22912         * doc/posix-functions/strtod.texi (strtod): Document bugs with
22913         "-0x", "inf", "nan", and hex constants.
22914         * doc/posix-functions/atof.texi (atof): Likewise.
22915         * modules/stdlib (Makefile.am): Support strtod.
22916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
22917         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
22918         detect additional strtod bugs.
22919         * lib/stdlib.in.h (rpl_strtod): Add declarations.
22920         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
22921         bool where appropriate.  Parse 'inf' and 'nan'.
22922         * tests/test-strtod.c: New file.
22923         * modules/strtod (Depends-on): Add stdbool, stdlib.
22924         (configure.ac): Turn on module indicator.
22925         * modules/strtod-tests: New module.
22926
22927 2008-03-29  Eric Blake  <ebb9@byu.net>
22928
22929         Fix ftell on mingw.
22930         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
22931         * modules/ftell-tests (Depends-on): Add binary-io.
22932         * modules/ftello-tests (Depends-on): Likewise.
22933         * tests/test-ftell.c (main): Enhance test to cover behavior after
22934         ungetc.  Enforce binary mode.
22935         * tests/test-ftello.c (main): Likewise.
22936
22937         Pass test-freadseek on cygwin.
22938         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
22939         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
22940         ungetc buffer.
22941
22942         * tests/test-fflush2.c (main): Fix typo.
22943
22944 2008-03-29  Bruno Haible  <bruno@clisp.org>
22945
22946         * tests/test-fflush2.c (main): Temporarily disable the contents of
22947         this test.
22948         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
22949         Reported by Eric Blake.
22950
22951 2008-03-28  Simon Josefsson  <simon@josefsson.org>
22952
22953         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
22954         (GC_SHA224_DIGEST_SIZE): Add.
22955
22956         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
22957         (gc_hash_digest_length): Likewise.
22958         (gc_hash_buffer): Likewise.
22959
22960 2008-03-25  Bruno Haible  <bruno@clisp.org>
22961
22962         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
22963         detail which gettext release to use.
22964         Reported by Simon Josefsson.
22965
22966 2008-03-26  Jim Meyering  <meyering@redhat.com>
22967
22968         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
22969         * modules/gnumakefile (clean-GNUmakefile): Also, use
22970         test ... && ... || : syntax rather than if-then ... fi.
22971
22972         gnumakefile: Don't double-quote-expand $(VPATH) value.
22973         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
22974
22975 2008-03-24  Eric Blake  <ebb9@byu.net>
22976
22977         Alter GNUmakefile to install into top directory.
22978         * modules/maintainer-makefile: Split, and add dependency...
22979         * modules/gnumakefile: to this new module.
22980         * build-aux/GNUmakefile: Move...
22981         * top/GNUmakefile: ...here.
22982         * build-aux/maint.mk: Move...
22983         * top/maint.mk: ...here.
22984         * MODULES.html.sh (Support for maintaining...): Document new
22985         module.
22986
22987 2008-03-23  Bruno Haible  <bruno@clisp.org>
22988
22989         * gnulib-tool: New options --vc-files, --no-vc-files.
22990         (func_usage): Document them.
22991         (vc_files): New variable.
22992         (func_import): Consider vc_files.
22993         (func_create_testdir): Set vc_files to empty.
22994         Suggested by Jim Meyering and Karl Berry.
22995
22996 2008-03-23  Bruno Haible  <bruno@clisp.org>
22997
22998         Fix regex compilation error on HP-UX 11.
22999         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
23000         * modules/regex (Files): Add m4/mbstate_t.m4.
23001         Reported by Ton Voon <ton.voon@altinity.com>.
23002
23003 2008-03-23  Bruno Haible  <bruno@clisp.org>
23004
23005         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
23006
23007 2008-03-23  Eric Blake  <ebb9@byu.net>
23008             Bruno Haible  <bruno@clisp.org>
23009
23010         Install files from top/ in the destination directory.
23011         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
23012         augmentation also for the files from top/.
23013         (func_import, func_create_testdir): Rewrite file names:
23014         top/filename -> filename.
23015
23016 2008-03-23  Bruno Haible  <bruno@clisp.org>
23017
23018         Tweak "gnulib --version" output.
23019         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
23020
23021 2008-03-23  Bruno Haible  <bruno@clisp.org>
23022
23023         Tweak "gnulib --version" output.
23024         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
23025         rather than contents of ChangeLog, when possible.
23026
23027 2008-03-21  Eric Blake  <ebb9@byu.net>
23028
23029         More --version tweaks.
23030         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
23031         date of last ChangeLog entry.
23032
23033 2008-03-21  Jim Meyering  <meyering@redhat.com>
23034
23035         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
23036
23037 2008-03-20  Eric Blake  <ebb9@byu.net>
23038
23039         VPATH fix.
23040         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
23041
23042 2008-03-20  Simon Josefsson  <simon@josefsson.org>
23043
23044         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
23045         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
23046
23047 2008-03-20  Eric Blake  <ebb9@byu.net>
23048
23049         Sync GNUmakefile with coreutils.
23050         * build-aux/GNUmakefile (have-Makefile): Rename...
23051         (_have-Makefile): ...to this, for namespace consideration.
23052         (GNUmakefile.cfg): Include, if present.
23053         (_autoreconf): Define a default.
23054         (_is-dist-target): New rule for rebuilds to pick up intra-release
23055         version.
23056         (maint-cfg.mk): Rename...
23057         (cfg.mk): ...to this.
23058
23059 2008-03-18  Jim Meyering  <meyering@redhat.com>
23060
23061         New script and module: mktempd
23062         * MODULES.html.sh (maint+release support): Add mktempd.
23063         * build-aux/mktempd: New file.
23064         * modules/mktempd: New file.
23065
23066 2008-03-15  Jim Meyering  <meyering@redhat.com>
23067
23068         Undo last change.
23069         * lib/sha1.c, lib/md5.c: 63 != ~63.
23070         Reported by Andreas Schwab.
23071
23072         sha1.c, md5.c: Hoist a redundant expression.
23073         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
23074         "ctx->buflen" only once, before calling *_process_block.
23075         * lib/md5.c (md5_process_bytes): Likewise.
23076
23077 2008-03-14  Eric Blake  <ebb9@byu.net>
23078
23079         Bump copyright year in files generated by gnulib-tool.
23080         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
23081         gnulib-tool, rather than hard-coding it.
23082
23083         Fix 'gnulib-tool --version' output to work with git.
23084         * gnulib-tool (func_gnulib_dir): New function, extracted from...
23085         (startup): ...here.
23086         (func_version): Use it to invoke git-version-gen, rather than
23087         relying on CVS keyword expansion.  Modernize wording.
23088         (cvsdatestamp, last_checkin_date, version): Kill unused
23089         variables.
23090
23091 2008-03-12  Jim Meyering  <meyering@redhat.com>
23092
23093         Recognize optional cast of the argument to free.
23094         * build-aux/useless-if-before-free: Update regexps.
23095
23096         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
23097
23098 2008-03-11  Bruno Haible  <bruno@clisp.org>
23099
23100         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
23101         by a single package.
23102         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
23103         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
23104         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
23105         Reported by Sam Steingold <sds@gnu.org>.
23106
23107 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23108
23109         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
23110         repositories.
23111
23112 2008-03-11  Bruno Haible  <bruno@clisp.org>
23113
23114         Avoid conflicts between local macro definitions.
23115         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23116         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
23117
23118 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
23119             Bruno Haible  <bruno@clisp.org>
23120
23121         Make va_copy work with some version of xlc on AIX 5.1.
23122         * lib/stdarg.in.h: New file.
23123         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
23124         On AIX, use a <stdarg.h> file substitute.
23125         * modules/stdarg (Files): Add lib/stdarg.in.h.
23126         (Depends-on): Add include_next.
23127         (Makefile.am): Build a stdarg.h substitute if requested.
23128         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
23129
23130 2008-03-10  Bruno Haible  <bruno@clisp.org>
23131
23132         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
23133         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23134         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
23135
23136 2008-03-10  Bruno Haible  <bruno@clisp.org>
23137
23138         * modules/stdlib (Depends-on): Add include_next, remove
23139         absolute-header.
23140
23141 2008-03-09  Bruno Haible  <bruno@clisp.org>
23142
23143         * lib/freadahead.h (freadahead): Document more precisely.
23144         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
23145         the sum of both buffer sizes.
23146         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
23147         * NEWS: Document the change.
23148
23149 2008-03-09  Bruno Haible  <bruno@clisp.org>
23150
23151         Extend freadptr to return also the buffer size.
23152         * lib/freadptr.h (freadptr): Add sizep argument.
23153         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
23154         (freadptr): Add sizep argument. Determine buffer size like freadahead
23155         does.
23156         * tests/test-freadptr.c: Don't include freadahead.h.
23157         (main): Adapt for new calling convention of freadptr.
23158         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
23159         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
23160         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
23161         tests/test-freadptr2.sh.
23162         (Depends): Remove freadahead.
23163         (TESTS): Add test-freadptr2.sh.
23164         (check_PROGRAMS): Add test-freadptr2.
23165
23166 2008-03-09  Bruno Haible  <bruno@clisp.org>
23167
23168         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
23169         Report and solution by Simon Josefsson.
23170
23171 2008-03-06  Bruno Haible  <bruno@clisp.org>
23172
23173         Make fflush after ungetc work on BSD platforms.
23174         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
23175         * tests/test-fflush2.c: New file.
23176         * tests/test-fflush2.sh: New file.
23177         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
23178         tests/test-fflush2.c.
23179         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
23180         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
23181
23182 2008-03-06  Eric Blake  <ebb9@byu.net>
23183
23184         Likewise for ftello.
23185         * modules/ftello (Dependencies): Add extensions.
23186         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
23187
23188 2008-03-06  Bruno Haible  <bruno@clisp.org>
23189
23190         * modules/fseeko (Dependencies): Add extensions.
23191         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
23192         Needed on glibc systems.
23193
23194 2008-03-06  Bruno Haible  <bruno@clisp.org>
23195
23196         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
23197         email address.
23198         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23199
23200 2008-03-06  Bruno Haible  <bruno@clisp.org>
23201
23202         * users.txt: Add libgnupdf.
23203
23204 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23205
23206         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
23207         (Header File Substitutes, Function Substitutes,
23208         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
23209         (Build robot for gnulib): Fix typo.
23210
23211 2008-03-06  Bruno Haible  <bruno@clisp.org>
23212
23213         * doc/gnulib-tool.texi (VCS Issues): Small updates.
23214         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23215
23216 2008-03-06  Bruno Haible  <bruno@clisp.org>
23217
23218         * doc/func.texi: New file, extracted from doc/gnulib.texi.
23219         * doc/gnulib.texi: Include it.
23220
23221 2008-03-06  Simon Josefsson  <simon@josefsson.org>
23222
23223         * modules/func (License): Change license to unlimited; there was
23224         no LGPL parts in the module anyway.
23225
23226 2008-03-06  Simon Josefsson  <simon@josefsson.org>
23227
23228         * modules/__func__: Renamed to modules/func.
23229         * modules/__func__-tests: Renamed to modules/func-tests.
23230         * tests/test-__func__.c: Renamed to tests/test-func.c.
23231         * m4/__func__.m4: Renamed to m4/func.m4.
23232         * doc/gnulib.texi (__func__): Section renamed to func.
23233         Suggested by Eric Blake <ebb9@byu.net>.
23234
23235 2008-03-06  Simon Josefsson  <simon@josefsson.org>
23236
23237         * doc/gnulib.texi (__func__): Use C99 terminology when talking
23238         about __func__.  Make example self-contained.  Suggested by Eric
23239         Blake <ebb9@byu.net>.
23240
23241         * tests/test-__func__.c (main): Avoid extraneous () around __func.
23242         Suggested by Eric Blake <ebb9@byu.net>.
23243
23244 2008-03-06  Simon Josefsson  <simon@josefsson.org>
23245
23246         * modules/__func__: New file.
23247         * modules/__func__-tests: New file.
23248         * tests/test-__func__.c: New file.
23249         * m4/__func__.m4: New file.
23250         * doc/gnulib.texi (__func__): Document __func__ module.
23251
23252 2008-03-05  Simon Josefsson  <simon@josefsson.org>
23253
23254         * modules/byteswap (License): Re-license as LGPLv2+.
23255
23256 2008-03-05  Simon Josefsson  <simon@josefsson.org>
23257
23258         * doc/Makefile: Add pdf target.
23259
23260 2008-03-05  Simon Josefsson  <simon@josefsson.org>
23261
23262         * modules/inline (License): Use 'unlimited', since there are only
23263         *.m4 files in this module.
23264
23265 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
23266             Bruno Haible  <bruno@clisp.org>
23267
23268         Add support for HP C 7.1 on OpenVMS 8.3.
23269         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
23270
23271 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
23272
23273         Update VMS specifics.
23274         * lib/getopt.c [VMS]: Remove include of unixlib.h.
23275
23276 2008-03-02  Jim Meyering  <meyering@redhat.com>
23277
23278         Remove the last dependency on the "free" module.
23279         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
23280         Reported by Bob Proulx.
23281
23282         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
23283
23284         Remove useless "if" tests before free.  Deprecate "free" module.
23285         * doc/posix-functions/free.texi: Mention that this
23286         module is no longer useful.
23287         * modules/free (Notice): Say this module is obsolete.
23288         * modules/readutmp (Depends-on): Remove free.
23289         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
23290         * lib/putenv.c (putenv): Likewise.
23291         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
23292         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
23293         * tests/test-c-strcasestr.c (main): Likewise.
23294         * tests/test-c-strstr.c (main): Likewise.
23295         * tests/test-mbscasestr1.c (main): Likewise.
23296         * tests/test-mbscasestr2.c (main): Likewise.
23297         * tests/test-mbsstr1.c (main): Likewise.
23298         * tests/test-mbsstr2.c (main): Likewise.
23299         * tests/test-memmem.c (main): Likewise.
23300         * tests/test-strcasestr.c (main): Likewise.
23301         * tests/test-striconv.c (main): Likewise.
23302         * tests/test-striconveh.c (main): Likewise.
23303         * tests/test-striconveha.c (main): Likewise.
23304         * tests/test-strstr.c (main): Likewise.
23305
23306         * build-aux/git-version-gen: Adjust a comment and the Usage string.
23307
23308         bootstrap: sync from coreutils again
23309         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
23310
23311 2008-03-01  Jim Meyering  <meyering@redhat.com>
23312
23313         bootstrap: sync from coreutils
23314         * build-aux/bootstrap (update_po_files): Copy a .po file into place
23315         also when the target doesn't exist.
23316
23317 2008-03-01  Eric Blake  <ebb9@byu.net>
23318
23319         Fix bugs in last patch.
23320         * lib/memchr2.c (memchr2): Fix typo.
23321         * tests/test-memchr2.c: Test previous bug, and don't use GNU
23322         extension.
23323         Reported by Bruce Korb.
23324
23325         New module 'memchr2'.
23326         * modules/memchr2: New file.
23327         * modules/memchr2-tests: Likewise.
23328         * lib/memchr2.h: Likewise.
23329         * lib/memchr2.c: Likewise, based on memchr.c.
23330         * tests/test-memchr2.c: New test.
23331         * MODULES.html.sh (String handling): Add memchr2.
23332
23333 2008-02-29  Bruno Haible  <bruno@clisp.org>
23334
23335         * modules/freadseek-tests: New file.
23336         * tests/test-freadseek.sh: New file.
23337         * tests/test-freadseek.c: New file.
23338
23339         New module 'freadseek'.
23340         * modules/freadseek: New file.
23341         * lib/freadseek.h: New file.
23342         * lib/freadseek.c: New file.
23343         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
23344
23345 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
23346
23347         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
23348         wydawca.
23349
23350         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
23351         program_invocation_name and program_invocation_short_name are
23352         present.
23353
23354 2008-02-28  Bruno Haible  <bruno@clisp.org>
23355
23356         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
23357         * tests/test-freadptr.sh: Also test non-seekable stdin.
23358
23359 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
23360
23361         * build-aux/bootstrap (source_base, m4_base)
23362         (doc_base, tests_base): New variables.
23363         (gnulib_tool_options): Do not hardcode base directories, use
23364         the above variables instead.
23365
23366 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
23367
23368         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
23369
23370 2008-02-28  Bruno Haible  <bruno@clisp.org>
23371
23372         * modules/freadptr-tests: New file.
23373         * tests/test-freadptr.sh: New file.
23374         * tests/test-freadptr.c: New file.
23375
23376         New module 'freadptr'.
23377         * modules/freadptr: New file.
23378         * lib/freadptr.h: New file.
23379         * lib/freadptr.c: New file.
23380         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
23381
23382 2008-02-26  Karl Berry  <karl@freefriends.org>
23383
23384         Sync from Libtool:
23385         * libltdl/argz.c (argz_add, argz_count): New functions.
23386         * libltdl/argz.in.h: Declare them.
23387         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
23388
23389 2008-02-22  Bruno Haible  <bruno@clisp.org>
23390
23391         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
23392         is a pointer type.  Needed for HP-UX 10.
23393         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
23394         * doc/posix-functions/gmtime_r.texi: Likewise.
23395         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
23396
23397 2008-02-24  Bruno Haible  <bruno@clisp.org>
23398
23399         * modules/environ-tests: New file.
23400         * tests/test-environ.c: New file.
23401
23402         New module 'environ'.
23403         * modules/environ: New file.
23404         * lib/unistd.in.h (environ): New declaration.
23405         * m4/environ.m4: New file.
23406         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
23407         after use.
23408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
23409         HAVE_DECL_ENVIRON.
23410         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
23411         HAVE_DECL_ENVIRON.
23412         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
23413         wrong claim that 'environ' is missing on some systems.
23414         * modules/execute (Depends-on): Add environ.
23415         * lib/execute.c (environ): Remove fallback declaration.
23416         * modules/pipe (Depends-on): Add environ.
23417         * lib/pipe.c (environ): Remove fallback declaration.
23418         * modules/setenv (Depends-on): Add environ.
23419         * lib/setenv.c (environ): Remove fallback declaration.
23420         * modules/unsetenv (Depends-on): Add environ.
23421         * lib/unsetenv.c (environ): Remove fallback declaration.
23422         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
23423         m4/environ.m4.
23424         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
23425         (gl_PREREQ_UNSETENV): Likewise.
23426
23427 2008-02-24  Bruno Haible  <bruno@clisp.org>
23428
23429         * doc/posix-functions/environ.texi: Document the MacOS X problem.
23430
23431 2008-02-20  Bob Proulx  <bob@proulx.com>
23432
23433         Enable use of older two part flavor 'git describe'.
23434         * build-aux/git-version-gen: If using the older two part flavor of
23435         git version then recreate the third part now present in the
23436         newer three part flavor of git describe.
23437
23438 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
23439
23440         * lib/fts.c (fts_build): Typo correction to comment.
23441
23442 2008-02-17  Bruno Haible  <bruno@clisp.org>
23443
23444         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
23445         generating no-op conflicts.
23446
23447 2008-02-17  Bruno Haible  <bruno@clisp.org>
23448
23449         Speed up by 10%.
23450         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
23451         result_entries, rather than an index-based loop.
23452
23453 2008-02-17  Bruno Haible  <bruno@clisp.org>
23454
23455         Speed up by 25%.
23456         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
23457         'hashcode_cached'.
23458         (entry_create): New function.
23459         (entry_hashcode): Use the cached hashcode if possible.
23460         (read_changelog_file, try_split_merged_entry): Use entry_create.
23461
23462 2008-02-17  Bruno Haible  <bruno@clisp.org>
23463
23464         Speed up from O(n^2) to O(n) for long ChangeLog files.
23465         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
23466         (read_changelog_file): Change implementation of entries_reversed list
23467         to rbtreehash.
23468         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
23469
23470 2008-02-17  Bruno Haible  <bruno@clisp.org>
23471
23472         New option --split-merged-entry.
23473         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
23474         (find_paragraph_end, try_split_merged_entry): New functions.
23475         (long_options): Add option --split-merged-entry.
23476         (usage): Document option --split-merged-entry.
23477         (main): Implement option --split-merged-entry.
23478         Reported by Eric Blake.
23479
23480 2008-02-17  Bruno Haible  <bruno@clisp.org>
23481
23482         * lib/git-merge-changelog.c: Include c-strstr.h.
23483         (main): Support the "git pull --rebase" situation.
23484         * modules/git-merge-changelog (Depends-on): Add c-strstr.
23485         Reported by Eric Blake.
23486
23487 2008-02-16  Eric Blake  <ebb9@byu.net>
23488
23489         Avoid doubling \ in common case of "c-maybe" quoting style.
23490         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
23491         eliding outer quotes.
23492         * lib/quotearg.h: Document this.
23493         * tests/test-quotearg.c (result_strings, inputs, results_g)
23494         (flag_results, locale_results): Test it by adding a new string to
23495         each test group.
23496         (compare_strings): Test new string.
23497
23498 2008-02-13  Eric Blake  <ebb9@byu.net>
23499
23500         Avoid trigraph quoting in default output.
23501         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
23502         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
23503         unless explicitly requested.
23504         * tests/test-quotearg.c (flag_results, main): Add additional tests.
23505
23506 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
23507
23508         Don't rely on signed integer overflowing to negative value.
23509         * lib/getugroups.c (getugroups): Include <limits.h>.
23510         Instead, compare against INT_MAX, and increment only if the test passes.
23511
23512 2008-02-13  Jim Meyering  <meyering@redhat.com>
23513         and Eric Blake  <ebb9@byu.net>
23514
23515         Avoid shadowing warning and compile errors on Linux.
23516         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
23517         forwarding macros on Linux.
23518         (dcgettext): Define a stub, for Linux.
23519         (results_g, main): Avoid warnings.
23520
23521 2008-02-12  Eric Blake  <ebb9@byu.net>
23522
23523         Silence warning in last patch.
23524         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
23525
23526         Quotearg part 4: add tests, fix c-maybe colon quoting.
23527         * lib/quotearg.h: Improve documentation.
23528         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
23529         escapes when adding outer quotes.  When quoting trigraphs, use
23530         valid C notation.  When quoting NUL, omit extra characters if next
23531         character is not digit.  Alter prototype.
23532         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
23533         callers.
23534         * modules/quotearg-tests: New module.
23535         * tests/test-quotearg.c: New test.
23536
23537 2008-02-07  Eric Blake  <ebb9@byu.net>
23538
23539         Quotearg part 3: add flag to control outer quote elision.
23540         * lib/quotearg.h (c_maybe_quoting_style): New style.
23541         (enum quoting_flags): Better documentation of flags.
23542         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
23543         c-maybe style.
23544         (quotearg_buffer_restyled): Handle new flag to elide outer
23545         quotes.
23546
23547         Quotearg part 2: add flag that can control NUL elision.
23548         * lib/quotearg.h (set_quoting_flags): New prototype.
23549         * lib/quotearg.c (struct quoting_options): Add flag field.
23550         (set_quoting_flags): New function.
23551         (quotearg_buffer_restyled): Add flags parameter.
23552         (quotearg_alloc_mem): Set the flag if length cannot be returned.
23553         (quotearg_n_options): Set the flag, since length cannot be
23554         returned.
23555         (quoting_options_from_style): Default flags correctly.
23556
23557         Quotearg part 1: more wrappers, restore quotearg_char state.
23558         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
23559         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
23560         (quotearg_colon_mem): New wrappers.
23561         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
23562         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
23563         functions.
23564         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
23565         (quotearg_colon_mem): New functions.
23566
23567 2008-02-11  Bruno Haible  <bruno@clisp.org>
23568
23569         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
23570         library in the current directory: it does not work with parallel make.
23571         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23572
23573 2008-02-11  Bruno Haible  <bruno@clisp.org>
23574
23575         * .gitattributes: New file.
23576
23577 2008-02-11  Jim Meyering  <meyering@redhat.com>
23578
23579         useless-if-before-free: Fix reversed exit values.
23580         * build-aux/useless-if-before-free: Use correct values
23581         for EXIT_MATCH and EXIT_NO_MATCH.
23582
23583         * build-aux/useless-if-before-free: Close stdout carefully.
23584
23585 2008-02-10  Bruno Haible  <bruno@clisp.org>
23586
23587         New module 'git-merge-changelog'.
23588         * modules/git-merge-changelog: New file.
23589         * lib/git-merge-changelog.c: New file.
23590
23591 2008-02-10  Jim Meyering  <meyering@redhat.com>
23592
23593         useless-if-before-free: New option: --list (-l).
23594
23595         useless-if-before-free: Don't exit immediately upon open failure.
23596         * build-aux/useless-if-before-free: Exit 2 for errors.
23597         Upon failure to open a file, don't exit immediately.
23598         Rather, just warn and continue with any remaining files.
23599
23600 2008-02-10  Bruno Haible  <bruno@clisp.org>
23601
23602         New abstract list operation 'node_set_value'.
23603         * lib/gl_list.h (gl_list_node_set_value): New function.
23604         (struct gl_list_implementation): New field node_set_value.
23605         * lib/gl_list.c (gl_list_node_set_value): New function.
23606         * lib/gl_array_list.c (gl_array_node_set_value): New function.
23607         (gl_array_list_implementation): Update.
23608         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
23609         (gl_carray_list_implementation): Update.
23610         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
23611         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23612         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23613         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
23614         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23615         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23616         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23617         Update.
23618         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
23619         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
23620         (gl_sublist_list_implementation): Update.
23621
23622 2008-02-10  Bruno Haible  <bruno@clisp.org>
23623
23624         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
23625         Needed when ELEMENT is #defined to 'some_type *'.
23626
23627 2008-02-10  Jim Meyering  <meyering@redhat.com>
23628
23629         New script and module: useless-if-before-free
23630         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
23631         * build-aux/useless-if-before-free: New file.
23632         * modules/useless-if-before-free: New file.
23633
23634         * build-aux/gitlog-to-changelog: Use committer date, not author date.
23635
23636         xstrtol_error: Fix typo.
23637         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
23638         s/exit_failure/exit_status/.
23639
23640 2008-02-09  Jim Meyering  <meyering@redhat.com>
23641
23642         New script and module: gitlog-to-changelog
23643         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
23644         * modules/gitlog-to-changelog: New file.
23645         * build-aux/gitlog-to-changelog: New file.
23646
23647 2008-02-08  Jim Meyering  <meyering@redhat.com>
23648
23649         Avoid two "parameter unused" warnings.
23650         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
23651         Mark "st" as used.
23652
23653         Use "git COMMAND", not "git-COMMAND".
23654         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
23655         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
23656         * build-aux/git-version-gen: Use "git status", not "git-status".
23657
23658 2008-02-07  Bruno Haible  <bruno@clisp.org>
23659
23660         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
23661         Avoids a crash on Windows Vista.
23662         Reported by Adam Strzelecki <ono@java.pl> via
23663         Simon Josefsson <simon@josefsson.org>.
23664
23665 2008-02-06  Bruno Haible  <bruno@clisp.org>
23666
23667         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
23668         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
23669         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
23670         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
23671         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23672         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23673         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
23674         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
23675         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23676         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23677         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23678         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23679         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23680         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23681         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23682         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
23683         left-adjust flag.
23684         * tests/test-snprintf-posix.h (test_function): Likewise.
23685         * tests/test-sprintf-posix.h (test_function): Likewise.
23686         * tests/test-vasprintf-posix.c (test_function): Likewise.
23687         * doc/posix-functions/fprintf.texi: Update.
23688         * doc/posix-functions/printf.texi: Update.
23689         * doc/posix-functions/snprintf.texi: Update.
23690         * doc/posix-functions/sprintf.texi: Update.
23691         * doc/posix-functions/vfprintf.texi: Update.
23692         * doc/posix-functions/vprintf.texi: Update.
23693         * doc/posix-functions/vsnprintf.texi: Update.
23694         * doc/posix-functions/vsprintf.texi: Update.
23695         Reported by Peter Fales <psfales@alcatel-lucent.com>.
23696
23697 2008-02-06  Bruno Haible  <bruno@clisp.org>
23698
23699         Fix bug introduced on 2008-01-26.
23700         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
23701
23702 2008-02-06  Bruno Haible  <bruno@clisp.org>
23703
23704         Fix bug introduced on 2007-06-10.
23705         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
23706         !NEED_PRINTF_FLAG_ZERO.
23707
23708 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
23709
23710         getloadavg: use libperfstat on AIX5
23711         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
23712
23713 2008-02-03  Bruno Haible  <bruno@clisp.org>
23714
23715         * lib/diffseq.h: Add comments about required #includes.
23716         Reported by Michael Biggs <gnulib@doubleplum.net>.
23717
23718 2008-02-01  Bruno Haible  <bruno@clisp.org>
23719
23720         * users.txt: Add gnuit.
23721
23722 2008-01-31  Bruno Haible  <bruno@clisp.org>
23723
23724         * lib/md4.c (set_uint32): Mark as inline.
23725         * lib/md5.c (set_uint32): Likewise.
23726         * lib/sha1.c (set_uint32): Likewise.
23727         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
23728         * m4/md5.m4 (gl_MD5): Likewise.
23729         * m4/sha1.m4 (gl_SHA1): Likewise.
23730
23731 2008-01-31  Jim Meyering  <meyering@redhat.com>
23732
23733         Use "sizeof VAR", rather than a literal "4".
23734         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
23735         * lib/md4.c (md4_read_ctx): Likewise.
23736         * lib/sha1.c (sha1_read_ctx): Likewise.
23737
23738 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23739
23740         * tests/test-sha1.c: New file, based on test-md5.c.
23741
23742         * modules/crypto/sha1-tests: New file.
23743
23744 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23745
23746         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
23747
23748 2008-01-31  Jim Meyering  <meyering@redhat.com>
23749
23750         Prefer "sizeof v" over the equivalent "4".
23751         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
23752         * lib/md5.c (set_uint32): Likewise.
23753         * lib/sha1.c (set_uint32): Likewise.
23754
23755 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23756
23757         * lib/sha1.c (set_uint32): Mark function as static.
23758
23759 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23760
23761         md2: clarify comments to say that alignment is not required.
23762         * lib/md2.h: Remove warning about alignment in comment.
23763         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
23764         never been required.
23765
23766 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23767
23768         md4: adapt alignment constraint fix from sha1.
23769         * lib/md4.c (set_uint32): New function, from sha1.c
23770         (md4_read_ctx): Use it.
23771         (md4_finish_ctx): Doc fix.
23772         * lib/md4.h: Doc fix.
23773
23774 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23775
23776         md5: adapt alignment constraint fix from sha1.
23777         * lib/md5.c (set_uint32): New function, from sha1.c
23778         (md5_read_ctx): Use it.
23779         (md5_finish_ctx): Doc fix.
23780         * lib/md5.h: Doc fix.
23781
23782 2008-01-30  Peter Palfrader  <weasel@debian.org>
23783
23784         sha1: remove the result buffer alignment constraint
23785         * lib/sha1.c (set_uint32): New function.
23786         (sha1_read_ctx): Rewrite to remove the result buffer alignment
23787         constraint.
23788         (sha1_finish_ctx): Remove comment warning about alignment constraint.
23789         * lib/sha1.h: Likewise.
23790
23791 2008-01-30  Andreas Schwab  <schwab@suse.de>
23792             Bruno Haible  <bruno@clisp.org>
23793
23794         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
23795         correct definition of LDBL_MIN_EXP.
23796
23797 2008-01-30  Karl Berry  <karl@gnu.org>
23798
23799         * config/srclist-update: try to preserve x bit on updates.
23800         * config/srclistvars.sh: update for karl.
23801
23802 2008-01-29  Jim Meyering  <meyering@redhat.com>
23803
23804         vasnprintf.c: Avoid warning about unused label
23805         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
23806         "overflow" label definition and associated code with the
23807         same cpp condition that guards the sole use of that label.
23808
23809 2008-01-26  Bruno Haible  <bruno@clisp.org>
23810
23811         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
23812         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
23813         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
23814         * lib/isnanl-nolibm.h (isnanl): Likewise.
23815         Reported by Paul Eggert <eggert@cs.ucla.edu>.
23816
23817 2008-01-26  Bruno Haible  <bruno@clisp.org>
23818
23819         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
23820         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
23821
23822 2008-01-26  Bruno Haible  <bruno@clisp.org>
23823
23824         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
23825         GCC >= 4.0 built-in.
23826         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
23827
23828 2008-01-26  Bruno Haible  <bruno@clisp.org>
23829
23830         Rename isnan, applicable to 'double' only, to isnand.
23831         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
23832         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
23833         (configure.ac): Update.
23834         (Include): Replace "isnan.h" with "isnand.h".
23835         * m4/isnand.m4: Renamed from m4/isnan.m4.
23836         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
23837         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
23838         instead of isnan.c.
23839         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
23840         instead of HAVE_ISNAN_IN_LIBC.
23841         (isnand): Renamed from isnan.
23842         * lib/isnand.c: New file.
23843         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
23844         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
23845         (Makefile.am): Update.
23846         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
23847         Include isnand.h instead of isnan.h.
23848         (main): Test isnand instead of isnan.
23849         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
23850         isnan-nolibm.
23851         * modules/frexp (Depends-on): Likewise.
23852         * modules/frexp-tests (Depends-on): Likewise.
23853         * modules/frexp-nolibm (Depends-on): Likewise.
23854         * modules/frexp-nolibm-tests (Depends-on): Likewise.
23855         * modules/isfinite (Depends-on): Likewise.
23856         * modules/round-tests (Depends-on): Likewise.
23857         * modules/signbit (Depends-on): Likewise.
23858         * modules/signbit-tests (Depends-on): Likewise.
23859         * modules/snprintf-posix (Depends-on): Likewise.
23860         * modules/sprintf-posix (Depends-on): Likewise.
23861         * modules/trunc-tests (Depends-on): Likewise.
23862         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23863         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23864         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23865         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23866         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23867         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23868         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23869         * modules/vasnprintf-posix (Depends-on): Likewise.
23870         * modules/vasprintf-posix (Depends-on): Likewise.
23871         * modules/vfprintf-posix (Depends-on): Likewise.
23872         * modules/vsnprintf-posix (Depends-on): Likewise.
23873         * modules/vsprintf-posix (Depends-on): Likewise.
23874         * lib/frexp.c: Include isnand.h instead of isnan.h.
23875         (ISNAN): Set to isnand instead of isnan.
23876         * lib/isfinite.c: Include isnand.h instead of isnan.h.
23877         (gl_isfinited): Use isnand instead of isnan.
23878         * lib/signbitd.c: Include isnand.h instead of isnan.h.
23879         (gl_signbitd): Use isnand instead of isnan.
23880         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
23881         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
23882         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
23883         (main): Use isnand instead of isnan.
23884         * tests/test-round1.c: Include isnand.h.
23885         (main): Use isnand instead of isnan.
23886         * tests/test-round2.c: Include isnand.h instead of isnan.h.
23887         (ISNAN): Set to isnand instead of isnan.
23888         * tests/test-trunc1.c: Include isnand.h.
23889         (main): Use isnand instead of isnan.
23890         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
23891         (equal): Use isnand instead of isnan.
23892         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
23893         isnand-nolibm.
23894         * NEWS: Mention the change.
23895
23896 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
23897             Bruno Haible  <bruno@clisp.org>
23898
23899         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
23900         the GCC builtins for signbits are present and set
23901         REPLACE_SIGNBIT_USING_GCC if so.
23902         * lib/math.in.h (signbit): Define using GCC builtins if
23903         REPLACE_SIGNBIT_USING_GCC is set.
23904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
23905         REPLACE_SIGNBIT_USING_GCC.
23906         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
23907
23908 2008-01-25  Jim Meyering  <meyering@redhat.com>
23909
23910         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
23911         * lib/poll.c: Include <config.h>, not "config.h".
23912         * tests/test-getaddrinfo.c: Likewise.
23913
23914 2008-01-25  Simon Josefsson  <simon@josefsson.org>
23915
23916         * modules/sockets-tests: New file.
23917
23918 2008-01-24  Simon Josefsson  <simon@josefsson.org>
23919
23920         * modules/sockets: New module, can be used to call WSA_Startup and
23921         WSA_Cleanup when needed.
23922
23923         * lib/sockets.h, lib/sockets.c: New files.
23924
23925         * m4/sockets.m4: New file.
23926
23927         * tests/test-sockets.c: New file.
23928
23929 2008-01-19  Bruno Haible  <bruno@clisp.org>
23930
23931         * doc/posix-headers: Renamed from doc/headers.
23932         * doc/posix-functions: Renamed from doc/functions.
23933         * doc/gnulib.texi: Update.
23934
23935 2008-01-19  Bruno Haible  <bruno@clisp.org>
23936
23937         * doc/glibc-functions/strcasestr.texi: Include contents of
23938         doc/functions/strcasestr.texi, fixing the list of platforms.
23939         * doc/functions/strcasestr.texi: Remove file.
23940
23941 2008-01-19  Bruno Haible  <bruno@clisp.org>
23942
23943         * doc/glibc-functions/memmem.texi: Include contents of
23944         doc/functions/memmem.texi.
23945         * doc/functions/memmem.texi: Remove file.
23946
23947 2008-01-18  Bruno Haible  <bruno@clisp.org>
23948
23949         * doc/glibc-functions/*.texi: New files.
23950         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
23951         to use the new files.
23952
23953 2008-01-17  Bruno Haible  <bruno@clisp.org>
23954
23955         * tests/test-gethostname.c (main): Fix printf statement.
23956
23957 2008-01-17  Simon Josefsson  <simon@josefsson.org>
23958
23959         * modules/gethostname-tests: New file.
23960
23961         * tests/test-gethostname.c: New file.
23962
23963 2008-01-17  Simon Josefsson  <simon@josefsson.org>
23964
23965         * lib/gethostname.c: Include string.h unconditionally, strncpy is
23966         used by the UNAME case.  Reported by Bruno Haible
23967         <bruno@clisp.org>.
23968
23969 2008-01-17  Eric Blake  <ebb9@byu.net>
23970
23971         Convert c-strcasestr to be more efficient.
23972         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
23973         (Depends-on): Add c-strcase, remove malloca, strnlen.
23974         * tests/test-c-strcasestr.c (main): Enhance test.
23975         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
23976
23977 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
23978
23979         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
23980         Use it in creating po/Makevars.
23981
23982 2008-01-15  Simon Josefsson  <simon@josefsson.org>
23983
23984         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
23985         Applications that requires it should initialize libgcrypt
23986         manually.
23987
23988 2008-01-16  Simon Josefsson  <simon@josefsson.org>
23989
23990         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
23991
23992 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
23993
23994         Fix problem with getdate on mingw32 reported by Simon Josefsson
23995         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
23996         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
23997         tzname", when deciding whether to declare tzname.
23998         * lib/strftime.c (tzname): Likewise.
23999
24000 2008-01-15  Bruno Haible  <bruno@clisp.org>
24001
24002         Work around a MacOS X 10.5 bug in frexpl().
24003         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
24004         * doc/functions/frexpl.texi: Document the bug.
24005         Reported by Elias Pipping <pipping@gentoo.org>.
24006
24007 2008-01-14  Eric Blake  <ebb9@byu.net>
24008
24009         Touch up previous patch.
24010         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
24011         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
24012
24013         Convert strcasestr module to use Two-Way algorithm.
24014         * modules/strcasestr-simple: New module, based on the old
24015         strcasestr, but with Two-Way rather than KMP.
24016         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
24017         * lib/string.in.h (rpl_strcasestr): Declare.
24018         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
24019         performance.
24020         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
24021         * modules/string (Makefile.am): Support strcasestr.
24022         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
24023         * modules/strcasestr-tests (Depends-on): Check for alarm.
24024         * tests/test-strcasestr.c: Augment test.
24025         * lib/str-two-way.h: Clean up stray macro.
24026         * NEWS: Document new module.
24027         * MODULES.html.sh (string handling): Likewise.
24028         * doc/functions/strcasestr.texi: New file.
24029         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
24030         here, since it is not a POSIX function.
24031
24032 2008-01-14  Colin Watson  <cjwatson@debian.org>
24033             Bruno Haible  <bruno@clisp.org>
24034
24035         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
24036         works fine; if not, set REPLACE_STRSIGNAL.
24037         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
24038         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24039         REPLACE_STRSIGNAL.
24040         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
24041         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
24042         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
24043
24044 2008-01-14  Bruno Haible  <bruno@clisp.org>
24045
24046         * modules/strsignal (Include): Change to <string.h>.
24047
24048 2008-01-14  Colin Watson  <cjwatson@debian.org>
24049
24050         * modules/argp (Notice): Add a notice recommending to change
24051         XGETTEXT_OPTIONS.
24052         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
24053
24054 2008-01-13  Colin Watson  <cjwatson@debian.org>
24055
24056         * modules/strsignal-tests: New file.
24057         * tests/test-strsignal.c: New file.
24058
24059         * lib/strsignal.c: New file, from glibc with modifications.
24060         * lib/siglist.h: New file, from glibc with modifications.
24061         * lib/string.in.h (strsignal): New declaration.
24062         * m4/strsignal.m4: New file.
24063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24064         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
24065         * modules/strsignal: New file.
24066         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
24067         HAVE_DECL_STRSIGNAL.
24068
24069 2008-01-13  Bruno Haible  <bruno@clisp.org>
24070
24071         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
24072         locale encoding is not ASCII. Needed for OpenBSD 4.0.
24073         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24074         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24075
24076 2008-01-13  Bruno Haible  <bruno@clisp.org>
24077
24078         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
24079         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
24080         * lib/argp.h (__attribute__): Likewise.
24081         * lib/c-stack.c (__attribute__): Likewise.
24082         * lib/error.h (__attribute__): Likewise.
24083         * lib/fts.c (__attribute__): Likewise.
24084         * lib/openat.h (__attribute__): Likewise.
24085         * lib/stdio.in.h (__attribute__): Likewise.
24086         * lib/string.in.h (__attribute__): Likewise.
24087         * lib/utimens.c (__attribute__): Likewise.
24088         * lib/vasnprintf.h (__attribute__): Likewise.
24089         * lib/xalloc.h (__attribute__): Likewise.
24090         * lib/xprintf.h (__attribute__): Likewise.
24091         * lib/xstrtol.h (__attribute__): Likewise.
24092         * lib/xvasprintf.h (__attribute__): Likewise.
24093
24094 2008-01-12  Bruno Haible  <bruno@clisp.org>
24095
24096         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
24097         * doc/glibc-headers/a.out.texi: New file.
24098         * doc/glibc-headers/aliases.texi: New file.
24099         * doc/glibc-headers/alloca.texi: New file.
24100         * doc/glibc-headers/ar.texi: New file.
24101         * doc/glibc-headers/argp.texi: New file.
24102         * doc/glibc-headers/argz.texi: New file.
24103         * doc/glibc-headers/byteswap.texi: New file.
24104         * doc/glibc-headers/crypt.texi: New file.
24105         * doc/glibc-headers/endian.texi: New file.
24106         * doc/glibc-headers/envz.texi: New file.
24107         * doc/glibc-headers/err.texi: New file.
24108         * doc/glibc-headers/error.texi: New file.
24109         * doc/glibc-headers/execinfo.texi: New file.
24110         * doc/glibc-headers/fpu_control.texi: New file.
24111         * doc/glibc-headers/fstab.texi: New file.
24112         * doc/glibc-headers/fts.texi: New file.
24113         * doc/glibc-headers/getopt.texi: New file.
24114         * doc/glibc-headers/ieee754.texi: New file.
24115         * doc/glibc-headers/ifaddrs.texi: New file.
24116         * doc/glibc-headers/libintl.texi: New file.
24117         * doc/glibc-headers/mcheck.texi: New file.
24118         * doc/glibc-headers/mntent.texi: New file.
24119         * doc/glibc-headers/obstack.texi: New file.
24120         * doc/glibc-headers/paths.texi: New file.
24121         * doc/glibc-headers/printf.texi: New file.
24122         * doc/glibc-headers/pty.texi: New file.
24123         * doc/glibc-headers/resolv.texi: New file.
24124         * doc/glibc-headers/shadow.texi: New file.
24125         * doc/glibc-headers/sysexits.texi: New file.
24126         * doc/glibc-headers/ttyent.texi: New file.
24127
24128 2008-01-12  Jim Meyering  <meyering@redhat.com>
24129
24130         announce-gen: emit Gnulib's git-based version string.
24131         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
24132         New option --gnulib-version=V, where V is expected to be
24133         the output of running git describe in the gnulib directory.
24134         (get_tool_versions): Request feedback on xdelta.  I suspect it's
24135         not useful, and plan to stop publishing an xdelta file with each
24136         coreutils release.
24137
24138         * build-aux/announce-gen: Also check for lzma-compressed files.
24139
24140 2008-01-11  Bruno Haible  <bruno@clisp.org>
24141
24142         * tests/test-memmem.c (main): Increase maximum allowed time.
24143         * tests/test-strstr.c (main): Likewise.
24144
24145 2008-01-11  Bruno Haible  <bruno@clisp.org>
24146
24147         * doc/functions/memmem.texi: Add more precisions about platforms.
24148         * doc/functions/strstr.texi: Likewise.
24149
24150 2008-01-10  Eric Blake  <ebb9@byu.net>
24151
24152         * m4/strstr.m4: Delete cruft from copy-n-paste.
24153         Reported by Bruno Haible.
24154
24155 2008-01-10  Bruno Haible  <bruno@clisp.org>
24156
24157         Make c-strstr rely on strstr.
24158         * lib/c-strstr.c: Don't include str-kmp.h.
24159         (c_strstr): Define in terms of strstr.
24160         * modules/c-strstr (Files): Remove lib/str-kmp.h.
24161         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
24162
24163 2008-01-10  Bruno Haible  <bruno@clisp.org>
24164
24165         * doc/gnulib.texi (String Functions in C Locale): New section.
24166         * doc/c-ctype.texi: New file.
24167         * doc/c-strcase.texi: New file.
24168         * doc/c-strcaseeq.texi: New file.
24169         * doc/c-strcasestr.texi: New file.
24170         * doc/c-strstr.texi: New file.
24171         * doc/c-strtod.texi: New file.
24172         * doc/c-strtold.texi: New file.
24173
24174 2008-01-10  Eric Blake  <ebb9@byu.net>
24175
24176         * lib/relocatable.h: Fix a comment.
24177
24178 2008-01-10  Eric Blake  <ebb9@byu.net>
24179
24180         Share two-way algorithm.
24181         * lib/str-two-way.h: New file, merged from...
24182         * lib/memmem.c: ...here...
24183         * lib/strstr.c: ...and here.
24184         * modules/memmem (Files): Use it.
24185         * modules/strstr (Files): Likewise.
24186
24187         Avoid quadratic strstr implementations.
24188         * lib/strstr.c: New file.
24189         * m4/strstr.m4: Likewise.
24190         * modules/strstr: Likewise.
24191         * modules/strstr-tests: Likewise.
24192         * tests/test-strstr.c: Likewise.
24193         * lib/string.in.h (rpl_strstr): Declare.
24194         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
24195         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
24196         * modules/string (Makefile.am): Likewise.
24197         * MODULES.html.sh (string handling): Mention new module.
24198         * doc/functions/strstr.texi (strstr): Document the bug.
24199
24200 2008-01-10  Bruno Haible  <bruno@clisp.org>
24201
24202         * lib/relocatable.h (relocate): State whether result is freshly
24203         allocated or not.
24204         * lib/relocatable.c (relocate): Return a freshly allocated string
24205         instead of a pointer to a privately held string.
24206         Reported by Sylvain Beucler <beuc@gnu.org>.
24207
24208 2008-01-10  Colin Watson  <cjwatson@debian.org>
24209
24210         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
24211         s/S_ISNLK/S_ISLNK/.
24212
24213 2008-01-09  Bruno Haible  <bruno@clisp.org>
24214
24215         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
24216         and other files.
24217         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
24218         if it's only a guess.
24219         * modules/memmem: Simplify by depending on memmem-simple.
24220
24221 2008-01-09  Bruno Haible  <bruno@clisp.org>
24222
24223         Work around OpenBSD 4.0 tdelete() bug.
24224         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
24225         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
24226         macros and don't redefine the enum values.
24227         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
24228         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
24229         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
24230
24231 2008-01-09  Bruno Haible  <bruno@clisp.org>
24232
24233         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
24234         (main): Don't perform the tests if setlocale did not install a UTF-8
24235         locale. Needed on OpenBSD 4.0.
24236         * modules/wcwidth-tests (Depends-on): Add localcharset.
24237
24238 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24239
24240         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
24241         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
24242         * NEWS: announce this.
24243         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
24244
24245 2008-01-09  Simon Josefsson  <simon@josefsson.org>
24246         and Eric Blake  <ebb9@byu.net>
24247
24248         Add memmem-simple module.
24249         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
24250         (gl_FUNC_MEMMEM): Separate performance from presence checks.
24251         * modules/memmem-simple: New file.
24252         * modules/memmem (Description): Tweak.
24253         * MODULES.html.sh (string handling): Mention new module.
24254         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
24255         addressed by memmem-simple.
24256         * NEWS: Document the difference.
24257
24258 2008-01-09  Eric Blake  <ebb9@byu.net>
24259
24260         Give gcc some memmem optimization hints.
24261         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
24262         (strcasestr): Declare as pure.
24263         * modules/memmem (Maintainer): Claim my implementation.
24264
24265 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24266
24267         Support AIX 6.1 and higher.
24268         * build-aux/config.libpath: Likewise.
24269         * build-aux/config.rpath: Likewise.
24270
24271 2008-01-08  Jim Meyering  <meyering@redhat.com>
24272             Bruno Haible  <bruno@clisp.org>
24273
24274         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
24275         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
24276         Reported by Peter Fales in
24277         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
24278
24279 2008-01-08  Bruno Haible  <bruno@clisp.org>
24280
24281         * modules/unictype/category-of (Depends-on): Add
24282         unictype/category-none.
24283         * modules/unictype/category-and-tests (Depends-on): Add
24284         unictype/category-{L,N,Lu,Nd}.
24285         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
24286         * modules/unictype/category-or-tests (Depends-on): Add
24287         unictype/category-{L,N}.
24288         * modules/unictype/category-name-tests (Depends-on): Add
24289         unictype/category-{Z,Nl}.
24290         Reported by Simon Josefsson.
24291
24292 2008-01-08  Bruno Haible  <bruno@clisp.org>
24293
24294         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
24295         convention better.
24296         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
24297         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
24298         Reported by Peter Miller <millerp@canb.auug.org.au>.
24299
24300 2008-01-08  Eric Blake  <ebb9@byu.net>
24301
24302         Rewrite memmem to guarantee linear complexity without malloc.
24303         * lib/memmem.c (memmem): Use Two-Way rather than
24304         Knuth-Morris-Pratt, to allow O(1) space usage.
24305         (critical_factorization, two_way_short_needle)
24306         (two_way_long_needle): New functions.
24307         (knuth_morris_pratt): Delete.
24308         * modules/memmem (Depends-on): No longer need malloca or stdbool.
24309         Add stdint.
24310         * tests/test-memmem.c (main): Add tests for periodic needle and
24311         sublinear performance.
24312         * doc/functions/memmem.texi (memmem): Document other deficiencies
24313         in cygwin and older glibc.
24314
24315 2008-01-08  Bruno Haible  <bruno@clisp.org>
24316
24317         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
24318         augmentation.
24319
24320 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
24321
24322         Add a configure time option: --disable-acl.
24323         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
24324         AC_ARG_ENABLE(acl).
24325
24326 2008-01-06  Simon Josefsson  <simon@josefsson.org>
24327
24328         * tests/test-localename.c: Don't include obsolete "setenv.h".
24329
24330         * modules/localename-tests (Depends-on): Need unsetenv.
24331
24332 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24333
24334         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
24335
24336 2008-01-06  Colin Watson  <cjwatson@debian.org>
24337
24338         * users.txt: Add man-db.
24339
24340 2008-01-07  Bruno Haible  <bruno@clisp.org>
24341
24342         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
24343         previous section name.
24344
24345 2008-01-07  Bruno Haible  <bruno@clisp.org>
24346
24347         * lib/progname.c (set_program_name): Don't strip off a leading
24348         "lt-" prefix outside a .libs directory.
24349         Suggested by Paul Eggert.
24350
24351 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
24352             Bruno Haible  <bruno@clisp.org>
24353
24354         Improve memory cleanup in 'relocatable' module.
24355         * lib/relocatable.h (compute_curr_prefix): Change return type to
24356         'char *'.
24357         * lib/relocatable.c (compute_curr_prefix): Change return type to
24358         'char *'. Free curr_installdir after use.
24359         (relocate): Free curr_prefix_better after use.
24360         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
24361
24362 2008-01-01  Bruno Haible  <bruno@clisp.org>
24363
24364         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
24365         failure on older glibc systems.
24366         Reported by Peter Fales <psfales@alcatel-lucent.com>.
24367
24368 2008-01-05  Eric Blake  <ebb9@byu.net>
24369
24370         Avoid quadratic system memmem.
24371         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
24372         Reported by Ralf Wildenhues.
24373
24374         Fix memmem test for mingw.
24375         * modules/memmem-tests (configure.ac): Check for alarm.
24376         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
24377         it.
24378         * doc/functions/memmem.texi: New file.
24379         * doc/gnulib.texi (Function Substitutes): Add memmem.
24380         Reported by Bruno Haible.
24381
24382 2008-01-04  Bruno Haible  <bruno@clisp.org>
24383
24384         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
24385         Require gl_HEADER_STRINGS_H_DEFAULTS, not
24386         gl_HEADER_STRING_H_DEFAULTS.
24387
24388 2008-01-04  Eric Blake  <ebb9@byu.net>
24389
24390         Shorten duration of memmem test.
24391         * tests/test-memmem.c (main): Use alarm to declare failure if test
24392         is taking too long.
24393         Reported by Ralf Wildenhues.
24394
24395 2007-12-21  Simon Josefsson  <simon@josefsson.org>
24396
24397         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
24398         string, needed by strerror.
24399
24400 2008-01-03  Colin Watson  <cjwatson@debian.org>
24401             Bruno Haible  <bruno@clisp.org>
24402
24403         * doc/gnulib-tool.texi (Localization): New section.
24404
24405 2008-01-02  Bruno Haible  <bruno@clisp.org>
24406
24407         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
24408         variables to 'unsigned char *' type.
24409         Reported by Paul Eggert.
24410
24411 2008-01-02  Jim Meyering  <jim@meyering.net>
24412
24413         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
24414
24415 2007-12-31  Jim Meyering  <jim@meyering.net>
24416
24417         Avoid use of private FTS type name.
24418         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
24419
24420 2007-12-30  Karl Berry  <karl@gnu.org>
24421
24422         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
24423         work around defect in Texinfo and/or the standalone Info browser.
24424
24425 2007-12-30  Bruno Haible  <bruno@clisp.org>
24426
24427         Unify 5 copies of the KMP code.
24428         * lib/str-kmp.h: New file.
24429         * lib/c-strcasestr.c: Include str-kmp.h.
24430         (knuth_morris_pratt): Remove function.
24431         (c_strcasestr): Update.
24432         * lib/c-strstr.c: Include str-kmp.h.
24433         (knuth_morris_pratt): Remove function.
24434         (c_strcasestr): Update.
24435         * lib/mbscasestr.c: Include str-kmp.h.
24436         (knuth_morris_pratt_unibyte): Remove function.
24437         * lib/mbsstr.c: Include str-kmp.h.
24438         (knuth_morris_pratt_unibyte): Remove function.
24439         * lib/strcasestr.c: Include str-kmp.h.
24440         (knuth_morris_pratt): Remove function.
24441         (strcasestr): Update.
24442         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
24443         * modules/c-strstr (Files): Likewise.
24444         * modules/mbscasestr (Files): Likewise.
24445         * modules/mbsstr (Files): Likewise.
24446         * modules/strcasestr (Files): Likewise.
24447         Suggested by Paul Eggert.
24448
24449 2007-12-30  Bruno Haible  <bruno@clisp.org>
24450
24451         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
24452         defined.
24453
24454 2007-12-30  Bruno Haible  <bruno@clisp.org>
24455
24456         * lib/xmalloca.h: Include xalloc.h.
24457         (xnmalloca): New macro.
24458
24459 2007-12-30  Bruno Haible  <bruno@clisp.org>
24460
24461         * lib/malloca.h (nmalloca): New macro.
24462         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
24463         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
24464         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
24465         knuth_morris_pratt_multibyte): Likewise.
24466         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
24467         knuth_morris_pratt_multibyte): Likewise.
24468         * lib/memmem.c (knuth_morris_pratt): Likewise.
24469         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
24470
24471 2007-12-25  Bruno Haible  <bruno@clisp.org>
24472
24473         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
24474         * lib/glob.c: Don't include openat.h.
24475         (link_exists2_p): Add back the code that deals with the
24476         !GLOB_ALTDIRFUNC case.
24477         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
24478         let it do the filename concatenation.
24479         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
24480         * modules/glob (Depends-on): Remove openat.
24481
24482 2007-12-31  Bruno Haible  <bruno@clisp.org>
24483
24484         * modules/dirfd (License): Change to LGPLv2+.
24485         Approved by Jim Meyering.
24486
24487 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24488
24489         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
24490         when multiplying M by sizeof (size_t).
24491
24492 2007-12-10  Martin Lambers  <marlam@marlam.de>
24493
24494         Override getpagesize on mingw.
24495         * lib/getpagesize.c: New file.
24496         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
24497         * modules/getpagesize (Files): Add lib/getpagesize.c.
24498         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
24499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24500         REPLACE_GETPAGESIZE.
24501         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
24502
24503 2007-12-25  Bruno Haible  <bruno@clisp.org>
24504
24505         * modules/localcharset (Notice): New field.
24506         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
24507         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
24508
24509 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24510             Bruno Haible  <bruno@clisp.org>
24511
24512         Avoid using the syntax symbol() in formatted documentation.
24513         * MODULES.html.sh (func_module): When replacing symbol() with a
24514         hyperlink, remove the parentheses. Show an error if some remain.
24515         Recognize and render the '...' syntax.
24516         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
24517         Rework. Add paragraph about GCC's inlining.
24518         * doc/alloca.texi: Likewise.
24519         * doc/error.texi: Remove parentheses from symbol reference.
24520         * doc/gnulib-intro.texi: Likewise.
24521         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
24522         * modules/fnmatch (Description): Reword to say "the ... function".
24523         * modules/full-read (Description): Likewise.
24524         * modules/full-write (Description): Likewise.
24525         * modules/safe-read (Description): Likewise.
24526         * modules/safe-write (Description): Likewise.
24527         * modules/strchrnul (Description): Likewise.
24528         * modules/trim (Description): Likewise.
24529         * modules/error (Description): Remove parentheses from symbol
24530         references.
24531         * modules/verror (Description): Likewise.
24532         Reported by Karl Berry.
24533
24534 2007-12-25  Bruno Haible  <bruno@clisp.org>
24535
24536         Fixup after 2007-10-16 commit.
24537         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
24538
24539 2007-12-24  Bruno Haible  <bruno@clisp.org>
24540
24541         Make --enable-relocatable work with DESTDIR.
24542         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
24543         to compute installdir from destprog.
24544         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
24545         also set the RELOC_DESTDIR variable.
24546         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
24547
24548 2007-12-24  Bruno Haible  <bruno@clisp.org>
24549
24550         Fix link error due to xalloc_die().
24551         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
24552         of xreadlink.
24553         * lib/relocwrapper.c: Update comments.
24554         * build-aux/install-reloc: Remove xreadlink.c from file list.
24555         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
24556         xreadlink.c.
24557         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
24558
24559 2007-12-24  Bruno Haible  <bruno@clisp.org>
24560
24561         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
24562         * lib/setenv.h: Remove file.
24563         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
24564         lib/setenv.h.
24565         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
24566         (Depends-on): Add stdlib.
24567         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
24568         gl_FUNC_UNSETENV.
24569         (Include): Replace setenv.h with <stdlib.h>.
24570         * modules/unsetenv: New file.
24571         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
24572         * lib/unsetenv.c: Include <stdlib.h> first.
24573         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
24574         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
24575         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
24576         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
24577         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
24578         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
24579         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
24580         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
24581         * doc/functions/unsetenv.texi: Update.
24582         * modules/xsetenv (Depends-on): Add unsetenv.
24583         * modules/getdate (Depends-on): Likewise.
24584         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
24585         * lib/xsetenv.c: Don't include setenv.h.
24586         * lib/getdate.y: Likewise.
24587         * lib/relocwrapper.c: Likewise.
24588         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
24589         (Depends-on): Add stdlib.
24590         * NEWS: Mention the changes.
24591         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
24592
24593 2007-12-23  Bruno Haible  <bruno@clisp.org>
24594
24595         * lib/memmem.c (memmem): Use lowercase variable names. Tab
24596         indentation.
24597
24598 2007-12-23  Bruno Haible  <bruno@clisp.org>
24599
24600         * lib/c-strcasestr.c: Add more comments.
24601         * lib/c-strstr.c: Likewise.
24602         * lib/mbscasestr.c: Likewise.
24603         * lib/mbsstr.c: Likewise.
24604         * lib/strcasestr.c: Likewise.
24605         * lib/memmem.c: Likewise.
24606
24607 2007-12-23  Bruno Haible  <bruno@clisp.org>
24608
24609         * tests/test-memmem.c: Include <string.h> first.
24610
24611 2007-12-22  Bruno Haible  <bruno@clisp.org>
24612
24613         * gnulib-tool (func_create_testdir): Change $auxdir while generating
24614         the contents of $testsbase.
24615         Reported by Ralf Wildenhues.
24616
24617 2007-12-22  Bruno Haible  <bruno@clisp.org>
24618
24619         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
24620         two variables local_ldadd_before, local_ldadd_last.
24621
24622 2007-12-20  Eric Blake  <ebb9@byu.net>
24623
24624         Work around circular library issue when cross-compiling.
24625         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
24626         that progname.o does not need to pull in rpl_memcmp.
24627
24628 2007-12-19  Eric Blake  <ebb9@byu.net>
24629
24630         Fix memmem to avoid O(n^2) worst-case complexity.
24631         * lib/memmem.c (knuth_morris_pratt): New function.
24632         (memmem): Use it if first few naive iterations fail.
24633         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
24634         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
24635         * modules/memchr (License): Likewise.
24636         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
24637         malloca.
24638         * tests/test-memmem.c: Rewrite, borrowing ideas from
24639         test-mbsstr1.c; the old version wouldn't even compile!
24640         * modules/memmem-tests: New file.
24641         * lib/string.in.h (rpl_memmem): Add declaration.
24642         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
24643         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
24644         REPLACE_MEMMEM.
24645
24646 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24647
24648         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
24649         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
24650         before any system include files, and undef after them all.  This
24651         should fix a problem on VMS reported by John E. Malmberg in
24652         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
24653
24654 2007-12-17  Eric Blake  <ebb9@byu.net>
24655
24656         Revert addition of verify, for BSD/OS.
24657         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
24658         can't handle large files, for the sake of obsolete platforms.
24659         * modules/fseeko (Depends-on): Remove verify.
24660         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
24661         * doc/functions/ftello.texi (ftello): Likewise.
24662         * doc/functions/fgetpos.texi (fgetpos): Likewise.
24663         Reported by Larry Jones.
24664
24665 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
24666
24667         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
24668         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
24669
24670 2007-12-17  Jim Meyering  <meyering@redhat.com>
24671
24672         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
24673         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
24674         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
24675         * modules/getcwd (Depends-on): Add openat.
24676         Reported by Petr Salinger.
24677
24678 2007-12-17  Bruno Haible  <bruno@clisp.org>
24679
24680         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
24681         avoid a segmentation fault of the configure test on x86_64 systems.
24682
24683 2007-12-15  Jim Meyering  <meyering@redhat.com>
24684
24685         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
24686
24687 2007-12-13  Eric Blake  <ebb9@byu.net>
24688
24689         Another fseek test.
24690         * tests/test-fseek.c (main): Also test ungetc handling.
24691         * tests/test-fseeko.c (main): Likewise.
24692         * modules/fseeko (Depends-on): Add verify.
24693         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
24694         large.
24695         Reported by Larry Jones.
24696
24697         Fix fseeko on mingw.
24698         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
24699         seek.
24700
24701         Beef up fseek tests.
24702         * tests/test-fseek.c (main): Also test eof handling.
24703         * tests/test-fseeko.c (main): Likewise.
24704         Reported by Larry Jones.
24705
24706 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
24707
24708         Fix fseeko on BSD-based platforms.
24709         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
24710         successful seek.
24711
24712 2007-12-12  Eric Blake  <ebb9@byu.net>
24713
24714         Allow circular dependency of separate libtests.a
24715         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
24716         when use_libtests.
24717
24718 2007-12-11  Eric Blake  <ebb9@byu.net>
24719
24720         Fix bug with -0.0L in previous patch.
24721         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
24722         * tests/test-isnan.c (main): Also test on zeroes.
24723         * tests/test-isnanf.c (main): Likewise.
24724         * tests/test-isnanl.h (main): Likewise.
24725
24726         Detect pseudo-denormals on x86 even when cross-compiling.
24727         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
24728         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
24729         invalid bit patterns that happen to satisfy ==.
24730
24731         Avoid link failures with separate libtests.a.
24732         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
24733         last, to satisfy circular dependencies.
24734
24735 2007-12-11  Eric Blake  <ebb9@byu.net>
24736         and Bruno Haible  <bruno@clisp.org>
24737
24738         Fix OpenBSD 4.0 <float.h> handling of long double.
24739         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
24740         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
24741         * doc/headers/float.texi (float.h): Document OpenBSD bug.
24742
24743 2007-12-11  Jim Meyering  <meyering@redhat.com>
24744
24745         * users.txt: Add libvirt.
24746
24747         Support versions of autoconf prior to 2.59c.
24748         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
24749         if it is not already defined.
24750
24751 2007-12-09  Bruno Haible  <bruno@clisp.org>
24752
24753         Let 'gnulib-tool --import' collect sources needed for the tests in
24754         tests/ rather than in lib/.
24755         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
24756         argument. If true, add rules to generate libtests.a, and put libtests.a
24757         into $(LDADD). Consider source files in subdirectories and set
24758         uses_subdirs.
24759         (func_emit_initmacro_start, func_emit_initmacro_end,
24760         func_emit_initmacro_done): Pass all arguments explicitly.
24761         (func_import): Determine two module lists main_modules,
24762         testsrelated_modules. Determine use_libtests. Determine two variables
24763         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
24764         instead of just sed_transform_lib_file. Determine two variables
24765         main_files and testsrelated_files. Compute 'files' as the union of
24766         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
24767         func_add_or_update. In the generated gnulib-comp.m4, collect the
24768         object files for tests/ in different variables than those for lib/.
24769         Substitute LIBTESTS_LIBDEPS.
24770         (func_create_testdir): Combine the uses_subdirs results from
24771         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
24772
24773 2007-12-09  Bruno Haible  <bruno@clisp.org>
24774
24775         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
24776         the build-aux directory.
24777
24778 2007-12-09  Bruno Haible  <bruno@clisp.org>
24779
24780         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
24781         introduced on 2006-09-09.
24782
24783 2007-12-07  Jim Meyering  <meyering@redhat.com>
24784
24785         Let these macros work also with autoconf-2.59.
24786         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
24787         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
24788         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24789
24790 2007-12-06  Jim Meyering  <meyering@redhat.com>
24791
24792         Avoid a configure-time syntax error in gl_FUNC_ACL.
24793         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
24794         function in each branch, before testing the cache variable.
24795
24796 2007-12-04  Eric Blake  <ebb9@byu.net>
24797
24798         Make scripts executable.
24799         * build-aux/config.guess: Add execute permissions.
24800         * build-aux/config.sub: Likewise.
24801         * build-aux/gendocs.sh: Likewise.
24802
24803         Fix frexp on mingw.
24804         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
24805         cross-compiling.
24806         * doc/functions/frexp.texi (frexp): Document the bug.
24807
24808         Make cygwin fseeko check more reliable.
24809         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
24810         version numbers, rather than unrelated feature check.
24811         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
24812         * doc/functions/ftello.texi (ftello): Likewise.
24813         Reported by Bruno Haible.
24814
24815         * m4/strerror.m4: Bump version number.
24816
24817 2007-12-03  Bruno Haible  <bruno@clisp.org>
24818
24819         * doc/functions/mprotect.texi: Mention the mingw problem.
24820
24821 2007-12-03  Eric Blake  <ebb9@byu.net>
24822
24823         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
24824         REPLACE_STRERROR is initialized before this macro.
24825
24826 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
24827
24828         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
24829         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
24830         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
24831         put -lsec in even for programs other than 'ls'.  This fixes a problem
24832         for gettext reported by Bruno Haible in
24833         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
24834         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
24835         Add support for Solaris 10.  This isn't efficient, but should get the
24836         job done for now.
24837
24838 2007-12-03  James Youngman  <jay@gnu.org>
24839
24840         * doc/regexprops-generic.texi: change "an close-group" to "a
24841         close-group" and "illegal" to "not allowed".
24842
24843 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24844
24845         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
24846         pr_byname.h. Needed for the rare case when the maintainer has done
24847         "make maintainer-clean" in the source directory and then attempts a
24848         build outside the source directory.
24849         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
24850         scripts_byname.h.
24851
24852 2007-12-02  Martin Lambers <marlam@marlam.de>
24853             Bruno Haible  <bruno@clisp.org>
24854
24855         * lib/getpagesize.h: Remove file.
24856         * lib/unistd.in.h: Include declaration of getpagesize here.
24857         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
24858         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
24859         HAVE_SYS_PARAM_H.
24860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
24861         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
24862         * modules/getpagesize (Files): Remove lib/getpagesize.h.
24863         (Depends-on): Add unistd.
24864         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24865         (Include): Use <unistd.h> instead of getpagesize.h.
24866         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
24867         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
24868         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
24869         gl_GETPAGESIZE invocation, already handled by module dependency.
24870         * lib/pagealign_alloc.c: Don't include getpagesize.h.
24871
24872 2007-12-02  Bruno Haible  <bruno@clisp.org>
24873
24874         * modules/strings-tests: New file.
24875         * tests/test-strings.c: New file.
24876
24877         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
24878         * lib/strings.in.h: New file.
24879         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
24880         * m4/strings_h.m4: New file.
24881         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
24882         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
24883         * modules/strings: New file.
24884         * modules/string (Makefile.am): Update.
24885         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
24886         Reported by Karl Berry.
24887
24888 2007-12-01  Eric Blake  <ebb9@byu.net>
24889
24890         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
24891         accomodate fix in cygwin 1.5.25.
24892
24893 2007-12-01  Jim Meyering  <meyering@redhat.com>
24894
24895         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
24896         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
24897         that would inhibit utf8-optimization of a regexp containing line-
24898         or buffer-anchors, e.g., `^', `$'.
24899
24900 2007-11-30  Bruno Haible  <bruno@clisp.org>
24901
24902         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
24903         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
24904         glthread_recursive_lock_init.
24905         * lib/lock.c (glthread_recursive_lock_init)
24906         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
24907         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24908
24909 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
24910
24911         New function qset_acl, like set_acl but with syscall semantics.
24912         * lib/acl.h (qset_acl): New decl.
24913         * lib/acl.c (qset_acl): New function.
24914         (set_acl): Use new function.  Use more-consistent diagnostics.
24915
24916 2007-11-28  Jim Meyering  <meyering@redhat.com>
24917
24918         * modules/physmem (License): Change from GPL to LGPLv2+.
24919
24920 2007-11-26  Bruno Haible  <bruno@clisp.org>
24921
24922         * lib/vasnprintf.c (decode_long_double): Don't abort if the
24923         'long double' type has excess precision.
24924         Reported by Jim Meyering in
24925         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
24926
24927 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24928
24929         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
24930         Sync from <http://gnu.org/licenses>.
24931         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
24932         with license text from same location.
24933         * doc/maintain.texi, doc/standards.texi:  Sync from
24934         <http://savannah.gnu.org/projects/gnustandards>.
24935
24936 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
24937         and Jim Meyering  <meyering@redhat.com>
24938
24939         Adjust getdate' grammar to accept a slightly more regular language.
24940         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
24941         Before, the former was rejected.
24942         * lib/getdate.y (digits_to_date_time): New function, factored
24943         out of ...
24944         (number): ...here.  Just call digits_to_date_time.
24945         (hybrid): New non-terminal to handle an <unsigned number,
24946         signed relative offset> sequence consistently.
24947
24948 2007-11-18  Jim Meyering  <meyering@redhat.com>
24949
24950         Pull my changes from coreutils:
24951         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
24952         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
24953         use of $gnulib_tool_option_extras, so that it's separated from the
24954         preceding argument.
24955
24956         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
24957         * build-aux/bootstrap (cp_mark_as_generated): Create any required
24958         parent destination directories before copying a file into place.
24959
24960 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
24961
24962         bootstrap: work also with 4-argument variant of AC_INIT
24963         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
24964
24965 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
24966
24967         Port test-getaddrinfo to Solaris.
24968         Problem reported by Bruno Haible in
24969         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
24970         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
24971         explanation of setting 'hints'.
24972         Don't reject an implementation merely because it returns EAI_SERVICE.
24973         (EAI_SERVICE): Define to 0 if not defined.
24974
24975 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24976
24977         The license of gnu-make and posix-shell is now "GPLed build tool".
24978         * modules/gnu-make (License): Likewise.
24979         * modules/posix-shell (License): Likewise.
24980
24981         New module posix-shell, for determining a POSIX shell
24982         or perhaps something that is close enough to a POSIX shell.
24983         * m4/posix-shell.m4: New file.
24984         * modules/posix-shell: New file.
24985
24986         * MODULES.html.sh: Mention new module.
24987
24988         New module gnu-make, for determining whether we're using GNU Make.
24989         * m4/gnu-make.m4: New file.
24990         * modules/gnu-make: New file.
24991         * MODULES.html.sh: Mention new module.
24992
24993 2007-11-14  Jim Meyering  <meyering@redhat.com>
24994
24995         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
24996         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
24997         use this macro to create a function _definition_.
24998         Remove useless "#undef ARGMATCH_DIE".
24999
25000 2007-11-14  Bruno Haible  <bruno@clisp.org>
25001
25002         * lib/config.charset: Update for OpenBSD 4.1.
25003         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
25004
25005 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
25006
25007         Document 64-bit #if problems in stdint.texi.
25008         * doc/headers/stdint.texi (stdint.h): Mention problems with
25009         64-bit-#if, and how to work around them.
25010
25011         Don't insist on 'long long int' support in the preprocessor.  It
25012         breaks too many things.  For example, PRIdMAX still uses a 'long
25013         long int' format with the latest Sun compiler, even though
25014         HAVE_LONG_LONG_INT isn't defined due to that compiler's
25015         preprocessor problem.  This causes the latest coreutils to dump
25016         core on Solaris 10 sparc with the Sun C compiler.
25017         Instead, fix the 2007-10-16 problem in a different way, by evaluating
25018         the troublesome expressions at configure-time, not at #if-time.
25019         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
25020         preprocessor.
25021         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
25022         compile-time C checks, done at 'configure'-time.
25023         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
25024         * modules/inttypes (Makefile): Substitute the new symbols that
25025         gl_INTTYPES_H now generates.
25026         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
25027
25028 2007-11-12  Bruno Haible  <bruno@clisp.org>
25029
25030         Tests for Unicode character classification functions.
25031
25032         * modules/unictype/bidicategory-byname-tests: New file.
25033         * modules/unictype/bidicategory-name-tests: New file.
25034         * modules/unictype/bidicategory-of-tests: New file.
25035         * modules/unictype/bidicategory-test-tests: New file.
25036         * modules/unictype/block-list-tests: New file.
25037         * modules/unictype/block-of-tests: New file.
25038         * modules/unictype/block-test-tests: New file.
25039         * modules/unictype/category-C-tests: New file.
25040         * modules/unictype/category-Cc-tests: New file.
25041         * modules/unictype/category-Cf-tests: New file.
25042         * modules/unictype/category-Cn-tests: New file.
25043         * modules/unictype/category-Co-tests: New file.
25044         * modules/unictype/category-Cs-tests: New file.
25045         * modules/unictype/category-L-tests: New file.
25046         * modules/unictype/category-Ll-tests: New file.
25047         * modules/unictype/category-Lm-tests: New file.
25048         * modules/unictype/category-Lo-tests: New file.
25049         * modules/unictype/category-Lt-tests: New file.
25050         * modules/unictype/category-Lu-tests: New file.
25051         * modules/unictype/category-M-tests: New file.
25052         * modules/unictype/category-Mc-tests: New file.
25053         * modules/unictype/category-Me-tests: New file.
25054         * modules/unictype/category-Mn-tests: New file.
25055         * modules/unictype/category-N-tests: New file.
25056         * modules/unictype/category-Nd-tests: New file.
25057         * modules/unictype/category-Nl-tests: New file.
25058         * modules/unictype/category-No-tests: New file.
25059         * modules/unictype/category-P-tests: New file.
25060         * modules/unictype/category-Pc-tests: New file.
25061         * modules/unictype/category-Pd-tests: New file.
25062         * modules/unictype/category-Pe-tests: New file.
25063         * modules/unictype/category-Pf-tests: New file.
25064         * modules/unictype/category-Pi-tests: New file.
25065         * modules/unictype/category-Po-tests: New file.
25066         * modules/unictype/category-Ps-tests: New file.
25067         * modules/unictype/category-S-tests: New file.
25068         * modules/unictype/category-Sc-tests: New file.
25069         * modules/unictype/category-Sk-tests: New file.
25070         * modules/unictype/category-Sm-tests: New file.
25071         * modules/unictype/category-So-tests: New file.
25072         * modules/unictype/category-Z-tests: New file.
25073         * modules/unictype/category-Zl-tests: New file.
25074         * modules/unictype/category-Zp-tests: New file.
25075         * modules/unictype/category-Zs-tests: New file.
25076         * modules/unictype/category-and-not-tests: New file.
25077         * modules/unictype/category-and-tests: New file.
25078         * modules/unictype/category-byname-tests: New file.
25079         * modules/unictype/category-name-tests: New file.
25080         * modules/unictype/category-none-tests: New file.
25081         * modules/unictype/category-of-tests: New file.
25082         * modules/unictype/category-or-tests: New file.
25083         * modules/unictype/category-test-withtable-tests: New file.
25084         * modules/unictype/combining-class-tests: New file.
25085         * modules/unictype/ctype-alnum-tests: New file.
25086         * modules/unictype/ctype-alpha-tests: New file.
25087         * modules/unictype/ctype-blank-tests: New file.
25088         * modules/unictype/ctype-cntrl-tests: New file.
25089         * modules/unictype/ctype-digit-tests: New file.
25090         * modules/unictype/ctype-graph-tests: New file.
25091         * modules/unictype/ctype-lower-tests: New file.
25092         * modules/unictype/ctype-print-tests: New file.
25093         * modules/unictype/ctype-punct-tests: New file.
25094         * modules/unictype/ctype-space-tests: New file.
25095         * modules/unictype/ctype-upper-tests: New file.
25096         * modules/unictype/ctype-xdigit-tests: New file.
25097         * modules/unictype/decimal-digit-tests: New file.
25098         * modules/unictype/digit-tests: New file.
25099         * modules/unictype/mirror-tests: New file.
25100         * modules/unictype/numeric-tests: New file.
25101         * modules/unictype/property-alphabetic-tests: New file.
25102         * modules/unictype/property-ascii-hex-digit-tests: New file.
25103         * modules/unictype/property-bidi-arabic-digit-tests: New file.
25104         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
25105         * modules/unictype/property-bidi-block-separator-tests: New file.
25106         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
25107         * modules/unictype/property-bidi-common-separator-tests: New file.
25108         * modules/unictype/property-bidi-control-tests: New file.
25109         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
25110         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
25111         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
25112         * modules/unictype/property-bidi-european-digit-tests: New file.
25113         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
25114         * modules/unictype/property-bidi-left-to-right-tests: New file.
25115         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
25116         * modules/unictype/property-bidi-other-neutral-tests: New file.
25117         * modules/unictype/property-bidi-pdf-tests: New file.
25118         * modules/unictype/property-bidi-segment-separator-tests: New file.
25119         * modules/unictype/property-bidi-whitespace-tests: New file.
25120         * modules/unictype/property-byname-tests: New file.
25121         * modules/unictype/property-combining-tests: New file.
25122         * modules/unictype/property-composite-tests: New file.
25123         * modules/unictype/property-currency-symbol-tests: New file.
25124         * modules/unictype/property-dash-tests: New file.
25125         * modules/unictype/property-decimal-digit-tests: New file.
25126         * modules/unictype/property-default-ignorable-code-point-tests: New file.
25127         * modules/unictype/property-deprecated-tests: New file.
25128         * modules/unictype/property-diacritic-tests: New file.
25129         * modules/unictype/property-extender-tests: New file.
25130         * modules/unictype/property-format-control-tests: New file.
25131         * modules/unictype/property-grapheme-base-tests: New file.
25132         * modules/unictype/property-grapheme-extend-tests: New file.
25133         * modules/unictype/property-grapheme-link-tests: New file.
25134         * modules/unictype/property-hex-digit-tests: New file.
25135         * modules/unictype/property-hyphen-tests: New file.
25136         * modules/unictype/property-id-continue-tests: New file.
25137         * modules/unictype/property-id-start-tests: New file.
25138         * modules/unictype/property-ideographic-tests: New file.
25139         * modules/unictype/property-ids-binary-operator-tests: New file.
25140         * modules/unictype/property-ids-trinary-operator-tests: New file.
25141         * modules/unictype/property-ignorable-control-tests: New file.
25142         * modules/unictype/property-iso-control-tests: New file.
25143         * modules/unictype/property-join-control-tests: New file.
25144         * modules/unictype/property-left-of-pair-tests: New file.
25145         * modules/unictype/property-line-separator-tests: New file.
25146         * modules/unictype/property-logical-order-exception-tests: New file.
25147         * modules/unictype/property-lowercase-tests: New file.
25148         * modules/unictype/property-math-tests: New file.
25149         * modules/unictype/property-non-break-tests: New file.
25150         * modules/unictype/property-not-a-character-tests: New file.
25151         * modules/unictype/property-numeric-tests: New file.
25152         * modules/unictype/property-other-alphabetic-tests: New file.
25153         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
25154         * modules/unictype/property-other-grapheme-extend-tests: New file.
25155         * modules/unictype/property-other-id-continue-tests: New file.
25156         * modules/unictype/property-other-id-start-tests: New file.
25157         * modules/unictype/property-other-lowercase-tests: New file.
25158         * modules/unictype/property-other-math-tests: New file.
25159         * modules/unictype/property-other-uppercase-tests: New file.
25160         * modules/unictype/property-paired-punctuation-tests: New file.
25161         * modules/unictype/property-paragraph-separator-tests: New file.
25162         * modules/unictype/property-pattern-syntax-tests: New file.
25163         * modules/unictype/property-pattern-white-space-tests: New file.
25164         * modules/unictype/property-private-use-tests: New file.
25165         * modules/unictype/property-punctuation-tests: New file.
25166         * modules/unictype/property-quotation-mark-tests: New file.
25167         * modules/unictype/property-radical-tests: New file.
25168         * modules/unictype/property-sentence-terminal-tests: New file.
25169         * modules/unictype/property-soft-dotted-tests: New file.
25170         * modules/unictype/property-space-tests: New file.
25171         * modules/unictype/property-terminal-punctuation-tests: New file.
25172         * modules/unictype/property-test-tests: New file.
25173         * modules/unictype/property-titlecase-tests: New file.
25174         * modules/unictype/property-unassigned-code-value-tests: New file.
25175         * modules/unictype/property-unified-ideograph-tests: New file.
25176         * modules/unictype/property-uppercase-tests: New file.
25177         * modules/unictype/property-variation-selector-tests: New file.
25178         * modules/unictype/property-white-space-tests: New file.
25179         * modules/unictype/property-xid-continue-tests: New file.
25180         * modules/unictype/property-xid-start-tests: New file.
25181         * modules/unictype/property-zero-width-tests: New file.
25182         * modules/unictype/scripts-tests: New file.
25183         * modules/unictype/syntax-c-ident-tests: New file.
25184         * modules/unictype/syntax-c-whitespace-tests: New file.
25185         * modules/unictype/syntax-java-ident-tests: New file.
25186         * modules/unictype/syntax-java-whitespace-tests: New file.
25187         * tests/unictype/test-bidi_byname.c: New file.
25188         * tests/unictype/test-bidi_name.c: New file.
25189         * tests/unictype/test-bidi_of.c: New file.
25190         * tests/unictype/test-bidi_test.c: New file.
25191         * tests/unictype/test-block_list.c: New file.
25192         * tests/unictype/test-block_of.c: New file.
25193         * tests/unictype/test-block_test.c: New file.
25194         * tests/unictype/test-categ_and.c: New file.
25195         * tests/unictype/test-categ_and_not.c: New file.
25196         * tests/unictype/test-categ_byname.c: New file.
25197         * tests/unictype/test-categ_name.c: New file.
25198         * tests/unictype/test-categ_none.c: New file.
25199         * tests/unictype/test-categ_of.c: New file.
25200         * tests/unictype/test-categ_or.c: New file.
25201         * tests/unictype/test-categ_test_withtable.c: New file.
25202         * tests/unictype/test-combining.c: New file.
25203         * tests/unictype/test-decdigit.c: New file.
25204         * tests/unictype/test-digit.c: New file.
25205         * tests/unictype/test-mirror.c: New file.
25206         * tests/unictype/test-numeric.c: New file.
25207         * tests/unictype/test-pr_byname.c: New file.
25208         * tests/unictype/test-pr_test.c: New file.
25209         * tests/unictype/test-predicate-part1.h: New file.
25210         * tests/unictype/test-predicate-part2.h: New file.
25211         * tests/unictype/test-scripts.c: New file.
25212         * tests/unictype/test-sy_c_ident.c: New file.
25213         * tests/unictype/test-sy_java_ident.c: New file.
25214
25215         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
25216         for Unicode 5.0.0.
25217         * tests/unictype/test-categ_Cc.c: Likewise.
25218         * tests/unictype/test-categ_Cf.c: Likewise.
25219         * tests/unictype/test-categ_Cn.c: Likewise.
25220         * tests/unictype/test-categ_Co.c: Likewise.
25221         * tests/unictype/test-categ_Cs.c: Likewise.
25222         * tests/unictype/test-categ_L.c: Likewise.
25223         * tests/unictype/test-categ_Ll.c: Likewise.
25224         * tests/unictype/test-categ_Lm.c: Likewise.
25225         * tests/unictype/test-categ_Lo.c: Likewise.
25226         * tests/unictype/test-categ_Lt.c: Likewise.
25227         * tests/unictype/test-categ_Lu.c: Likewise.
25228         * tests/unictype/test-categ_M.c: Likewise.
25229         * tests/unictype/test-categ_Mc.c: Likewise.
25230         * tests/unictype/test-categ_Me.c: Likewise.
25231         * tests/unictype/test-categ_Mn.c: Likewise.
25232         * tests/unictype/test-categ_N.c: Likewise.
25233         * tests/unictype/test-categ_Nd.c: Likewise.
25234         * tests/unictype/test-categ_Nl.c: Likewise.
25235         * tests/unictype/test-categ_No.c: Likewise.
25236         * tests/unictype/test-categ_P.c: Likewise.
25237         * tests/unictype/test-categ_Pc.c: Likewise.
25238         * tests/unictype/test-categ_Pd.c: Likewise.
25239         * tests/unictype/test-categ_Pe.c: Likewise.
25240         * tests/unictype/test-categ_Pf.c: Likewise.
25241         * tests/unictype/test-categ_Pi.c: Likewise.
25242         * tests/unictype/test-categ_Po.c: Likewise.
25243         * tests/unictype/test-categ_Ps.c: Likewise.
25244         * tests/unictype/test-categ_S.c: Likewise.
25245         * tests/unictype/test-categ_Sc.c: Likewise.
25246         * tests/unictype/test-categ_Sk.c: Likewise.
25247         * tests/unictype/test-categ_Sm.c: Likewise.
25248         * tests/unictype/test-categ_So.c: Likewise.
25249         * tests/unictype/test-categ_Z.c: Likewise.
25250         * tests/unictype/test-categ_Zl.c: Likewise.
25251         * tests/unictype/test-categ_Zp.c: Likewise.
25252         * tests/unictype/test-categ_Zs.c: Likewise.
25253         * tests/unictype/test-ctype_alnum.c: Likewise.
25254         * tests/unictype/test-ctype_alpha.c: Likewise.
25255         * tests/unictype/test-ctype_blank.c: Likewise.
25256         * tests/unictype/test-ctype_cntrl.c: Likewise.
25257         * tests/unictype/test-ctype_digit.c: Likewise.
25258         * tests/unictype/test-ctype_graph.c: Likewise.
25259         * tests/unictype/test-ctype_lower.c: Likewise.
25260         * tests/unictype/test-ctype_print.c: Likewise.
25261         * tests/unictype/test-ctype_punct.c: Likewise.
25262         * tests/unictype/test-ctype_space.c: Likewise.
25263         * tests/unictype/test-ctype_upper.c: Likewise.
25264         * tests/unictype/test-ctype_xdigit.c: Likewise.
25265         * tests/unictype/test-decdigit.h: Likewise.
25266         * tests/unictype/test-digit.h: Likewise.
25267         * tests/unictype/test-numeric.h: Likewise.
25268         * tests/unictype/test-pr_alphabetic.c: Likewise.
25269         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
25270         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25271         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25272         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
25273         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25274         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
25275         * tests/unictype/test-pr_bidi_control.c: Likewise.
25276         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
25277         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
25278         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25279         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25280         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25281         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25282         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25283         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25284         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
25285         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
25286         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
25287         * tests/unictype/test-pr_combining.c: Likewise.
25288         * tests/unictype/test-pr_composite.c: Likewise.
25289         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25290         * tests/unictype/test-pr_dash.c: Likewise.
25291         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25292         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
25293         * tests/unictype/test-pr_deprecated.c: Likewise.
25294         * tests/unictype/test-pr_diacritic.c: Likewise.
25295         * tests/unictype/test-pr_extender.c: Likewise.
25296         * tests/unictype/test-pr_format_control.c: Likewise.
25297         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25298         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25299         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25300         * tests/unictype/test-pr_hex_digit.c: Likewise.
25301         * tests/unictype/test-pr_hyphen.c: Likewise.
25302         * tests/unictype/test-pr_id_continue.c: Likewise.
25303         * tests/unictype/test-pr_id_start.c: Likewise.
25304         * tests/unictype/test-pr_ideographic.c: Likewise.
25305         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
25306         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
25307         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25308         * tests/unictype/test-pr_iso_control.c: Likewise.
25309         * tests/unictype/test-pr_join_control.c: Likewise.
25310         * tests/unictype/test-pr_left_of_pair.c: Likewise.
25311         * tests/unictype/test-pr_line_separator.c: Likewise.
25312         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25313         * tests/unictype/test-pr_lowercase.c: Likewise.
25314         * tests/unictype/test-pr_math.c: Likewise.
25315         * tests/unictype/test-pr_non_break.c: Likewise.
25316         * tests/unictype/test-pr_not_a_character.c: Likewise.
25317         * tests/unictype/test-pr_numeric.c: Likewise.
25318         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25319         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
25320         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
25321         * tests/unictype/test-pr_other_id_continue.c: Likewise.
25322         * tests/unictype/test-pr_other_id_start.c: Likewise.
25323         * tests/unictype/test-pr_other_lowercase.c: Likewise.
25324         * tests/unictype/test-pr_other_math.c: Likewise.
25325         * tests/unictype/test-pr_other_uppercase.c: Likewise.
25326         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
25327         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
25328         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
25329         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
25330         * tests/unictype/test-pr_private_use.c: Likewise.
25331         * tests/unictype/test-pr_punctuation.c: Likewise.
25332         * tests/unictype/test-pr_quotation_mark.c: Likewise.
25333         * tests/unictype/test-pr_radical.c: Likewise.
25334         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25335         * tests/unictype/test-pr_soft_dotted.c: Likewise.
25336         * tests/unictype/test-pr_space.c: Likewise.
25337         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25338         * tests/unictype/test-pr_titlecase.c: Likewise.
25339         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25340         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25341         * tests/unictype/test-pr_uppercase.c: Likewise.
25342         * tests/unictype/test-pr_variation_selector.c: Likewise.
25343         * tests/unictype/test-pr_white_space.c: Likewise.
25344         * tests/unictype/test-pr_xid_continue.c: Likewise.
25345         * tests/unictype/test-pr_xid_start.c: Likewise.
25346         * tests/unictype/test-pr_zero_width.c: Likewise.
25347         * tests/unictype/test-sy_c_whitespace.c: Likewise.
25348         * tests/unictype/test-sy_java_whitespace.c: Likewise.
25349
25350 2007-11-12  Bruno Haible  <bruno@clisp.org>
25351
25352         Unicode character classification functions.
25353         * lib/unictype.h: New file.
25354         * modules/unictype/base: New file.
25355         * modules/unictype/category-L: New file.
25356         * modules/unictype/category-Lu: New file.
25357         * modules/unictype/category-Ll: New file.
25358         * modules/unictype/category-Lt: New file.
25359         * modules/unictype/category-Lm: New file.
25360         * modules/unictype/category-Lo: New file.
25361         * modules/unictype/category-M: New file.
25362         * modules/unictype/category-Mn: New file.
25363         * modules/unictype/category-Mc: New file.
25364         * modules/unictype/category-Me: New file.
25365         * modules/unictype/category-N: New file.
25366         * modules/unictype/category-Nd: New file.
25367         * modules/unictype/category-Nl: New file.
25368         * modules/unictype/category-No: New file.
25369         * modules/unictype/category-P: New file.
25370         * modules/unictype/category-Pc: New file.
25371         * modules/unictype/category-Pd: New file.
25372         * modules/unictype/category-Ps: New file.
25373         * modules/unictype/category-Pe: New file.
25374         * modules/unictype/category-Pi: New file.
25375         * modules/unictype/category-Pf: New file.
25376         * modules/unictype/category-Po: New file.
25377         * modules/unictype/category-S: New file.
25378         * modules/unictype/category-Sm: New file.
25379         * modules/unictype/category-Sc: New file.
25380         * modules/unictype/category-Sk: New file.
25381         * modules/unictype/category-So: New file.
25382         * modules/unictype/category-Z: New file.
25383         * modules/unictype/category-Zs: New file.
25384         * modules/unictype/category-Zl: New file.
25385         * modules/unictype/category-Zp: New file.
25386         * modules/unictype/category-C: New file.
25387         * modules/unictype/category-Cc: New file.
25388         * modules/unictype/category-Cf: New file.
25389         * modules/unictype/category-Cs: New file.
25390         * modules/unictype/category-Co: New file.
25391         * modules/unictype/category-Cn: New file.
25392         * modules/unictype/category-or: New file.
25393         * modules/unictype/category-of: New file.
25394         * modules/unictype/category-test: New file.
25395         * modules/unictype/category-test-withtable: New file.
25396         * modules/unictype/category-byname: New file.
25397         * modules/unictype/category-none: New file.
25398         * modules/unictype/category-and: New file.
25399         * modules/unictype/category-and-not: New file.
25400         * modules/unictype/category-name: New file.
25401         * modules/unictype/combining-class: New file.
25402         * modules/unictype/category-all: New file.
25403         * modules/unictype/bidicategory-all: New file.
25404         * modules/unictype/bidicategory-byname: New file.
25405         * modules/unictype/bidicategory-name: New file.
25406         * modules/unictype/bidicategory-of: New file.
25407         * modules/unictype/bidicategory-test: New file.
25408         * modules/unictype/decimal-digit: New file.
25409         * modules/unictype/digit: New file.
25410         * modules/unictype/numeric: New file.
25411         * modules/unictype/mirror: New file.
25412         * modules/unictype/property-white-space: New file.
25413         * modules/unictype/property-alphabetic: New file.
25414         * modules/unictype/property-other-alphabetic: New file.
25415         * modules/unictype/property-not-a-character: New file.
25416         * modules/unictype/property-default-ignorable-code-point: New file.
25417         * modules/unictype/property-other-default-ignorable-code-point: New
25418         file.
25419         * modules/unictype/property-deprecated: New file.
25420         * modules/unictype/property-logical-order-exception: New file.
25421         * modules/unictype/property-variation-selector: New file.
25422         * modules/unictype/property-private-use: New file.
25423         * modules/unictype/property-unassigned-code-value: New file.
25424         * modules/unictype/property-uppercase: New file.
25425         * modules/unictype/property-other-uppercase: New file.
25426         * modules/unictype/property-lowercase: New file.
25427         * modules/unictype/property-other-lowercase: New file.
25428         * modules/unictype/property-titlecase: New file.
25429         * modules/unictype/property-soft-dotted: New file.
25430         * modules/unictype/property-id-start: New file.
25431         * modules/unictype/property-other-id-start: New file.
25432         * modules/unictype/property-id-continue: New file.
25433         * modules/unictype/property-other-id-continue: New file.
25434         * modules/unictype/property-xid-start: New file.
25435         * modules/unictype/property-xid-continue: New file.
25436         * modules/unictype/property-pattern-white-space: New file.
25437         * modules/unictype/property-pattern-syntax: New file.
25438         * modules/unictype/property-join-control: New file.
25439         * modules/unictype/property-grapheme-base: New file.
25440         * modules/unictype/property-grapheme-extend: New file.
25441         * modules/unictype/property-other-grapheme-extend: New file.
25442         * modules/unictype/property-grapheme-link: New file.
25443         * modules/unictype/property-bidi-control: New file.
25444         * modules/unictype/property-bidi-left-to-right: New file.
25445         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
25446         * modules/unictype/property-bidi-arabic-right-to-left: New file.
25447         * modules/unictype/property-bidi-european-digit: New file.
25448         * modules/unictype/property-bidi-eur-num-separator: New file.
25449         * modules/unictype/property-bidi-eur-num-terminator: New file.
25450         * modules/unictype/property-bidi-arabic-digit: New file.
25451         * modules/unictype/property-bidi-common-separator: New file.
25452         * modules/unictype/property-bidi-block-separator: New file.
25453         * modules/unictype/property-bidi-segment-separator: New file.
25454         * modules/unictype/property-bidi-whitespace: New file.
25455         * modules/unictype/property-bidi-non-spacing-mark: New file.
25456         * modules/unictype/property-bidi-boundary-neutral: New file.
25457         * modules/unictype/property-bidi-pdf: New file.
25458         * modules/unictype/property-bidi-embedding-or-override: New file.
25459         * modules/unictype/property-bidi-other-neutral: New file.
25460         * modules/unictype/property-hex-digit: New file.
25461         * modules/unictype/property-ascii-hex-digit: New file.
25462         * modules/unictype/property-ideographic: New file.
25463         * modules/unictype/property-unified-ideograph: New file.
25464         * modules/unictype/property-radical: New file.
25465         * modules/unictype/property-ids-binary-operator: New file.
25466         * modules/unictype/property-ids-trinary-operator: New file.
25467         * modules/unictype/property-zero-width: New file.
25468         * modules/unictype/property-space: New file.
25469         * modules/unictype/property-non-break: New file.
25470         * modules/unictype/property-iso-control: New file.
25471         * modules/unictype/property-format-control: New file.
25472         * modules/unictype/property-dash: New file.
25473         * modules/unictype/property-hyphen: New file.
25474         * modules/unictype/property-punctuation: New file.
25475         * modules/unictype/property-line-separator: New file.
25476         * modules/unictype/property-paragraph-separator: New file.
25477         * modules/unictype/property-quotation-mark: New file.
25478         * modules/unictype/property-sentence-terminal: New file.
25479         * modules/unictype/property-terminal-punctuation: New file.
25480         * modules/unictype/property-currency-symbol: New file.
25481         * modules/unictype/property-math: New file.
25482         * modules/unictype/property-other-math: New file.
25483         * modules/unictype/property-paired-punctuation: New file.
25484         * modules/unictype/property-left-of-pair: New file.
25485         * modules/unictype/property-combining: New file.
25486         * modules/unictype/property-composite: New file.
25487         * modules/unictype/property-decimal-digit: New file.
25488         * modules/unictype/property-numeric: New file.
25489         * modules/unictype/property-diacritic: New file.
25490         * modules/unictype/property-extender: New file.
25491         * modules/unictype/property-ignorable-control: New file.
25492         * modules/unictype/property-test: New file.
25493         * modules/unictype/property-byname: New file.
25494         * modules/unictype/property-all: New file.
25495         * modules/unictype/scripts: New file.
25496         * modules/unictype/scripts-all: New file.
25497         * modules/unictype/block-of: New file.
25498         * modules/unictype/block-test: New file.
25499         * modules/unictype/block-list: New file.
25500         * modules/unictype/block-all: New file.
25501         * modules/unictype/syntax-c-whitespace: New file.
25502         * modules/unictype/syntax-java-whitespace: New file.
25503         * modules/unictype/syntax-c-ident: New file.
25504         * modules/unictype/syntax-java-ident: New file.
25505         * modules/unictype/ctype-alnum: New file.
25506         * modules/unictype/ctype-alpha: New file.
25507         * modules/unictype/ctype-cntrl: New file.
25508         * modules/unictype/ctype-digit: New file.
25509         * modules/unictype/ctype-graph: New file.
25510         * modules/unictype/ctype-lower: New file.
25511         * modules/unictype/ctype-print: New file.
25512         * modules/unictype/ctype-punct: New file.
25513         * modules/unictype/ctype-space: New file.
25514         * modules/unictype/ctype-upper: New file.
25515         * modules/unictype/ctype-xdigit: New file.
25516         * modules/unictype/ctype-blank: New file.
25517         * lib/unictype/bidi_byname.c: New file.
25518         * lib/unictype/bidi_name.c: New file.
25519         * lib/unictype/bidi_of.c: New file.
25520         * lib/unictype/bidi_test.c: New file.
25521         * lib/unictype/bitmap.h: New file.
25522         * lib/unictype/block_test.c: New file.
25523         * lib/unictype/blocks.c: New file.
25524         * lib/unictype/categ_C.c: New file.
25525         * lib/unictype/categ_Cc.c: New file.
25526         * lib/unictype/categ_Cf.c: New file.
25527         * lib/unictype/categ_Cn.c: New file.
25528         * lib/unictype/categ_Co.c: New file.
25529         * lib/unictype/categ_Cs.c: New file.
25530         * lib/unictype/categ_L.c: New file.
25531         * lib/unictype/categ_Ll.c: New file.
25532         * lib/unictype/categ_Lm.c: New file.
25533         * lib/unictype/categ_Lo.c: New file.
25534         * lib/unictype/categ_Lt.c: New file.
25535         * lib/unictype/categ_Lu.c: New file.
25536         * lib/unictype/categ_M.c: New file.
25537         * lib/unictype/categ_Mc.c: New file.
25538         * lib/unictype/categ_Me.c: New file.
25539         * lib/unictype/categ_Mn.c: New file.
25540         * lib/unictype/categ_N.c: New file.
25541         * lib/unictype/categ_Nd.c: New file.
25542         * lib/unictype/categ_Nl.c: New file.
25543         * lib/unictype/categ_No.c: New file.
25544         * lib/unictype/categ_P.c: New file.
25545         * lib/unictype/categ_Pc.c: New file.
25546         * lib/unictype/categ_Pd.c: New file.
25547         * lib/unictype/categ_Pe.c: New file.
25548         * lib/unictype/categ_Pf.c: New file.
25549         * lib/unictype/categ_Pi.c: New file.
25550         * lib/unictype/categ_Po.c: New file.
25551         * lib/unictype/categ_Ps.c: New file.
25552         * lib/unictype/categ_S.c: New file.
25553         * lib/unictype/categ_Sc.c: New file.
25554         * lib/unictype/categ_Sk.c: New file.
25555         * lib/unictype/categ_Sm.c: New file.
25556         * lib/unictype/categ_So.c: New file.
25557         * lib/unictype/categ_Z.c: New file.
25558         * lib/unictype/categ_Zl.c: New file.
25559         * lib/unictype/categ_Zp.c: New file.
25560         * lib/unictype/categ_Zs.c: New file.
25561         * lib/unictype/categ_and.c: New file.
25562         * lib/unictype/categ_and_not.c: New file.
25563         * lib/unictype/categ_byname.c: New file.
25564         * lib/unictype/categ_name.c: New file.
25565         * lib/unictype/categ_none.c: New file.
25566         * lib/unictype/categ_of.c: New file.
25567         * lib/unictype/categ_or.c: New file.
25568         * lib/unictype/categ_test.c: New file.
25569         * lib/unictype/combining.c: New file.
25570         * lib/unictype/ctype_alnum.c: New file.
25571         * lib/unictype/ctype_alpha.c: New file.
25572         * lib/unictype/ctype_blank.c: New file.
25573         * lib/unictype/ctype_cntrl.c: New file.
25574         * lib/unictype/ctype_digit.c: New file.
25575         * lib/unictype/ctype_graph.c: New file.
25576         * lib/unictype/ctype_lower.c: New file.
25577         * lib/unictype/ctype_print.c: New file.
25578         * lib/unictype/ctype_punct.c: New file.
25579         * lib/unictype/ctype_space.c: New file.
25580         * lib/unictype/ctype_upper.c: New file.
25581         * lib/unictype/ctype_xdigit.c: New file.
25582         * lib/unictype/decdigit.c: New file.
25583         * lib/unictype/digit.c: New file.
25584         * lib/unictype/identsyntaxmap.h: New file.
25585         * lib/unictype/mirror.c: New file.
25586         * lib/unictype/numeric.c: New file.
25587         * lib/unictype/pr_alphabetic.c: New file.
25588         * lib/unictype/pr_ascii_hex_digit.c: New file.
25589         * lib/unictype/pr_bidi_arabic_digit.c: New file.
25590         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
25591         * lib/unictype/pr_bidi_block_separator.c: New file.
25592         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
25593         * lib/unictype/pr_bidi_common_separator.c: New file.
25594         * lib/unictype/pr_bidi_control.c: New file.
25595         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
25596         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
25597         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
25598         * lib/unictype/pr_bidi_european_digit.c: New file.
25599         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
25600         * lib/unictype/pr_bidi_left_to_right.c: New file.
25601         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
25602         * lib/unictype/pr_bidi_other_neutral.c: New file.
25603         * lib/unictype/pr_bidi_pdf.c: New file.
25604         * lib/unictype/pr_bidi_segment_separator.c: New file.
25605         * lib/unictype/pr_bidi_whitespace.c: New file.
25606         * lib/unictype/pr_byname.c: New file.
25607         * lib/unictype/pr_byname.gperf: New file.
25608         * lib/unictype/pr_combining.c: New file.
25609         * lib/unictype/pr_composite.c: New file.
25610         * lib/unictype/pr_currency_symbol.c: New file.
25611         * lib/unictype/pr_dash.c: New file.
25612         * lib/unictype/pr_decimal_digit.c: New file.
25613         * lib/unictype/pr_default_ignorable_code_point.c: New file.
25614         * lib/unictype/pr_deprecated.c: New file.
25615         * lib/unictype/pr_diacritic.c: New file.
25616         * lib/unictype/pr_extender.c: New file.
25617         * lib/unictype/pr_format_control.c: New file.
25618         * lib/unictype/pr_grapheme_base.c: New file.
25619         * lib/unictype/pr_grapheme_extend.c: New file.
25620         * lib/unictype/pr_grapheme_link.c: New file.
25621         * lib/unictype/pr_hex_digit.c: New file.
25622         * lib/unictype/pr_hyphen.c: New file.
25623         * lib/unictype/pr_id_continue.c: New file.
25624         * lib/unictype/pr_id_start.c: New file.
25625         * lib/unictype/pr_ideographic.c: New file.
25626         * lib/unictype/pr_ids_binary_operator.c: New file.
25627         * lib/unictype/pr_ids_trinary_operator.c: New file.
25628         * lib/unictype/pr_ignorable_control.c: New file.
25629         * lib/unictype/pr_iso_control.c: New file.
25630         * lib/unictype/pr_join_control.c: New file.
25631         * lib/unictype/pr_left_of_pair.c: New file.
25632         * lib/unictype/pr_line_separator.c: New file.
25633         * lib/unictype/pr_logical_order_exception.c: New file.
25634         * lib/unictype/pr_lowercase.c: New file.
25635         * lib/unictype/pr_math.c: New file.
25636         * lib/unictype/pr_non_break.c: New file.
25637         * lib/unictype/pr_not_a_character.c: New file.
25638         * lib/unictype/pr_numeric.c: New file.
25639         * lib/unictype/pr_other_alphabetic.c: New file.
25640         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
25641         * lib/unictype/pr_other_grapheme_extend.c: New file.
25642         * lib/unictype/pr_other_id_continue.c: New file.
25643         * lib/unictype/pr_other_id_start.c: New file.
25644         * lib/unictype/pr_other_lowercase.c: New file.
25645         * lib/unictype/pr_other_math.c: New file.
25646         * lib/unictype/pr_other_uppercase.c: New file.
25647         * lib/unictype/pr_paired_punctuation.c: New file.
25648         * lib/unictype/pr_paragraph_separator.c: New file.
25649         * lib/unictype/pr_pattern_syntax.c: New file.
25650         * lib/unictype/pr_pattern_white_space.c: New file.
25651         * lib/unictype/pr_private_use.c: New file.
25652         * lib/unictype/pr_punctuation.c: New file.
25653         * lib/unictype/pr_quotation_mark.c: New file.
25654         * lib/unictype/pr_radical.c: New file.
25655         * lib/unictype/pr_sentence_terminal.c: New file.
25656         * lib/unictype/pr_soft_dotted.c: New file.
25657         * lib/unictype/pr_space.c: New file.
25658         * lib/unictype/pr_terminal_punctuation.c: New file.
25659         * lib/unictype/pr_test.c: New file.
25660         * lib/unictype/pr_titlecase.c: New file.
25661         * lib/unictype/pr_unassigned_code_value.c: New file.
25662         * lib/unictype/pr_unified_ideograph.c: New file.
25663         * lib/unictype/pr_uppercase.c: New file.
25664         * lib/unictype/pr_variation_selector.c: New file.
25665         * lib/unictype/pr_white_space.c: New file.
25666         * lib/unictype/pr_xid_continue.c: New file.
25667         * lib/unictype/pr_xid_start.c: New file.
25668         * lib/unictype/pr_zero_width.c: New file.
25669         * lib/unictype/scripts.c: New file.
25670         * lib/unictype/sy_c_ident.c: New file.
25671         * lib/unictype/sy_c_whitespace.c: New file.
25672         * lib/unictype/sy_java_ident.c: New file.
25673         * lib/unictype/sy_java_whitespace.c: New file.
25674
25675         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
25676         Unicode 5.0.0.
25677         * lib/unictype/blocks.h: Likewise.
25678         * lib/unictype/categ_C.h: Likewise.
25679         * lib/unictype/categ_Cc.h: Likewise.
25680         * lib/unictype/categ_Cf.h: Likewise.
25681         * lib/unictype/categ_Cn.h: Likewise.
25682         * lib/unictype/categ_Co.h: Likewise.
25683         * lib/unictype/categ_Cs.h: Likewise.
25684         * lib/unictype/categ_L.h: Likewise.
25685         * lib/unictype/categ_Ll.h: Likewise.
25686         * lib/unictype/categ_Lm.h: Likewise.
25687         * lib/unictype/categ_Lo.h: Likewise.
25688         * lib/unictype/categ_Lt.h: Likewise.
25689         * lib/unictype/categ_Lu.h: Likewise.
25690         * lib/unictype/categ_M.h: Likewise.
25691         * lib/unictype/categ_Mc.h: Likewise.
25692         * lib/unictype/categ_Me.h: Likewise.
25693         * lib/unictype/categ_Mn.h: Likewise.
25694         * lib/unictype/categ_N.h: Likewise.
25695         * lib/unictype/categ_Nd.h: Likewise.
25696         * lib/unictype/categ_Nl.h: Likewise.
25697         * lib/unictype/categ_No.h: Likewise.
25698         * lib/unictype/categ_P.h: Likewise.
25699         * lib/unictype/categ_Pc.h: Likewise.
25700         * lib/unictype/categ_Pd.h: Likewise.
25701         * lib/unictype/categ_Pe.h: Likewise.
25702         * lib/unictype/categ_Pf.h: Likewise.
25703         * lib/unictype/categ_Pi.h: Likewise.
25704         * lib/unictype/categ_Po.h: Likewise.
25705         * lib/unictype/categ_Ps.h: Likewise.
25706         * lib/unictype/categ_S.h: Likewise.
25707         * lib/unictype/categ_Sc.h: Likewise.
25708         * lib/unictype/categ_Sk.h: Likewise.
25709         * lib/unictype/categ_Sm.h: Likewise.
25710         * lib/unictype/categ_So.h: Likewise.
25711         * lib/unictype/categ_Z.h: Likewise.
25712         * lib/unictype/categ_Zl.h: Likewise.
25713         * lib/unictype/categ_Zp.h: Likewise.
25714         * lib/unictype/categ_Zs.h: Likewise.
25715         * lib/unictype/categ_of.h: Likewise.
25716         * lib/unictype/combining.h: Likewise.
25717         * lib/unictype/ctype_alnum.h: Likewise.
25718         * lib/unictype/ctype_alpha.h: Likewise.
25719         * lib/unictype/ctype_blank.h: Likewise.
25720         * lib/unictype/ctype_cntrl.h: Likewise.
25721         * lib/unictype/ctype_digit.h: Likewise.
25722         * lib/unictype/ctype_graph.h: Likewise.
25723         * lib/unictype/ctype_lower.h: Likewise.
25724         * lib/unictype/ctype_print.h: Likewise.
25725         * lib/unictype/ctype_punct.h: Likewise.
25726         * lib/unictype/ctype_space.h: Likewise.
25727         * lib/unictype/ctype_upper.h: Likewise.
25728         * lib/unictype/ctype_xdigit.h: Likewise.
25729         * lib/unictype/decdigit.h: Likewise.
25730         * lib/unictype/digit.h: Likewise.
25731         * lib/unictype/mirror.h: Likewise.
25732         * lib/unictype/numeric.h: Likewise.
25733         * lib/unictype/pr_alphabetic.h: Likewise.
25734         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25735         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25736         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25737         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25738         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25739         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25740         * lib/unictype/pr_bidi_control.h: Likewise.
25741         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25742         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25743         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25744         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25745         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25746         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25747         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25748         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25749         * lib/unictype/pr_bidi_pdf.h: Likewise.
25750         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25751         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25752         * lib/unictype/pr_combining.h: Likewise.
25753         * lib/unictype/pr_composite.h: Likewise.
25754         * lib/unictype/pr_currency_symbol.h: Likewise.
25755         * lib/unictype/pr_dash.h: Likewise.
25756         * lib/unictype/pr_decimal_digit.h: Likewise.
25757         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25758         * lib/unictype/pr_deprecated.h: Likewise.
25759         * lib/unictype/pr_diacritic.h: Likewise.
25760         * lib/unictype/pr_extender.h: Likewise.
25761         * lib/unictype/pr_format_control.h: Likewise.
25762         * lib/unictype/pr_grapheme_base.h: Likewise.
25763         * lib/unictype/pr_grapheme_extend.h: Likewise.
25764         * lib/unictype/pr_grapheme_link.h: Likewise.
25765         * lib/unictype/pr_hex_digit.h: Likewise.
25766         * lib/unictype/pr_hyphen.h: Likewise.
25767         * lib/unictype/pr_id_continue.h: Likewise.
25768         * lib/unictype/pr_id_start.h: Likewise.
25769         * lib/unictype/pr_ideographic.h: Likewise.
25770         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25771         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25772         * lib/unictype/pr_ignorable_control.h: Likewise.
25773         * lib/unictype/pr_iso_control.h: Likewise.
25774         * lib/unictype/pr_join_control.h: Likewise.
25775         * lib/unictype/pr_left_of_pair.h: Likewise.
25776         * lib/unictype/pr_line_separator.h: Likewise.
25777         * lib/unictype/pr_logical_order_exception.h: Likewise.
25778         * lib/unictype/pr_lowercase.h: Likewise.
25779         * lib/unictype/pr_math.h: Likewise.
25780         * lib/unictype/pr_non_break.h: Likewise.
25781         * lib/unictype/pr_not_a_character.h: Likewise.
25782         * lib/unictype/pr_numeric.h: Likewise.
25783         * lib/unictype/pr_other_alphabetic.h: Likewise.
25784         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25785         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25786         * lib/unictype/pr_other_id_continue.h: Likewise.
25787         * lib/unictype/pr_other_id_start.h: Likewise.
25788         * lib/unictype/pr_other_lowercase.h: Likewise.
25789         * lib/unictype/pr_other_math.h: Likewise.
25790         * lib/unictype/pr_other_uppercase.h: Likewise.
25791         * lib/unictype/pr_paired_punctuation.h: Likewise.
25792         * lib/unictype/pr_paragraph_separator.h: Likewise.
25793         * lib/unictype/pr_pattern_syntax.h: Likewise.
25794         * lib/unictype/pr_pattern_white_space.h: Likewise.
25795         * lib/unictype/pr_private_use.h: Likewise.
25796         * lib/unictype/pr_punctuation.h: Likewise.
25797         * lib/unictype/pr_quotation_mark.h: Likewise.
25798         * lib/unictype/pr_radical.h: Likewise.
25799         * lib/unictype/pr_sentence_terminal.h: Likewise.
25800         * lib/unictype/pr_soft_dotted.h: Likewise.
25801         * lib/unictype/pr_space.h: Likewise.
25802         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25803         * lib/unictype/pr_titlecase.h: Likewise.
25804         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25805         * lib/unictype/pr_unified_ideograph.h: Likewise.
25806         * lib/unictype/pr_uppercase.h: Likewise.
25807         * lib/unictype/pr_variation_selector.h: Likewise.
25808         * lib/unictype/pr_white_space.h: Likewise.
25809         * lib/unictype/pr_xid_continue.h: Likewise.
25810         * lib/unictype/pr_xid_start.h: Likewise.
25811         * lib/unictype/pr_zero_width.h: Likewise.
25812         * lib/unictype/scripts.h: Likewise.
25813         * lib/unictype/scripts_byname.gperf: Likewise.
25814         * lib/unictype/sy_c_ident.h: Likewise.
25815         * lib/unictype/sy_c_whitespace.h: Likewise.
25816         * lib/unictype/sy_java_ident.h: Likewise.
25817         * lib/unictype/sy_java_whitespace.h: Likewise.
25818
25819         * lib/unictype/Makefile: New file.
25820         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
25821         glibc.
25822         * lib/unictype/3level.h: New file, copied from glibc.
25823         * lib/unictype/3levelbit.h: New file.
25824
25825 2007-11-11  Bruno Haible  <bruno@clisp.org>
25826
25827         * modules/gperf: New file.
25828         * modules/iconv_open (Depends-on): Add it.
25829         (Makefile.am): Remove the GPERF definition.
25830
25831 2007-11-11  Bruno Haible  <bruno@clisp.org>
25832
25833         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
25834         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
25835
25836 2007-11-11  Bruno Haible  <bruno@clisp.org>
25837
25838         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
25839         (usage): Remove function.
25840
25841 2007-11-11  Bruno Haible  <bruno@clisp.org>
25842
25843         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
25844         gl_FUNC_CEILF_LIBS.
25845         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
25846         gl_FUNC_CEIL_LIBS.
25847         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
25848         gl_FUNC_CEILL_LIBS.
25849         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
25850         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
25851         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
25852
25853 2007-11-11  Bruno Haible  <bruno@clisp.org>
25854
25855         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
25856         roundf were declared but do not exist on functions.
25857         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
25858         roundl were declared but do not exist on functions.
25859         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
25860         HAVE_FLOORL_AND_CEILL, respectively.
25861         Needed for Sun C on Solaris 10.
25862
25863 2007-11-11  Bruno Haible  <bruno@clisp.org>
25864
25865         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
25866         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
25867         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
25868         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
25869         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
25870         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
25871         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
25872         HAVE_DECL_ROUNDF.
25873         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
25874         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
25875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
25876         of HAVE_DECL_ROUND*.
25877         * modules/math (Makefile.am): Update.
25878
25879 2007-11-10  Bruno Haible  <bruno@clisp.org>
25880
25881         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
25882         ptrdiff_t as m4/intl.m4.
25883
25884 2007-11-10  Jim Meyering  <meyering@redhat.com>
25885
25886         Avoid link failure for the argmatch test.
25887         * tests/test-argmatch.c (usage): Define function to avoid a link
25888         failure: argmatch_die requires a usage function.
25889
25890 2007-11-09  Bruno Haible  <bruno@clisp.org>
25891
25892         * doc/functions/snprintf.texi: Mention BeOS deficiency.
25893         * doc/functions/vsnprintf.texi: Likewise.
25894         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
25895         with a size argument < 2.
25896
25897 2007-11-09  Bruno Haible  <bruno@clisp.org>
25898
25899         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
25900         buffer. Fixes an inefficiency introduced on 2007-11-03.
25901
25902 2007-11-09  Bruno Haible  <bruno@clisp.org>
25903
25904         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
25905         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
25906
25907 2007-11-08  Jim Meyering  <meyering@redhat.com>
25908
25909         Change cache variable name prefix "jm_" to "gl_" everywhere.
25910         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
25911         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
25912         * m4/uptime.m4: s/gl_/jm_/
25913
25914 2007-11-07  Bruno Haible  <bruno@clisp.org>
25915
25916         Update to GNU gettext 0.17.
25917         * m4/intl.m4: Update to GNU gettext 0.17.
25918         * m4/po.m4: Likewise.
25919         * modules/gettext (Files): Remove m4/ulonglong.m4.
25920         (configure.ac): Require gettext infrastructure from version 0.17.
25921
25922 2007-11-06  Bruno Haible  <bruno@clisp.org>
25923
25924         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
25925         symbolic values are not defined in a public header.
25926         * lib/freadable.c (freadable) [QNX]: Likewise.
25927         * lib/freadahead.c (freadahead) [QNX]: Likewise.
25928         * lib/freading.c (freading) [QNX]: Likewise.
25929         * lib/fseterr.c (fseterr) [QNX]: Likewise.
25930         * lib/fwritable.c (fwritable) [QNX]: Likewise.
25931         * lib/fwriting.c (fwriting) [QNX]: Likewise.
25932         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
25933         Reported by Alain Magloire.
25934
25935         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
25936
25937 2007-11-05  Bruno Haible  <bruno@clisp.org>
25938
25939         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
25940         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
25941         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
25942         Reported by Eric Blake.
25943
25944 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25945             Bruno Haible  <bruno@clisp.org>
25946
25947         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
25948         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
25949         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
25950         (malloc): Undefine also before including <stdlib.h>.
25951         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
25952         Needed on OSF/1 4.0.
25953
25954 2007-11-05  Jim Meyering  <meyering@redhat.com>
25955
25956         git-version-gen: sync from coreutils.
25957         * build-aux/git-version-gen: Add comments.
25958         Change the first '-' to '.' in the snapshot version string,
25959         e.g., 6.9-377-08144 -> 6.9.377-08144
25960         Remove first parameter.
25961         Don't declare a version "-dirty" merely because a time
25962         stamp has changed.
25963
25964 2007-11-04  Bruno Haible  <bruno@clisp.org>
25965
25966         * lib/lock.h: Protect all macro definitions containing an 'if'
25967         statement through a "do { ... } while (0)".
25968         * lib/tls.h: Likewise.
25969
25970 2007-11-04  Bruno Haible  <bruno@clisp.org>
25971
25972         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
25973
25974 2007-11-04  Bruno Haible  <bruno@clisp.org>
25975
25976         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
25977         * modules/fprintf-posix (Depends-on): Add nocrash.
25978         * modules/snprintf-posix (Depends-on): Likewise.
25979         * modules/sprintf-posix (Depends-on): Likewise.
25980         * modules/vasnprintf-posix (Depends-on): Likewise.
25981         * modules/vasprintf-posix (Depends-on): Likewise.
25982         * modules/vfprintf-posix (Depends-on): Likewise.
25983         * modules/vsnprintf-posix (Depends-on): Likewise.
25984         * modules/vsprintf-posix (Depends-on): Likewise.
25985         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25986         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25987         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25988         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25989         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25990         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25991         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25992
25993 2007-11-04  Bruno Haible  <bruno@clisp.org>
25994
25995         * modules/nocrash: New file.
25996         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
25997         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
25998
25999 2007-11-04  Bruno Haible  <bruno@clisp.org>
26000
26001         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
26002         precision handling.
26003         * tests/test-vasprintf-posix.c (test_function): Likewise.
26004         * tests/test-snprintf-posix.h (test_function): Likewise.
26005         * tests/test-sprintf-posix.h (test_function): Likewise.
26006
26007         Fix *printf behaviour for large precisions on mingw and BeOS.
26008         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
26009         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
26010         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
26011         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26012         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26013         gl_PRINTF_PRECISION and test its result. Invoke
26014         gl_PREREQ_VASNPRINTF_PRECISION.
26015         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26016         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26017         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26018         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26019         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26020         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26021         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26022         * doc/functions/fprintf.texi: Update.
26023         * doc/functions/printf.texi: Update.
26024         * doc/functions/snprintf.texi: Update.
26025         * doc/functions/sprintf.texi: Update.
26026         * doc/functions/vfprintf.texi: Update.
26027         * doc/functions/vprintf.texi: Update.
26028         * doc/functions/vsnprintf.texi: Update.
26029         * doc/functions/vsprintf.texi: Update.
26030
26031 2007-11-04  Bruno Haible  <bruno@clisp.org>
26032
26033         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
26034
26035 2007-11-04  Bruno Haible  <bruno@clisp.org>
26036
26037         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
26038         Reported by Sylvain Beucler <beuc@gnu.org>.
26039
26040 2007-11-03  Bruno Haible  <bruno@clisp.org>
26041
26042         * tests/test-fprintf-posix2.sh: New file.
26043         * tests/test-fprintf-posix2.c: New file.
26044         * modules/fprintf-posix-tests (Files): Add them.
26045         (TESTS): Add test-fprintf-posix2.sh.
26046         (configure.ac): Check for getrlimit and setrlimit.
26047         (check_PROGRAMS): Add test-fprintf-posix2.
26048
26049         * tests/test-printf-posix2.sh: New file.
26050         * tests/test-printf-posix2.c: New file.
26051         * modules/printf-posix-tests (Files): Add them.
26052         (TESTS): Add test-printf-posix2.sh.
26053         (configure.ac): Check for getrlimit and setrlimit.
26054         (check_PROGRAMS): Add test-printf-posix2.
26055
26056         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
26057         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
26058         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
26059         (decode_double): New function, copied from decode_long_double.
26060         (scale10_round_decimal_decoded): New function, extracted from
26061         scale10_round_decimal_long_double.
26062         (scale10_round_decimal_long_double): Use it.
26063         (scale10_round_decimal_double): New function.
26064         (floorlog10): New function.
26065         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
26066         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
26067         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26068         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26069         gl_PRINTF_ENOMEM and test its result. Invoke
26070         gl_PREREQ_VASNPRINTF_ENOMEM.
26071         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26072         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26073         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26074         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26075         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26076         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26077         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26078         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
26079         * modules/snprintf-posix (Depends-on): Likewise.
26080         * modules/sprintf-posix (Depends-on): Likewise.
26081         * modules/vasnprintf-posix (Depends-on): Likewise.
26082         * modules/vasprintf-posix (Depends-on): Likewise.
26083         * modules/vfprintf-posix (Depends-on): Likewise.
26084         * modules/vsnprintf-posix (Depends-on): Likewise.
26085         * modules/vsprintf-posix (Depends-on): Likewise.
26086         * doc/functions/fprintf.texi: Update.
26087         * doc/functions/printf.texi: Update.
26088         * doc/functions/snprintf.texi: Update.
26089         * doc/functions/sprintf.texi: Update.
26090         * doc/functions/vfprintf.texi: Update.
26091         * doc/functions/vprintf.texi: Update.
26092         * doc/functions/vsnprintf.texi: Update.
26093         * doc/functions/vsprintf.texi: Update.
26094
26095 2007-11-03  Bruno Haible  <bruno@clisp.org>
26096
26097         * modules/frexp-nolibm-tests: New file.
26098
26099         * modules/frexp-nolibm: New file.
26100         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
26101
26102 2007-11-03  Bruno Haible  <bruno@clisp.org>
26103
26104         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
26105         value is C99 compliant.
26106         Needed for OSF/1 5.1.
26107
26108 2007-11-03  Bruno Haible  <bruno@clisp.org>
26109
26110         Fix out-of-memory handling of vasnprintf.
26111         * lib/printf-parse.c: Include <errno.h>.
26112         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
26113         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
26114         is already set.
26115
26116 2007-11-02  Eric Blake  <ebb9@byu.net>
26117
26118         Fix tests on cygwin.
26119         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
26120
26121 2007-11-01  Bruno Haible  <bruno@clisp.org>
26122
26123         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
26124         warning.
26125         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
26126         needed for POSIX compatibility.
26127
26128 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26129
26130         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
26131         for compatibility with GNU.
26132
26133 2007-11-01  Bruno Haible  <bruno@clisp.org>
26134
26135         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
26136         (putenv): Renamed from rpl_putenv. Change argument type from
26137         'const char *' to 'char *'.
26138         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
26139         of defining putenv in config.h, just set REPLACE_PUTENV.
26140         * modules/putenv (Depends-on): Add stdlib.
26141         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26142         (Include): Use <stdlib.h>.
26143         * lib/stdlib.in.h (putenv): New declaration.
26144         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
26145         REPLACE_PUTENV.
26146         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
26147         REPLACE_PUTENV.
26148         Needed for MacOS X 10.5.0.
26149         Reported by Peter O'Gorman <peter@pogma.com>.
26150
26151 2007-11-01  Jim Meyering  <meyering@redhat.com>
26152
26153         Treat an empty date string exactly like "0".
26154         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
26155         if the remaining date string (to be parsed) is empty, use "0".
26156         Reported by Mischa Molhoek and discussed in this thread:
26157         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
26158
26159 2007-10-31  Bruno Haible  <bruno@clisp.org>
26160
26161         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
26162         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
26163         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
26164         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
26165         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
26166         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
26167
26168 2007-10-31  Bruno Haible  <bruno@clisp.org>
26169
26170         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
26171         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
26172         (AC_TYPE_LONG_LONG_INT): Use it.
26173         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
26174         it as well.
26175         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
26176         to m4/longlong.m4.
26177         * modules/stdint (Files): Remove m4/ulonglong.m4.
26178         * modules/strtoull (Files): Use m4/longlong.m4 instead of
26179         m4/ulonglong.m4.
26180         * modules/strtoumax (Files): Likewise.
26181
26182 2007-10-30  Bruno Haible  <bruno@clisp.org>
26183
26184         * modules/xvasprintf-posix: New file.
26185         Suggested by Eric Blake.
26186
26187 2007-10-30  Bruno Haible  <bruno@clisp.org>
26188
26189         * modules/xprintf-posix-tests: New file.
26190         * tests/test-xprintf-posix.sh: New file.
26191         * tests/test-xprintf-posix.c: New file.
26192         * tests/test-xfprintf-posix.c: New file.
26193
26194         * modules/xprintf-posix: New file.
26195
26196 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26197
26198         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
26199         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
26200         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
26201
26202 2007-10-29  Bruno Haible  <bruno@clisp.org>
26203
26204         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
26205         contain the special marker '_cv_'.
26206         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26207         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26208         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26209         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26210         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26211         Reported by Ralf Wildenhues.
26212
26213 2007-10-29  Bruno Haible  <bruno@clisp.org>
26214
26215         * gnulib-tool (func_import): When --lgpl is not specified, set
26216         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
26217         GPLv3.
26218         Reported by Simon Josefsson.
26219
26220 2007-10-28  Bruno Haible  <bruno@clisp.org>
26221
26222         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
26223         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
26224         HAVE_DECL_ISFINITE.
26225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
26226         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
26227         HAVE_DECL_ISFINITE.
26228
26229 2007-10-28  Bruno Haible  <bruno@clisp.org>
26230
26231         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
26232         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
26233
26234 2007-10-28  Bruno Haible  <bruno@clisp.org>
26235
26236         Fix link errors with Sun C 5.0 on Solaris 10.
26237         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
26238         function is declared but not present in the compiler's libm.
26239         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26240         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
26241         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
26242         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
26243         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
26244         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
26245         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
26246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
26247         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
26248         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
26249         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
26250         HAVE_DECL_FLOORL.
26251
26252 2007-10-28  Bruno Haible  <bruno@clisp.org>
26253
26254         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
26255         gl_FUNC_FLOORL. Cache the result.
26256         (gl_FUNC_FLOORL): Use it.
26257         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
26258         gl_FUNC_CEILL. Cache the result.
26259         (gl_FUNC_CEILL): Use it.
26260
26261         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
26262         gl_FUNC_FLOOR. Cache the result.
26263         (gl_FUNC_FLOOR): Use it.
26264         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
26265         gl_FUNC_CEIL. Cache the result.
26266         (gl_FUNC_CEIL): Use it.
26267
26268         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
26269         gl_FUNC_FLOORF. Cache the result.
26270         (gl_FUNC_FLOORF): Use it.
26271         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
26272         gl_FUNC_CEILF. Cache the result.
26273         (gl_FUNC_CEILF): Use it.
26274
26275 2007-10-28  Bruno Haible  <bruno@clisp.org>
26276
26277         * gnulib-tool: Allow specifying the LGPL version number through
26278         --lgpl=2 or --lgpl=3.
26279         (func_usage): Document --lgpl with argument.
26280         Handle --lgpl=... arguments.
26281         (func_import): Recognize also gl_LGPL calls with an argument. When
26282         --lgpl=2 is used and the module's license is just LGPL, report an
26283         error. Set sed_transform_lib_file according to the lgpl variable. In
26284         the generated files, use --lgpl or gl_LGPL invocations with argument,
26285         if necessary.
26286         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
26287         an LGPv2+ license.
26288         * doc/gnulib-tool.texi (Modified imports): Update explanation of
26289         gl_LGPL macro.
26290
26291 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26292             Bruno Haible  <bruno@clisp.org>
26293
26294         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
26295         (u16_uctomb_aux): Likewise.
26296         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
26297         !HAVE_INLINE.
26298         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
26299
26300 2007-10-28  Bruno Haible  <bruno@clisp.org>
26301
26302         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
26303         Invoke AM_GETTEXT_OPTION if it exists.
26304         * modules/vasprintf: Likewise.
26305         * modules/verror: Likewise.
26306         * modules/xprintf: Likewise.
26307         * modules/xvasprintf: Likewise.
26308
26309 2007-10-27  Ben Pfaff  <blp@gnu.org>
26310
26311         * lib/math.in.h: Define isfinite macro and prototypes for
26312         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
26313         implementations.
26314         * m4/math_h.m4: New substitutions for isfinite module.
26315         * lib/isfinite.c: New file.
26316         * m4/isfinite.m4: New file.
26317         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
26318         * modules/isfinite: New file.
26319         * modules/isfinite-tests: New file.
26320         * tests/tests-isfinite.c: New file.
26321         * doc/functions/isfinite.texi: Mention isfinite module.
26322         * MODULES.html.sh: Mention new module.
26323
26324 2007-10-27  Ben Pfaff  <blp@gnu.org>
26325
26326         Ralf Wildenhues reported that Tru64 4.0D declares the round
26327         functions but does not have definitions.
26328         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
26329         cannot be found in any library, set the output variable to
26330         "missing" instead of "".
26331         * m4/round.m4: Also use our substitute if we cannot find round in
26332         any library, even if it is declared.
26333         * m4/roundf.m4: Likewise for roundf.
26334         * m4/roundl.m4: Likewise for roundl.
26335         * lib/math.in.h: Undefine roundf, round, roundl before defining
26336         their replacements, to allow for hypothetical systems where these
26337         may be defined as macros but not available in libraries.
26338
26339 2007-10-27  Bruno Haible  <bruno@clisp.org>
26340
26341         * doc/gnulib.texi: Invoke @firstparagraphindent.
26342         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
26343         changes in gnulib.
26344         (Source changes): New section.
26345
26346 2007-10-26  Bruno Haible  <bruno@clisp.org>
26347
26348         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
26349         borrowed from autoconf.
26350
26351 2007-10-26  Bruno Haible  <bruno@clisp.org>
26352
26353         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
26354         strerror returned the empty string. Needed on HP-UX 11.00.
26355
26356 2007-10-24  Micah Cowan  <micah@cowan.name>
26357
26358         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
26359         * build-aux/bootstrap: Remove support for now-unnecessary option,
26360         --cvs-user, and envvars CVS_USER, CVS_RSH.
26361
26362 2007-10-24  Jim Meyering  <meyering@redhat.com>
26363
26364         Avoid diagnostics from sha1sum when there is no cached checksum.
26365         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
26366         if the po.s1 file hasn't been created yet.
26367
26368         * build-aux/bootstrap: Sync from coreutils:
26369         2007-10-24  Jim Meyering  <meyering@redhat.com>
26370         Get gnulib from the git repository, not from an obsolete cvs one.
26371         * build-aux/bootstrap: Suggestion from Micah Cowan.
26372         2007-10-04  Jim Meyering  <jim@meyering.net>
26373         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
26374         (update_po_files): Work also when there are no .po files in po/.
26375
26376 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26377
26378         * README: Append ".git" to git and cg examples.
26379         Problem reported by Benoit Sigoure.
26380
26381 2007-10-23  Micah Cowan  <micah@cowan.name>
26382
26383         * users.txt: Add wget.
26384
26385 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26386
26387         Fix linking of some unistdio tests on FreeBSD.
26388         * modules/unistdio/u16-vsnprintf-tests
26389         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
26390         * modules/unistdio/u16-vsprintf-tests
26391         (test_u16_vsnprintf1_LDADD): Likewise.
26392         * modules/unistdio/u32-vsnprintf-tests
26393         (test_u32_vsnprintf1_LDADD): Likewise.
26394         * modules/unistdio/u32-vsprintf-tests
26395         (test_u32_vsprintf1_LDADD): Likewise.
26396         * modules/unistdio/u8-vsnprintf-tests
26397         (test_u8_vsnprintf1_LDADD): Likewise.
26398         * modules/unistdio/u8-vsprintf-tests
26399         (test_u8_vsprintf1_LDADD): Likewise.
26400         * modules/unistdio/ulc-vsnprintf-tests
26401         (test_ulc_vsnprintf1_LDADD): Likewise.
26402         * modules/unistdio/ulc-vsprintf-tests
26403         (test_ulc_vsprintf1_LDADD): Likewise.
26404
26405         Fix linking of some uniconv tests on FreeBSD.
26406         * modules/uniconv/u16-conv-from-enc-tests
26407         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
26408         * modules/uniconv/u16-conv-to-enc-tests
26409         (test_u16_conv_to_enc_LDADD): Likewise.
26410         * modules/uniconv/u16-strconv-from-enc-tests
26411         (test_u16_strconv_from_enc_LDADD): Likewise.
26412         * modules/uniconv/u16-strconv-to-enc-tests
26413         (test_u16_strconv_to_enc_LDADD): Likewise.
26414         * modules/uniconv/u32-conv-from-enc-tests
26415         (test_u32_conv_from_enc_LDADD): Likewise.
26416         * modules/uniconv/u32-conv-to-enc-tests
26417         (test_u32_conv_to_enc_LDADD): Likewise.
26418         * modules/uniconv/u32-strconv-from-enc-tests
26419         (test_u32_strconv_from_enc_LDADD): Likewise.
26420         * modules/uniconv/u32-strconv-to-enc-tests
26421         (test_u32_strconv_to_enc_LDADD): Likewise.
26422         * modules/uniconv/u8-conv-from-enc-tests
26423         (test_u8_conv_from_enc_LDADD): Likewise.
26424         * modules/uniconv/u8-conv-to-enc-tests
26425         (test_u8_conv_to_enc_LDADD): Likewise.
26426         * modules/uniconv/u8-strconv-from-enc-tests
26427         (test_u8_strconv_from_enc_LDADD): Likewise.
26428         * modules/uniconv/u8-strconv-to-enc-tests
26429         (test_u8_strconv_to_enc_LDADD): Likewise.
26430
26431 2007-10-22  Bruno Haible  <bruno@clisp.org>
26432
26433         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
26434         size.
26435
26436 2007-10-22  Eric Blake  <ebb9@byu.net>
26437
26438         Tweak x*printf documentation.
26439         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
26440         variable name and comments.
26441         Suggested by Bruno Haible.
26442
26443 2007-10-22  Bruno Haible  <bruno@clisp.org>
26444
26445         * lib/acl.c (copy_acl): Fix file name in comment.
26446
26447 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
26448
26449         Fix Tru64 problem with stdbool.h.
26450         * lib/stdbool.in.h (false, true):
26451         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
26452         Don't declare as an enum in this situation; it runs afoul of Tru64.
26453         Problem reported by Steven M. Schweda in
26454         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
26455
26456 2007-10-22  Eric Blake  <ebb9@byu.net>
26457
26458         Also wrap vf?printf.
26459         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
26460         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
26461         (xvprintf, xvfprintf): New functions.
26462
26463 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26464
26465         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
26466         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
26467
26468         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
26469         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
26470
26471 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
26472
26473         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
26474         by Bruno Haible.
26475
26476 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26477
26478         * lib/getloadavg.c
26479         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
26480         Undef `sys' after including sys/table.h, for Tru64 4.0D.
26481
26482         * tests/test-i-ring.c: Work for C89.
26483
26484 2007-10-22  Bruno Haible  <bruno@clisp.org>
26485
26486         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
26487         -1u, in preprocessor expression, so that we don't test for the bug
26488         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
26489         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
26490
26491 2007-10-22  Eric Blake  <ebb9@byu.net>
26492
26493         * tests/test-yesno.sh: Silence stderr during test.
26494
26495 2007-10-22  Simon Josefsson  <simon@josefsson.org>
26496
26497         * modules/crypto/gc-camellia: New file.
26498
26499         * m4/gc-camellia.m4: New file.
26500
26501         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
26502
26503         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
26504
26505 2007-10-22  Simon Josefsson  <simon@josefsson.org>
26506
26507         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
26508         --help to stdout.  Reported by sms@antinode.org (Steven
26509         M. Schweda).
26510
26511 2007-10-22  Simon Josefsson  <simon@josefsson.org>
26512
26513         * users.txt: Fix link to libksba.
26514
26515 2007-10-21  Ben Pfaff  <blp@gnu.org>
26516
26517         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
26518         round.c roundf implementation that depends on floorf and ceilf to
26519         be tested unconditionally.
26520
26521 2007-10-21  Ben Pfaff  <blp@gnu.org>
26522
26523         * m4/check-libm-func.m4: Removed.
26524         * m4/check-math-lib.m4: New file.
26525         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
26526         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
26527         definition and lack of AC_LIBOBJ([roundf]).
26528         * m4/roundl.m4: Ditto, and similarly for roundl.
26529         * modules/round: Reference new m4 file.
26530         * modules/roundf: Ditto.
26531         * modules/roundl: Ditto.
26532         * tests/test-round2.c (main): Use ROUND instead of round.
26533         Bug report from Bruno Haible.
26534
26535 2007-10-21  Bruno Haible  <bruno@clisp.org>
26536
26537         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
26538         context.
26539
26540 2007-10-21  Bruno Haible  <bruno@clisp.org>
26541
26542         * tests/test-wcwidth.c (main): Allow negative result for some control
26543         characters.
26544
26545         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
26546         Needed on OSF/1 5.1.
26547
26548 2007-10-21  Bruno Haible  <bruno@clisp.org>
26549
26550         * tests/test-floorf1.c: Include isnanf.h.
26551         (main): Use isnanf() instead of isnan().
26552         * tests/test-ceilf1.c: Include isnanf.h.
26553         (main): Use isnanf() instead of isnan().
26554         * tests/test-truncf1.c: Include isnanf.h.
26555         (main): Use isnanf() instead of isnan().
26556         * tests/test-roundf1.c: Include isnanf.h.
26557         (main): Use isnanf() instead of isnan().
26558
26559 2007-10-21  Eric Blake  <ebb9@byu.net>
26560
26561         * users.txt: Update URL for m4.
26562
26563 2007-10-21  Bruno Haible  <bruno@clisp.org>
26564
26565         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
26566
26567 2007-10-21  Bruno Haible  <bruno@clisp.org>
26568
26569         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
26570         Git's management files if the CVS files are not present.
26571
26572 2007-10-20  Bruno Haible  <bruno@clisp.org>
26573
26574         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
26575         gcc-3.4.x.
26576
26577 2007-10-20  Ben Pfaff  <blp@gnu.org>
26578
26579         * lib/math.in.h: Declare round, roundf, roundl if we are providing
26580         implementations.
26581         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
26582         * lib/round.c: New file.
26583         * lib/roundf.c: New file.
26584         * lib/roundl.c: New file.
26585         * m4/round.m4: New file.
26586         * m4/roundf.m4: New file.
26587         * m4/roundl.m4: New file.
26588         * m4/check-libm-func-m4: New file.
26589         * modules/math: Replace round, roundf, roundl related @VARS@ in
26590         math.in.h.
26591         * modules/round: New file.
26592         * modules/round-tests: New file.
26593         * modules/roundf: New file.
26594         * modules/roundf-tests: New file.
26595         * modules/roundl: New file.
26596         * modules/roundl-tests: New file.
26597         * tests/test-round1.c: New file.
26598         * tests/test-round2.c: New file.
26599         * tests/test-roundf1.c: New file.
26600         * tests/test-roundf2.c: New file.
26601         * tests/test-roundl.c: New file.
26602         * doc/functions/round.texi: Mention round module.
26603         * doc/functions/roundf.texi: Mention roundf module.
26604         * doc/functions/roundl.texi: Mention roundl module.
26605         * MODULES.html.sh: Mention new modules.
26606         Thanks to Bruno Haible for suggestions.
26607
26608 2007-10-20  Jim Meyering  <meyering@redhat.com>
26609
26610         * lib/xprintf.c: Include <config.h> unconditionally.
26611
26612         Change xprintf's license to GPL.
26613         * modules/xprintf (License): s/LGPL/GPL/, since this module
26614         depends on modules (exit and exitfail) which are GPL.
26615         Suggestion from Bruno Haible.
26616
26617         xprintf fixes.
26618         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
26619         Use a clearer diagnostic.
26620         Patch from Bruno Haible.
26621
26622 2007-10-20  Bruno Haible  <bruno@clisp.org>
26623
26624         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
26625         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
26626         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26627
26628 2007-10-20  Bruno Haible  <bruno@clisp.org>
26629
26630         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
26631         precision in the comparison result > x - 1 or similar.
26632         * tests/test-ceilf2.c (correct_result_p): Likewise.
26633         * tests/test-truncf2.c (correct_result_p): Likewise.
26634         * tests/test-trunc2.c (correct_result_p): Likewise.
26635         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26636
26637 2007-10-20  Bruno Haible  <bruno@clisp.org>
26638
26639         * modules/ceil: New file.
26640         * m4/ceil.m4: New file.
26641         * doc/functions/ceil.texi: Mention the 'ceil' module.
26642
26643 2007-10-20  Bruno Haible  <bruno@clisp.org>
26644
26645         * modules/floor: New file.
26646         * m4/floor.m4: New file.
26647         * doc/functions/floor.texi: Mention the 'floor' module.
26648
26649 2007-10-20  Bruno Haible  <bruno@clisp.org>
26650
26651         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
26652         of %a.
26653         * modules/floorf-tests (Depends-on): Likewise.
26654         * modules/truncf-tests (Depends-on): Likewise.
26655         * modules/trunc-tests (Depends-on): Likewise.
26656         Reported by Ben Pfaff.
26657
26658 2007-10-19  Jim Meyering  <meyering@redhat.com>
26659
26660         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
26661         Don't bother testing specific errno values.  Just test ferror.
26662
26663         New module: xprintf
26664         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
26665
26666 2007-10-19  Bruno Haible  <bruno@clisp.org>
26667
26668         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
26669         syntax.
26670         * modules/javaexec (Makefile.am): Likewise.
26671         * modules/relocatable-prog (Makefile.am): Likewise.
26672         Suggested by Jim Meyering.
26673
26674 2007-10-18  Bruno Haible  <bruno@clisp.org>
26675
26676         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
26677         Reported by Jim Meyering.
26678
26679 2007-10-18  Eric Blake  <ebb9@byu.net>
26680
26681         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
26682
26683 2007-10-18  Bruno Haible  <bruno@clisp.org>
26684
26685         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
26686         the format string into writable memory. Needed in Fortify conditions.
26687
26688 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
26689             Bruno Haible  <bruno@clisp.org>
26690
26691         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
26692         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
26693         * modules/trim (Depends-on): Add mbchar.
26694         (configure.ac): Add gl_FUNC_MBRTOWC.
26695         (Makefile.am): Augment lib_SOURCES.
26696
26697 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
26698
26699         Modify glob.c to use fstatat and dirfd, to simplify it.
26700         Suggested by Eric Blake.
26701         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
26702         Don't include <stdbool.h>; not used.
26703         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
26704         (link_exists_p): Simplify implementation, since we can now assume
26705         dirfd and fstatat.
26706         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
26707
26708 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26709
26710         * gnulib-tool (func_get_dependencies): Fix sed script to
26711         match only tests.
26712
26713 2007-10-17  Bruno Haible  <bruno@clisp.org>
26714
26715         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
26716         allow locale names without encoding suffix.
26717         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26718         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26719
26720 2007-10-16  Bruno Haible  <bruno@clisp.org>
26721
26722         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
26723         * lib/getgroups.c (getgroups): Likewise.
26724         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
26725
26726 2007-10-16  Bruno Haible  <bruno@clisp.org>
26727
26728         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
26729         * modules/malloc-posix (License): Likewise.
26730         * modules/realloc-posix (License): Likewise.
26731         * modules/calloc-posix (License): Likewise.
26732         * modules/intprops (License): Change from GPL to LGPL, with
26733         Paul Eggert's approval.
26734
26735 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26736
26737         Merge glibc changes into lib/glob.c.
26738
26739         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
26740         2007-10-15 04:59:03 UTC.  Here are the changes:
26741
26742         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
26743
26744         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
26745
26746         * lib/glob.c: Add some branch prediction throughout.
26747
26748         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
26749
26750         [BZ #5103]
26751         * lib/glob.c (glob): Recognize patterns starting \/.
26752
26753         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
26754
26755         [BZ #3996]
26756         * lib/glob.c (attribute_hidden): Define if not defined.
26757         (glob): Unescape dirname, filename or username when needed and not
26758         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
26759         is NULL.  Handle unescaped [ in pattern without closing ].
26760         Don't pass GLOB_CHECK down to recursive glob for directories.
26761         (__glob_pattern_type): New function.
26762         (__glob_pattern_p): Implement using __glob_pattern_type.
26763         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
26764         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
26765         Remove unreachable code.
26766
26767         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
26768
26769         * lib/glob.c (glob_in_dir): Add some comments and asserts to
26770         explain why there are no leaks.
26771
26772         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
26773
26774         [BZ #3253]
26775         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
26776         time, rather allocate increasingly bigger arrays of pointers, if
26777         possible with alloca, if too large with malloc.
26778
26779 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26780
26781         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
26782         Problem reported by H.Merijn Brand in
26783         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
26784         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
26785         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
26786
26787 2007-10-15  Bruno Haible  <bruno@clisp.org>
26788
26789         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
26790         with explicit rpl_ prefix.
26791         * lib/fopen.c (fopen): Likewise.
26792         * lib/freopen.c (freopen): Likewise.
26793         * lib/iconv.c (iconv): Likewise.
26794         * lib/iconv_close.c (iconv_close): Likewise.
26795
26796 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26797
26798         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
26799
26800 2007-10-15  Bruno Haible  <bruno@clisp.org>
26801
26802         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
26803         <stddef.h> instead of <stdlib.h> since we only need NULL.
26804         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26805
26806 2007-10-15  Bruno Haible  <bruno@clisp.org>
26807
26808         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
26809         Replace paragraph talking about LIBOBJS.
26810         Reported by Colin Watson <cjwatson@debian.org>.
26811
26812 2007-10-15  Bruno Haible  <bruno@clisp.org>
26813
26814         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
26815         <stdlib.h> before using NULL.
26816
26817 2007-10-15  Simon Josefsson  <simon@josefsson.org>
26818
26819         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
26820         Reported by Albert Chin <china@thewrittenword.com>.
26821
26822 2007-10-14  Bruno Haible  <bruno@clisp.org>
26823
26824         * modules/iconv_open-utf-tests: New file.
26825         * tests/test-iconv-utf.c: New file.
26826
26827         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
26828         * modules/iconv_open-utf: New file.
26829         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
26830         (iconv, iconv_close): New declarations.
26831         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
26832         be defined.
26833         (iconv_open): Add special handling of conversion between UTF-8 and
26834         UTF-{16,32}{BE,LE}.
26835         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
26836         * lib/iconv_close.c: New file.
26837         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
26838         gl_FUNC_ICONV_OPEN.
26839         (gl_FUNC_ICONV_OPEN): Use it.
26840         (gl_FUNC_ICONV_OPEN_UTF): New macro.
26841         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
26842         and REPLACE_ICONV_UTF.
26843         * modules/iconv_open (Depends-on): Add c-strcase.
26844         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
26845         ICONV_CONST.
26846         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
26847
26848 2007-10-13  Albert Chin  <china@thewrittenword.com>
26849             Bruno Haible  <bruno@clisp.org>
26850
26851         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
26852         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
26853
26854 2007-10-13  Bruno Haible  <bruno@clisp.org>
26855
26856         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
26857         defined, use the ISO C99 inline semantics.
26858         * lib/argp.h (ARGP_EI): Likewise.
26859
26860 2007-10-13  Bruno Haible  <bruno@clisp.org>
26861
26862         Handle 'inline' change in gcc 4.3.0.
26863         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
26864         argp_fmtstream_write, argp_fmtstream_set_lmargin,
26865         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
26866         argp_fmtstream_point): Disable 'extern' declaration if the function
26867         definition is going to be provided inline.
26868         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
26869         semantics, not the ISO C99 inline semantics.
26870         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
26871         'extern' declaration if the function definition is going to be provided
26872         inline.
26873         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
26874         the GNU C inline semantics, not the ISO C99 inline semantics. With
26875         GCC 4.2, avoid a warning.
26876
26877 2007-10-13  Bruno Haible  <bruno@clisp.org>
26878
26879         * lib/freading.h (freading): Enable the use of __freading for
26880         glibc >= 2.7.
26881         * lib/freading.c (freading): Likewise.
26882
26883 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
26884
26885         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
26886         "warning: C99 inline functions are not supported; using GNU89".
26887
26888 2007-10-12  Bruno Haible  <bruno@clisp.org>
26889
26890         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
26891         of 2.
26892         * tests/test-ceilf2.c: New file.
26893         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
26894
26895         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
26896         * modules/ceilf-tests: Update.
26897
26898 2007-10-12  Bruno Haible  <bruno@clisp.org>
26899
26900         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
26901         of 2.
26902         * tests/test-floorf2.c: New file.
26903         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
26904
26905         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
26906         * modules/floorf-tests: Update.
26907
26908 2007-10-12  Bruno Haible  <bruno@clisp.org>
26909
26910         * tests/test-trunc2.c: New file.
26911         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
26912
26913         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
26914         * modules/trunc-tests: Update.
26915
26916 2007-10-12  Bruno Haible  <bruno@clisp.org>
26917
26918         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
26919         of 2.
26920         * tests/test-truncf2.c: New file.
26921         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
26922
26923         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
26924         * modules/truncf-tests: Update.
26925
26926 2007-10-11  Eric Blake  <ebb9@byu.net>
26927
26928         Don't claim strerror is broken on Interix.
26929         * doc/functions/strerror.texi (strerror): Known broken systems are
26930         now Solaris 8, and not Interix.
26931         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
26932         Interix on cross-compile.
26933         Reported by Martin Koeppe in
26934         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
26935
26936 2007-10-11  Bruno Haible  <bruno@clisp.org>
26937
26938         * modules/i-ring-tests: New file.
26939         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
26940         instead of assert.
26941
26942 2007-10-11  Bruno Haible  <bruno@clisp.org>
26943
26944         * modules/filenamecat-tests: New file.
26945         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
26946         * lib/filenamecat.c: Remove test code.
26947
26948 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
26949
26950         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
26951
26952         * lib/strerror.c: Include <string.h> always, to test interface,
26953         and to remove the need for the dummy.
26954         Include intprops.h to compute width instead of doing it ourselves
26955         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
26956         (strerror): Define it to return NULL if there's no system strerror.
26957         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
26958         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
26959         ancient pre-strerror Unix systems well any more.  Saying "unknown
26960         system error" is enough.
26961         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
26962         simpler strerror.c implementation.
26963         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
26964         Simplify the tests to reflect the simpler strerror implementation.
26965         * modules/strerror (Depends-on): Add intprops.
26966
26967 2007-10-09  Eric Blake  <ebb9@byu.net>
26968
26969         Silence test-fpending.
26970         * modules/fpending-tests (Files): Add wrapper script.
26971         * tests/test-fpending.sh: New file.
26972
26973 2007-10-09  Bruno Haible  <bruno@clisp.org>
26974
26975         * MODULES.html.sh (func_module): Don't create a hyperlink for
26976         function names like 'printf_frexp'.
26977         (Misc): Add crc, memxor.
26978         (Characteristics of floating types): New section.
26979         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
26980         isnanf-nolibm, signbit, trunc, truncf, truncl.
26981         (Enhancements for ISO C 99 functions): New subsection Input/output.
26982         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
26983         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
26984         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
26985         (Compatibility checks for POSIX:2001 functions): Add clock-time.
26986         (Enhancements for POSIX:2001 functions): Add chdir-long.
26987         (File system functions): Add areadlink, chdir-safer, read-file.
26988         Remove cycle-check.
26989         (File system as inode set): New section.
26990         (Date and time): Add gethrxtime.
26991         (Multithreading): Add openmp.
26992         (Internationalization functions): Add localename.
26993         (Unicode string functions): Add unistr/u*-mbsnlen.
26994         (Support for maintaining and releasing projects): Add git-version-gen.
26995         (Lone files): Remove directories.
26996
26997 2007-10-08  Ben Pfaff  <blp@gnu.org>
26998
26999         * lib/xmalloca.h: Fix typo in comment.
27000
27001 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27002
27003         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
27004         when avoiding problems with integer overflow.  Use a portable test
27005         instead.
27006
27007 2007-10-08  Simon Josefsson  <simon@josefsson.org>
27008
27009         * modules/dummy (License): Change to LGPLv2+.
27010         * modules/float (License): Likewise
27011         * modules/realloc (License): Likewise
27012         * modules/stdlib (License): Likewise
27013
27014 2007-10-07  Bruno Haible  <bruno@clisp.org>
27015
27016         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
27017         * floor.c (TWO_MANT_DIG): Likewise.
27018         * ceil.c (TWO_MANT_DIG): Likewise.
27019         Reported by Ben Pfaff.
27020
27021 2007-10-07  Bruno Haible  <bruno@clisp.org>
27022
27023         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
27024         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
27025         * lib/frexp.c (FUNC): Likewise.
27026         * lib/printf-frexp.h (printf_frexp): Likewise.
27027         * lib/printf-frexpl.h (printf_frexpl): Likewise.
27028         * lib/printf-frexp.c (FUNC): Likewise.
27029         Suggested by Jim Meyering.
27030
27031 2007-10-07  Jim Meyering  <meyering@redhat.com>
27032
27033         Make xnanosleep's integer overflow test more robust.
27034         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
27035         so that gcc-4.3.0 doesn't optimize away this test for overflow.
27036
27037 2007-10-07  Bruno Haible  <bruno@clisp.org>
27038
27039         * NEWS: Mention the license change.
27040
27041         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
27042         abbreviations in the modules files.
27043
27044         Change copyright notice from GPLv2+ to GPLv3+.
27045         * README: Change copyright notice.
27046         * MODULES.html.sh: Likewise.
27047         * build-aux/bootstrap.conf: Likewise.
27048         * build-aux/config.libpath: Likewise.
27049         * build-aux/csharpcomp.sh.in: Likewise.
27050         * build-aux/csharpexec.sh.in: Likewise.
27051         * build-aux/install-reloc: Likewise.
27052         * build-aux/javacomp.sh.in: Likewise.
27053         * build-aux/javaexec.sh.in: Likewise.
27054         * build-aux/ldd.sh.in: Likewise.
27055         * build-aux/reloc-ldflags: Likewise.
27056         * build-aux/relocatable.sh.in: Likewise.
27057         * build-aux/x-to-1.in: Likewise.
27058         * check-module: Likewise.
27059         * config/srclistvars.sh: Likewise.
27060         * gnulib-tool: Likewise.
27061         * lib/acl-internal.h: Likewise.
27062         * lib/acl.c: Likewise.
27063         * lib/acl.h: Likewise.
27064         * lib/acl_entries.c: Likewise.
27065         * lib/areadlink-with-size.c: Likewise.
27066         * lib/areadlink.c: Likewise.
27067         * lib/areadlink.h: Likewise.
27068         * lib/argmatch.c: Likewise.
27069         * lib/argmatch.h: Likewise.
27070         * lib/argp-ba.c: Likewise.
27071         * lib/argp-eexst.c: Likewise.
27072         * lib/argp-fmtstream.c: Likewise.
27073         * lib/argp-fmtstream.h: Likewise.
27074         * lib/argp-fs-xinl.c: Likewise.
27075         * lib/argp-help.c: Likewise.
27076         * lib/argp-namefrob.h: Likewise.
27077         * lib/argp-parse.c: Likewise.
27078         * lib/argp-pin.c: Likewise.
27079         * lib/argp-pv.c: Likewise.
27080         * lib/argp-pvh.c: Likewise.
27081         * lib/argp-xinl.c: Likewise.
27082         * lib/argp.h: Likewise.
27083         * lib/at-func.c: Likewise.
27084         * lib/atanl.c: Likewise.
27085         * lib/backupfile.c: Likewise.
27086         * lib/backupfile.h: Likewise.
27087         * lib/basename.c: Likewise.
27088         * lib/binary-io.h: Likewise.
27089         * lib/byteswap.in.h: Likewise.
27090         * lib/c-stack.c: Likewise.
27091         * lib/c-stack.h: Likewise.
27092         * lib/c-strcasestr.c: Likewise.
27093         * lib/c-strcasestr.h: Likewise.
27094         * lib/c-strstr.c: Likewise.
27095         * lib/c-strstr.h: Likewise.
27096         * lib/c-strtod.c: Likewise.
27097         * lib/calloc.c: Likewise.
27098         * lib/canon-host.c: Likewise.
27099         * lib/canon-host.h: Likewise.
27100         * lib/canonicalize-lgpl.c: Likewise.
27101         * lib/canonicalize.c: Likewise.
27102         * lib/canonicalize.h: Likewise.
27103         * lib/ceil.c: Likewise.
27104         * lib/ceilf.c: Likewise.
27105         * lib/ceill.c: Likewise.
27106         * lib/chdir-long.c: Likewise.
27107         * lib/chdir-long.h: Likewise.
27108         * lib/chdir-safer.c: Likewise.
27109         * lib/chdir-safer.h: Likewise.
27110         * lib/chown.c: Likewise.
27111         * lib/classpath.c: Likewise.
27112         * lib/classpath.h: Likewise.
27113         * lib/clean-temp.c: Likewise.
27114         * lib/clean-temp.h: Likewise.
27115         * lib/cloexec.c: Likewise.
27116         * lib/close-stream.c: Likewise.
27117         * lib/closein.c: Likewise.
27118         * lib/closein.h: Likewise.
27119         * lib/closeout.c: Likewise.
27120         * lib/closeout.h: Likewise.
27121         * lib/concat-filename.c: Likewise.
27122         * lib/copy-file.c: Likewise.
27123         * lib/copy-file.h: Likewise.
27124         * lib/count-one-bits.h: Likewise.
27125         * lib/crc.c: Likewise.
27126         * lib/crc.h: Likewise.
27127         * lib/creat-safer.c: Likewise.
27128         * lib/csharpcomp.c: Likewise.
27129         * lib/csharpcomp.h: Likewise.
27130         * lib/csharpexec.c: Likewise.
27131         * lib/csharpexec.h: Likewise.
27132         * lib/cycle-check.c: Likewise.
27133         * lib/cycle-check.h: Likewise.
27134         * lib/diacrit.c: Likewise.
27135         * lib/diacrit.h: Likewise.
27136         * lib/diffseq.h: Likewise.
27137         * lib/dirchownmod.c: Likewise.
27138         * lib/dirent.in.h: Likewise.
27139         * lib/dirfd.c: Likewise.
27140         * lib/dirfd.h: Likewise.
27141         * lib/dirname.c: Likewise.
27142         * lib/dirname.h: Likewise.
27143         * lib/dummy.c: Likewise.
27144         * lib/dup-safer.c: Likewise.
27145         * lib/dup2.c: Likewise.
27146         * lib/eealloc.h: Likewise.
27147         * lib/error.c: Likewise.
27148         * lib/error.h: Likewise.
27149         * lib/euidaccess.c: Likewise.
27150         * lib/exclude.c: Likewise.
27151         * lib/exclude.h: Likewise.
27152         * lib/execute.c: Likewise.
27153         * lib/execute.h: Likewise.
27154         * lib/exitfail.c: Likewise.
27155         * lib/exitfail.h: Likewise.
27156         * lib/expl.c: Likewise.
27157         * lib/fatal-signal.c: Likewise.
27158         * lib/fatal-signal.h: Likewise.
27159         * lib/fbufmode.c: Likewise.
27160         * lib/fbufmode.h: Likewise.
27161         * lib/fchdir.c: Likewise.
27162         * lib/fchmodat.c: Likewise.
27163         * lib/fchownat.c: Likewise.
27164         * lib/fcntl--.h: Likewise.
27165         * lib/fcntl-safer.h: Likewise.
27166         * lib/fcntl.in.h: Likewise.
27167         * lib/fd-safer.c: Likewise.
27168         * lib/fflush.c: Likewise.
27169         * lib/file-has-acl.c: Likewise.
27170         * lib/file-set.c: Likewise.
27171         * lib/file-type.c: Likewise.
27172         * lib/file-type.h: Likewise.
27173         * lib/fileblocks.c: Likewise.
27174         * lib/filemode.c: Likewise.
27175         * lib/filemode.h: Likewise.
27176         * lib/filename.h: Likewise.
27177         * lib/filenamecat.c: Likewise.
27178         * lib/filenamecat.h: Likewise.
27179         * lib/findprog.c: Likewise.
27180         * lib/findprog.h: Likewise.
27181         * lib/float.in.h: Likewise.
27182         * lib/floor.c: Likewise.
27183         * lib/floorf.c: Likewise.
27184         * lib/floorl.c: Likewise.
27185         * lib/fopen-safer.c: Likewise.
27186         * lib/fopen.c: Likewise.
27187         * lib/fpending.c: Likewise.
27188         * lib/fpending.h: Likewise.
27189         * lib/fprintf.c: Likewise.
27190         * lib/fprintftime.h: Likewise.
27191         * lib/fpucw.h: Likewise.
27192         * lib/fpurge.c: Likewise.
27193         * lib/fpurge.h: Likewise.
27194         * lib/freadable.c: Likewise.
27195         * lib/freadable.h: Likewise.
27196         * lib/freadahead.c: Likewise.
27197         * lib/freadahead.h: Likewise.
27198         * lib/freading.c: Likewise.
27199         * lib/freading.h: Likewise.
27200         * lib/free.c: Likewise.
27201         * lib/freopen.c: Likewise.
27202         * lib/frexp.c: Likewise.
27203         * lib/frexpl.c: Likewise.
27204         * lib/fseek.c: Likewise.
27205         * lib/fseterr.c: Likewise.
27206         * lib/fseterr.h: Likewise.
27207         * lib/fstatat.c: Likewise.
27208         * lib/fstrcmp.c: Likewise.
27209         * lib/fstrcmp.h: Likewise.
27210         * lib/fsusage.c: Likewise.
27211         * lib/fsusage.h: Likewise.
27212         * lib/ftell.c: Likewise.
27213         * lib/ftello.c: Likewise.
27214         * lib/fts-cycle.c: Likewise.
27215         * lib/fts.c: Likewise.
27216         * lib/fts_.h: Likewise.
27217         * lib/full-read.c: Likewise.
27218         * lib/full-read.h: Likewise.
27219         * lib/full-write.c: Likewise.
27220         * lib/full-write.h: Likewise.
27221         * lib/fwritable.c: Likewise.
27222         * lib/fwritable.h: Likewise.
27223         * lib/fwriteerror.c: Likewise.
27224         * lib/fwriteerror.h: Likewise.
27225         * lib/fwriting.c: Likewise.
27226         * lib/fwriting.h: Likewise.
27227         * lib/gcd.c: Likewise.
27228         * lib/gcd.h: Likewise.
27229         * lib/getcwd.c: Likewise.
27230         * lib/getdate.h: Likewise.
27231         * lib/getdate.y: Likewise.
27232         * lib/getdomainname.c: Likewise.
27233         * lib/getdomainname.h: Likewise.
27234         * lib/getgroups.c: Likewise.
27235         * lib/gethostname.c: Likewise.
27236         * lib/gethrxtime.c: Likewise.
27237         * lib/gethrxtime.h: Likewise.
27238         * lib/getloadavg.c: Likewise.
27239         * lib/getndelim2.c: Likewise.
27240         * lib/getndelim2.h: Likewise.
27241         * lib/getnline.c: Likewise.
27242         * lib/getnline.h: Likewise.
27243         * lib/getopt.c: Likewise.
27244         * lib/getopt.in.h: Likewise.
27245         * lib/getopt1.c: Likewise.
27246         * lib/getopt_int.h: Likewise.
27247         * lib/getpagesize.h: Likewise.
27248         * lib/getsubopt.c: Likewise.
27249         * lib/gettime.c: Likewise.
27250         * lib/getugroups.c: Likewise.
27251         * lib/getugroups.h: Likewise.
27252         * lib/getusershell.c: Likewise.
27253         * lib/gl_anyavltree_list1.h: Likewise.
27254         * lib/gl_anyavltree_list2.h: Likewise.
27255         * lib/gl_anyhash_list1.h: Likewise.
27256         * lib/gl_anyhash_list2.h: Likewise.
27257         * lib/gl_anylinked_list1.h: Likewise.
27258         * lib/gl_anylinked_list2.h: Likewise.
27259         * lib/gl_anyrbtree_list1.h: Likewise.
27260         * lib/gl_anyrbtree_list2.h: Likewise.
27261         * lib/gl_anytree_list1.h: Likewise.
27262         * lib/gl_anytree_list2.h: Likewise.
27263         * lib/gl_anytree_oset.h: Likewise.
27264         * lib/gl_anytreehash_list1.h: Likewise.
27265         * lib/gl_anytreehash_list2.h: Likewise.
27266         * lib/gl_array_list.c: Likewise.
27267         * lib/gl_array_list.h: Likewise.
27268         * lib/gl_array_oset.c: Likewise.
27269         * lib/gl_array_oset.h: Likewise.
27270         * lib/gl_avltree_list.c: Likewise.
27271         * lib/gl_avltree_list.h: Likewise.
27272         * lib/gl_avltree_oset.c: Likewise.
27273         * lib/gl_avltree_oset.h: Likewise.
27274         * lib/gl_avltreehash_list.c: Likewise.
27275         * lib/gl_avltreehash_list.h: Likewise.
27276         * lib/gl_carray_list.c: Likewise.
27277         * lib/gl_carray_list.h: Likewise.
27278         * lib/gl_linked_list.c: Likewise.
27279         * lib/gl_linked_list.h: Likewise.
27280         * lib/gl_linkedhash_list.c: Likewise.
27281         * lib/gl_linkedhash_list.h: Likewise.
27282         * lib/gl_list.c: Likewise.
27283         * lib/gl_list.h: Likewise.
27284         * lib/gl_oset.c: Likewise.
27285         * lib/gl_oset.h: Likewise.
27286         * lib/gl_rbtree_list.c: Likewise.
27287         * lib/gl_rbtree_list.h: Likewise.
27288         * lib/gl_rbtree_oset.c: Likewise.
27289         * lib/gl_rbtree_oset.h: Likewise.
27290         * lib/gl_rbtreehash_list.c: Likewise.
27291         * lib/gl_rbtreehash_list.h: Likewise.
27292         * lib/gl_sublist.c: Likewise.
27293         * lib/gl_sublist.h: Likewise.
27294         * lib/group-member.c: Likewise.
27295         * lib/group-member.h: Likewise.
27296         * lib/hard-locale.c: Likewise.
27297         * lib/hard-locale.h: Likewise.
27298         * lib/hash-pjw.c: Likewise.
27299         * lib/hash-pjw.h: Likewise.
27300         * lib/hash-triple.c: Likewise.
27301         * lib/hash.c: Likewise.
27302         * lib/hash.h: Likewise.
27303         * lib/human.c: Likewise.
27304         * lib/human.h: Likewise.
27305         * lib/i-ring.c: Likewise.
27306         * lib/i-ring.h: Likewise.
27307         * lib/idcache.c: Likewise.
27308         * lib/imaxabs.c: Likewise.
27309         * lib/imaxdiv.c: Likewise.
27310         * lib/inet_pton.c: Likewise.
27311         * lib/inet_pton.h: Likewise.
27312         * lib/intprops.h: Likewise.
27313         * lib/inttostr.c: Likewise.
27314         * lib/inttostr.h: Likewise.
27315         * lib/inttypes.in.h: Likewise.
27316         * lib/isapipe.c: Likewise.
27317         * lib/isdir.c: Likewise.
27318         * lib/isnan.c: Likewise.
27319         * lib/isnan.h: Likewise.
27320         * lib/isnanf.c: Likewise.
27321         * lib/isnanf.h: Likewise.
27322         * lib/isnanl-nolibm.h: Likewise.
27323         * lib/isnanl.c: Likewise.
27324         * lib/isnanl.h: Likewise.
27325         * lib/javacomp.c: Likewise.
27326         * lib/javacomp.h: Likewise.
27327         * lib/javaexec.c: Likewise.
27328         * lib/javaexec.h: Likewise.
27329         * lib/javaversion.c: Likewise.
27330         * lib/javaversion.h: Likewise.
27331         * lib/javaversion.java: Likewise.
27332         * lib/lbrkprop.h: Likewise.
27333         * lib/lchmod.h: Likewise.
27334         * lib/lchown.c: Likewise.
27335         * lib/ldexpl.c: Likewise.
27336         * lib/linebreak.c: Likewise.
27337         * lib/linebreak.h: Likewise.
27338         * lib/linebuffer.c: Likewise.
27339         * lib/linebuffer.h: Likewise.
27340         * lib/locale.in.h: Likewise.
27341         * lib/logl.c: Likewise.
27342         * lib/long-options.c: Likewise.
27343         * lib/long-options.h: Likewise.
27344         * lib/lstat.c: Likewise.
27345         * lib/lstat.h: Likewise.
27346         * lib/math.in.h: Likewise.
27347         * lib/mbchar.c: Likewise.
27348         * lib/mbchar.h: Likewise.
27349         * lib/mbfile.h: Likewise.
27350         * lib/mbiter.h: Likewise.
27351         * lib/mbscasecmp.c: Likewise.
27352         * lib/mbscasestr.c: Likewise.
27353         * lib/mbschr.c: Likewise.
27354         * lib/mbscspn.c: Likewise.
27355         * lib/mbslen.c: Likewise.
27356         * lib/mbsncasecmp.c: Likewise.
27357         * lib/mbsnlen.c: Likewise.
27358         * lib/mbspbrk.c: Likewise.
27359         * lib/mbspcasecmp.c: Likewise.
27360         * lib/mbsrchr.c: Likewise.
27361         * lib/mbssep.c: Likewise.
27362         * lib/mbsspn.c: Likewise.
27363         * lib/mbsstr.c: Likewise.
27364         * lib/mbstok_r.c: Likewise.
27365         * lib/mbswidth.c: Likewise.
27366         * lib/mbswidth.h: Likewise.
27367         * lib/mbuiter.h: Likewise.
27368         * lib/memcasecmp.c: Likewise.
27369         * lib/memcasecmp.h: Likewise.
27370         * lib/memchr.c: Likewise.
27371         * lib/memcmp.c: Likewise.
27372         * lib/memcoll.c: Likewise.
27373         * lib/memcoll.h: Likewise.
27374         * lib/memcpy.c: Likewise.
27375         * lib/memrchr.c: Likewise.
27376         * lib/mkancesdirs.c: Likewise.
27377         * lib/mkdir-p.c: Likewise.
27378         * lib/mkdir-p.h: Likewise.
27379         * lib/mkdir.c: Likewise.
27380         * lib/mkdirat.c: Likewise.
27381         * lib/mkdtemp.c: Likewise.
27382         * lib/mkstemp-safer.c: Likewise.
27383         * lib/mkstemp.c: Likewise.
27384         * lib/modechange.c: Likewise.
27385         * lib/modechange.h: Likewise.
27386         * lib/mountlist.c: Likewise.
27387         * lib/mountlist.h: Likewise.
27388         * lib/mpsort.c: Likewise.
27389         * lib/nanosleep.c: Likewise.
27390         * lib/obstack.c: Likewise.
27391         * lib/obstack.h: Likewise.
27392         * lib/open-safer.c: Likewise.
27393         * lib/open.c: Likewise.
27394         * lib/openat-die.c: Likewise.
27395         * lib/openat-priv.h: Likewise.
27396         * lib/openat-proc.c: Likewise.
27397         * lib/openat.c: Likewise.
27398         * lib/openat.h: Likewise.
27399         * lib/pagealign_alloc.c: Likewise.
27400         * lib/pagealign_alloc.h: Likewise.
27401         * lib/physmem.c: Likewise.
27402         * lib/physmem.h: Likewise.
27403         * lib/pipe-safer.c: Likewise.
27404         * lib/pipe.c: Likewise.
27405         * lib/pipe.h: Likewise.
27406         * lib/posixtm.c: Likewise.
27407         * lib/posixtm.h: Likewise.
27408         * lib/posixver.c: Likewise.
27409         * lib/printf-frexp.c: Likewise.
27410         * lib/printf-frexp.h: Likewise.
27411         * lib/printf-frexpl.c: Likewise.
27412         * lib/printf-frexpl.h: Likewise.
27413         * lib/printf.c: Likewise.
27414         * lib/progname.c: Likewise.
27415         * lib/progname.h: Likewise.
27416         * lib/progreloc.c: Likewise.
27417         * lib/putenv.c: Likewise.
27418         * lib/quote.c: Likewise.
27419         * lib/quote.h: Likewise.
27420         * lib/quotearg.c: Likewise.
27421         * lib/quotearg.h: Likewise.
27422         * lib/raise.c: Likewise.
27423         * lib/readline.c: Likewise.
27424         * lib/readline.h: Likewise.
27425         * lib/readlink.c: Likewise.
27426         * lib/readtokens.c: Likewise.
27427         * lib/readtokens.h: Likewise.
27428         * lib/readtokens0.c: Likewise.
27429         * lib/readtokens0.h: Likewise.
27430         * lib/readutmp.c: Likewise.
27431         * lib/readutmp.h: Likewise.
27432         * lib/realloc.c: Likewise.
27433         * lib/relocwrapper.c: Likewise.
27434         * lib/rename-dest-slash.c: Likewise.
27435         * lib/rename.c: Likewise.
27436         * lib/rmdir.c: Likewise.
27437         * lib/rpmatch.c: Likewise.
27438         * lib/safe-read.c: Likewise.
27439         * lib/safe-read.h: Likewise.
27440         * lib/safe-write.c: Likewise.
27441         * lib/safe-write.h: Likewise.
27442         * lib/same-inode.h: Likewise.
27443         * lib/same.c: Likewise.
27444         * lib/same.h: Likewise.
27445         * lib/save-cwd.c: Likewise.
27446         * lib/save-cwd.h: Likewise.
27447         * lib/savedir.c: Likewise.
27448         * lib/savedir.h: Likewise.
27449         * lib/savewd.c: Likewise.
27450         * lib/savewd.h: Likewise.
27451         * lib/search.in.h: Likewise.
27452         * lib/setenv.c: Likewise.
27453         * lib/setenv.h: Likewise.
27454         * lib/settime.c: Likewise.
27455         * lib/sh-quote.c: Likewise.
27456         * lib/sh-quote.h: Likewise.
27457         * lib/sig2str.c: Likewise.
27458         * lib/sig2str.h: Likewise.
27459         * lib/signal.in.h: Likewise.
27460         * lib/signbitd.c: Likewise.
27461         * lib/signbitf.c: Likewise.
27462         * lib/signbitl.c: Likewise.
27463         * lib/sigprocmask.c: Likewise.
27464         * lib/sincosl.c: Likewise.
27465         * lib/sleep.c: Likewise.
27466         * lib/sprintf.c: Likewise.
27467         * lib/sqrtl.c: Likewise.
27468         * lib/stat-time.h: Likewise.
27469         * lib/stdio--.h: Likewise.
27470         * lib/stdio-safer.h: Likewise.
27471         * lib/stdlib--.h: Likewise.
27472         * lib/stdlib-safer.h: Likewise.
27473         * lib/stdlib.in.h: Likewise.
27474         * lib/stpcpy.c: Likewise.
27475         * lib/stpncpy.c: Likewise.
27476         * lib/strchrnul.c: Likewise.
27477         * lib/strcspn.c: Likewise.
27478         * lib/strerror.c: Likewise.
27479         * lib/strftime.c: Likewise.
27480         * lib/strftime.h: Likewise.
27481         * lib/striconveh.c: Likewise.
27482         * lib/striconveh.h: Likewise.
27483         * lib/striconveha.c: Likewise.
27484         * lib/striconveha.h: Likewise.
27485         * lib/stripslash.c: Likewise.
27486         * lib/strnlen1.c: Likewise.
27487         * lib/strnlen1.h: Likewise.
27488         * lib/strtod.c: Likewise.
27489         * lib/strtoimax.c: Likewise.
27490         * lib/strtok_r.c: Likewise.
27491         * lib/strtol.c: Likewise.
27492         * lib/strtoll.c: Likewise.
27493         * lib/strtoul.c: Likewise.
27494         * lib/strtoull.c: Likewise.
27495         * lib/sysexits.in.h: Likewise.
27496         * lib/tempname.c: Likewise.
27497         * lib/tempname.h: Likewise.
27498         * lib/timespec.h: Likewise.
27499         * lib/tls.c: Likewise.
27500         * lib/tls.h: Likewise.
27501         * lib/tmpdir.c: Likewise.
27502         * lib/tmpdir.h: Likewise.
27503         * lib/tmpfile-safer.c: Likewise.
27504         * lib/tmpfile.c: Likewise.
27505         * lib/trigl.c: Likewise.
27506         * lib/trigl.h: Likewise.
27507         * lib/trim.c: Likewise.
27508         * lib/trim.h: Likewise.
27509         * lib/trunc.c: Likewise.
27510         * lib/truncf.c: Likewise.
27511         * lib/truncl.c: Likewise.
27512         * lib/tsearch.c: Likewise.
27513         * lib/unicodeio.c: Likewise.
27514         * lib/unicodeio.h: Likewise.
27515         * lib/unistd--.h: Likewise.
27516         * lib/unistd-safer.h: Likewise.
27517         * lib/unistdio/ulc-fprintf.c: Likewise.
27518         * lib/unistdio/ulc-vfprintf.c: Likewise.
27519         * lib/unlinkdir.c: Likewise.
27520         * lib/unlinkdir.h: Likewise.
27521         * lib/unlocked-io.h: Likewise.
27522         * lib/unsetenv.c: Likewise.
27523         * lib/userspec.c: Likewise.
27524         * lib/utime.c: Likewise.
27525         * lib/utimecmp.c: Likewise.
27526         * lib/utimecmp.h: Likewise.
27527         * lib/utimens.c: Likewise.
27528         * lib/verify.h: Likewise.
27529         * lib/verror.c: Likewise.
27530         * lib/verror.h: Likewise.
27531         * lib/version-etc-fsf.c: Likewise.
27532         * lib/version-etc.c: Likewise.
27533         * lib/version-etc.h: Likewise.
27534         * lib/vfprintf.c: Likewise.
27535         * lib/vprintf.c: Likewise.
27536         * lib/vsprintf.c: Likewise.
27537         * lib/w32spawn.h: Likewise.
27538         * lib/wait-process.c: Likewise.
27539         * lib/wait-process.h: Likewise.
27540         * lib/wcwidth.c: Likewise.
27541         * lib/write-any-file.c: Likewise.
27542         * lib/xalloc-die.c: Likewise.
27543         * lib/xalloc.h: Likewise.
27544         * lib/xasprintf.c: Likewise.
27545         * lib/xgetcwd.c: Likewise.
27546         * lib/xgetcwd.h: Likewise.
27547         * lib/xgetdomainname.c: Likewise.
27548         * lib/xgetdomainname.h: Likewise.
27549         * lib/xgethostname.c: Likewise.
27550         * lib/xmalloc.c: Likewise.
27551         * lib/xmalloca.c: Likewise.
27552         * lib/xmalloca.h: Likewise.
27553         * lib/xmemcoll.c: Likewise.
27554         * lib/xnanosleep.c: Likewise.
27555         * lib/xreadlink.c: Likewise.
27556         * lib/xreadlink.h: Likewise.
27557         * lib/xsetenv.c: Likewise.
27558         * lib/xsetenv.h: Likewise.
27559         * lib/xstriconv.c: Likewise.
27560         * lib/xstriconv.h: Likewise.
27561         * lib/xstrndup.c: Likewise.
27562         * lib/xstrndup.h: Likewise.
27563         * lib/xstrtod.c: Likewise.
27564         * lib/xstrtod.h: Likewise.
27565         * lib/xstrtol-error.c: Likewise.
27566         * lib/xstrtol.c: Likewise.
27567         * lib/xstrtol.h: Likewise.
27568         * lib/xtime.h: Likewise.
27569         * lib/xvasprintf.c: Likewise.
27570         * lib/xvasprintf.h: Likewise.
27571         * lib/yesno.c: Likewise.
27572         * lib/yesno.h: Likewise.
27573         * posix-modules: Likewise.
27574         * tests/test-alloca-opt.c: Likewise.
27575         * tests/test-arcfour.c: Likewise.
27576         * tests/test-arctwo.c: Likewise.
27577         * tests/test-argmatch.c: Likewise.
27578         * tests/test-argp-2.sh: Likewise.
27579         * tests/test-argp.c: Likewise.
27580         * tests/test-arpa_inet.c: Likewise.
27581         * tests/test-array_list.c: Likewise.
27582         * tests/test-array_oset.c: Likewise.
27583         * tests/test-atexit.c: Likewise.
27584         * tests/test-avltree_list.c: Likewise.
27585         * tests/test-avltree_oset.c: Likewise.
27586         * tests/test-avltreehash_list.c: Likewise.
27587         * tests/test-base64.c: Likewise.
27588         * tests/test-binary-io.c: Likewise.
27589         * tests/test-byteswap.c: Likewise.
27590         * tests/test-c-ctype.c: Likewise.
27591         * tests/test-c-strcasecmp.c: Likewise.
27592         * tests/test-c-strcasestr.c: Likewise.
27593         * tests/test-c-strncasecmp.c: Likewise.
27594         * tests/test-c-strstr.c: Likewise.
27595         * tests/test-canonicalize-lgpl.c: Likewise.
27596         * tests/test-canonicalize.c: Likewise.
27597         * tests/test-carray_list.c: Likewise.
27598         * tests/test-ceilf.c: Likewise.
27599         * tests/test-ceill.c: Likewise.
27600         * tests/test-count-one-bits.c: Likewise.
27601         * tests/test-crc.c: Likewise.
27602         * tests/test-dirname.c: Likewise.
27603         * tests/test-fbufmode.c: Likewise.
27604         * tests/test-fcntl.c: Likewise.
27605         * tests/test-fflush.c: Likewise.
27606         * tests/test-floorf.c: Likewise.
27607         * tests/test-floorl.c: Likewise.
27608         * tests/test-fopen.c: Likewise.
27609         * tests/test-fprintf-posix.c: Likewise.
27610         * tests/test-fprintf-posix.h: Likewise.
27611         * tests/test-fpurge.c: Likewise.
27612         * tests/test-freadable.c: Likewise.
27613         * tests/test-freadahead.c: Likewise.
27614         * tests/test-freading.c: Likewise.
27615         * tests/test-freopen.c: Likewise.
27616         * tests/test-frexp.c: Likewise.
27617         * tests/test-frexpl.c: Likewise.
27618         * tests/test-fseek.c: Likewise.
27619         * tests/test-fseeko.c: Likewise.
27620         * tests/test-fseterr.c: Likewise.
27621         * tests/test-fstrcmp.c: Likewise.
27622         * tests/test-ftell.c: Likewise.
27623         * tests/test-ftello.c: Likewise.
27624         * tests/test-fwritable.c: Likewise.
27625         * tests/test-fwriting.c: Likewise.
27626         * tests/test-getaddrinfo.c: Likewise.
27627         * tests/test-getpass.c: Likewise.
27628         * tests/test-gettimeofday.c: Likewise.
27629         * tests/test-hmac-md5.c: Likewise.
27630         * tests/test-hmac-sha1.c: Likewise.
27631         * tests/test-iconv.c: Likewise.
27632         * tests/test-iconvme.c: Likewise.
27633         * tests/test-inttypes.c: Likewise.
27634         * tests/test-isnan.c: Likewise.
27635         * tests/test-isnanf.c: Likewise.
27636         * tests/test-isnanl-nolibm.c: Likewise.
27637         * tests/test-isnanl.c: Likewise.
27638         * tests/test-isnanl.h: Likewise.
27639         * tests/test-ldexpl.c: Likewise.
27640         * tests/test-linked_list.c: Likewise.
27641         * tests/test-linkedhash_list.c: Likewise.
27642         * tests/test-locale.c: Likewise.
27643         * tests/test-localename.c: Likewise.
27644         * tests/test-lock.c: Likewise.
27645         * tests/test-lseek.c: Likewise.
27646         * tests/test-malloca.c: Likewise.
27647         * tests/test-math.c: Likewise.
27648         * tests/test-mbscasecmp.c: Likewise.
27649         * tests/test-mbscasestr1.c: Likewise.
27650         * tests/test-mbscasestr2.c: Likewise.
27651         * tests/test-mbscasestr3.c: Likewise.
27652         * tests/test-mbscasestr4.c: Likewise.
27653         * tests/test-mbschr.c: Likewise.
27654         * tests/test-mbscspn.c: Likewise.
27655         * tests/test-mbsncasecmp.c: Likewise.
27656         * tests/test-mbspbrk.c: Likewise.
27657         * tests/test-mbspcasecmp.c: Likewise.
27658         * tests/test-mbsrchr.c: Likewise.
27659         * tests/test-mbsspn.c: Likewise.
27660         * tests/test-mbsstr1.c: Likewise.
27661         * tests/test-mbsstr2.c: Likewise.
27662         * tests/test-mbsstr3.c: Likewise.
27663         * tests/test-md5.c: Likewise.
27664         * tests/test-memmem.c: Likewise.
27665         * tests/test-netinet_in.c: Likewise.
27666         * tests/test-open.c: Likewise.
27667         * tests/test-printf-frexp.c: Likewise.
27668         * tests/test-printf-frexpl.c: Likewise.
27669         * tests/test-printf-posix.c: Likewise.
27670         * tests/test-printf-posix.h: Likewise.
27671         * tests/test-rbtree_list.c: Likewise.
27672         * tests/test-rbtree_oset.c: Likewise.
27673         * tests/test-rbtreehash_list.c: Likewise.
27674         * tests/test-read-file.c: Likewise.
27675         * tests/test-rijndael.c: Likewise.
27676         * tests/test-search.c: Likewise.
27677         * tests/test-signbit.c: Likewise.
27678         * tests/test-sleep.c: Likewise.
27679         * tests/test-snprintf-posix.c: Likewise.
27680         * tests/test-snprintf-posix.h: Likewise.
27681         * tests/test-snprintf.c: Likewise.
27682         * tests/test-sprintf-posix.c: Likewise.
27683         * tests/test-sprintf-posix.h: Likewise.
27684         * tests/test-stat-time.c: Likewise.
27685         * tests/test-stdbool.c: Likewise.
27686         * tests/test-stdint.c: Likewise.
27687         * tests/test-stdio.c: Likewise.
27688         * tests/test-stdlib.c: Likewise.
27689         * tests/test-stpncpy.c: Likewise.
27690         * tests/test-strcasestr.c: Likewise.
27691         * tests/test-striconv.c: Likewise.
27692         * tests/test-striconveh.c: Likewise.
27693         * tests/test-striconveha.c: Likewise.
27694         * tests/test-string.c: Likewise.
27695         * tests/test-sys_select.c: Likewise.
27696         * tests/test-sys_socket.c: Likewise.
27697         * tests/test-sys_stat.c: Likewise.
27698         * tests/test-sys_time.c: Likewise.
27699         * tests/test-sysexits.c: Likewise.
27700         * tests/test-time.c: Likewise.
27701         * tests/test-tls.c: Likewise.
27702         * tests/test-trunc.c: Likewise.
27703         * tests/test-truncf.c: Likewise.
27704         * tests/test-truncl.c: Likewise.
27705         * tests/test-unistd.c: Likewise.
27706         * tests/test-vasnprintf-posix.c: Likewise.
27707         * tests/test-vasnprintf-posix2.c: Likewise.
27708         * tests/test-vasnprintf.c: Likewise.
27709         * tests/test-vasprintf-posix.c: Likewise.
27710         * tests/test-vasprintf.c: Likewise.
27711         * tests/test-verify.c: Likewise.
27712         * tests/test-vfprintf-posix.c: Likewise.
27713         * tests/test-vprintf-posix.c: Likewise.
27714         * tests/test-vsnprintf-posix.c: Likewise.
27715         * tests/test-vsnprintf.c: Likewise.
27716         * tests/test-vsprintf-posix.c: Likewise.
27717         * tests/test-wchar.c: Likewise.
27718         * tests/test-wctype.c: Likewise.
27719         * tests/test-wcwidth.c: Likewise.
27720         * tests/test-xstrtol.c: Likewise.
27721         * tests/test-xvasprintf.c: Likewise.
27722         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
27723         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
27724         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27725         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27726         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27727         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
27728         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27729         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27730         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27731         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
27732         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27733         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27734         * tests/uniname/test-uninames.c: Likewise.
27735         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
27736         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
27737         * tests/unistdio/test-u16-printf1.h: Likewise.
27738         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
27739         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27740         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27741         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27742         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27743         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27744         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27745         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
27746         * tests/unistdio/test-u32-printf1.h: Likewise.
27747         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27748         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27749         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27750         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27751         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27752         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27753         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
27754         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
27755         * tests/unistdio/test-u8-printf1.h: Likewise.
27756         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
27757         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
27758         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
27759         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
27760         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27761         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27762         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27763         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
27764         * tests/unistdio/test-ulc-printf1.h: Likewise.
27765         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27766         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27767         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27768         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27769         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27770         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27771         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27772         * tests/uniwidth/test-u16-width.c: Likewise.
27773         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27774         * tests/uniwidth/test-u32-width.c: Likewise.
27775         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27776         * tests/uniwidth/test-u8-width.c: Likewise.
27777         * tests/uniwidth/test-uc_width.c: Likewise.
27778         * config/srclist-update: Likewise.
27779         (fixlicense): Update to GPLv3+.
27780
27781         Change copyright notice from LGPLv2.1+ to LGPLv3+.
27782         * tests/test-tsearch.c: Change copyright notice.
27783
27784         Change copyright notice from LGPLv2.0+ to LGPLv3+.
27785         * lib/c-strcaseeq.h: Change copyright notice.
27786         * lib/streq.h: Likewise.
27787         * lib/uniconv.h: Likewise.
27788         * lib/uniconv/u-conv-from-enc.h: Likewise.
27789         * lib/uniconv/u-conv-to-enc.h: Likewise.
27790         * lib/uniconv/u-strconv-from-enc.h: Likewise.
27791         * lib/uniconv/u-strconv-to-enc.h: Likewise.
27792         * lib/uniconv/u16-conv-from-enc.c: Likewise.
27793         * lib/uniconv/u16-conv-to-enc.c: Likewise.
27794         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
27795         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
27796         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
27797         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
27798         * lib/uniconv/u32-conv-from-enc.c: Likewise.
27799         * lib/uniconv/u32-conv-to-enc.c: Likewise.
27800         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
27801         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
27802         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
27803         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
27804         * lib/uniconv/u8-conv-from-enc.c: Likewise.
27805         * lib/uniconv/u8-conv-to-enc.c: Likewise.
27806         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
27807         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
27808         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
27809         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
27810         * lib/uniname.h: Likewise.
27811         * lib/uniname/uniname.c: Likewise.
27812         * lib/unistdio.h: Likewise.
27813         * lib/unistdio/u-asnprintf.h: Likewise.
27814         * lib/unistdio/u-asprintf.h: Likewise.
27815         * lib/unistdio/u-printf-args.c: Likewise.
27816         * lib/unistdio/u-printf-args.h: Likewise.
27817         * lib/unistdio/u-printf-parse.h: Likewise.
27818         * lib/unistdio/u-snprintf.h: Likewise.
27819         * lib/unistdio/u-sprintf.h: Likewise.
27820         * lib/unistdio/u-vasprintf.h: Likewise.
27821         * lib/unistdio/u-vsnprintf.h: Likewise.
27822         * lib/unistdio/u-vsprintf.h: Likewise.
27823         * lib/unistdio/u16-asnprintf.c: Likewise.
27824         * lib/unistdio/u16-asprintf.c: Likewise.
27825         * lib/unistdio/u16-printf-parse.c: Likewise.
27826         * lib/unistdio/u16-snprintf.c: Likewise.
27827         * lib/unistdio/u16-sprintf.c: Likewise.
27828         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
27829         * lib/unistdio/u16-u16-asprintf.c: Likewise.
27830         * lib/unistdio/u16-u16-snprintf.c: Likewise.
27831         * lib/unistdio/u16-u16-sprintf.c: Likewise.
27832         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
27833         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
27834         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
27835         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
27836         * lib/unistdio/u16-vasnprintf.c: Likewise.
27837         * lib/unistdio/u16-vasprintf.c: Likewise.
27838         * lib/unistdio/u16-vsnprintf.c: Likewise.
27839         * lib/unistdio/u16-vsprintf.c: Likewise.
27840         * lib/unistdio/u32-asnprintf.c: Likewise.
27841         * lib/unistdio/u32-asprintf.c: Likewise.
27842         * lib/unistdio/u32-printf-parse.c: Likewise.
27843         * lib/unistdio/u32-snprintf.c: Likewise.
27844         * lib/unistdio/u32-sprintf.c: Likewise.
27845         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
27846         * lib/unistdio/u32-u32-asprintf.c: Likewise.
27847         * lib/unistdio/u32-u32-snprintf.c: Likewise.
27848         * lib/unistdio/u32-u32-sprintf.c: Likewise.
27849         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
27850         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
27851         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
27852         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
27853         * lib/unistdio/u32-vasnprintf.c: Likewise.
27854         * lib/unistdio/u32-vasprintf.c: Likewise.
27855         * lib/unistdio/u32-vsnprintf.c: Likewise.
27856         * lib/unistdio/u32-vsprintf.c: Likewise.
27857         * lib/unistdio/u8-asnprintf.c: Likewise.
27858         * lib/unistdio/u8-asprintf.c: Likewise.
27859         * lib/unistdio/u8-printf-parse.c: Likewise.
27860         * lib/unistdio/u8-snprintf.c: Likewise.
27861         * lib/unistdio/u8-sprintf.c: Likewise.
27862         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
27863         * lib/unistdio/u8-u8-asprintf.c: Likewise.
27864         * lib/unistdio/u8-u8-snprintf.c: Likewise.
27865         * lib/unistdio/u8-u8-sprintf.c: Likewise.
27866         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
27867         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
27868         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
27869         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
27870         * lib/unistdio/u8-vasnprintf.c: Likewise.
27871         * lib/unistdio/u8-vasprintf.c: Likewise.
27872         * lib/unistdio/u8-vsnprintf.c: Likewise.
27873         * lib/unistdio/u8-vsprintf.c: Likewise.
27874         * lib/unistdio/ulc-asnprintf.c: Likewise.
27875         * lib/unistdio/ulc-asprintf.c: Likewise.
27876         * lib/unistdio/ulc-printf-parse.c: Likewise.
27877         * lib/unistdio/ulc-snprintf.c: Likewise.
27878         * lib/unistdio/ulc-sprintf.c: Likewise.
27879         * lib/unistdio/ulc-vasnprintf.c: Likewise.
27880         * lib/unistdio/ulc-vasprintf.c: Likewise.
27881         * lib/unistdio/ulc-vsnprintf.c: Likewise.
27882         * lib/unistdio/ulc-vsprintf.c: Likewise.
27883         * lib/unistr.h: Likewise.
27884         * lib/unistr/u-cpy-alloc.h: Likewise.
27885         * lib/unistr/u-cpy.h: Likewise.
27886         * lib/unistr/u-endswith.h: Likewise.
27887         * lib/unistr/u-move.h: Likewise.
27888         * lib/unistr/u-set.h: Likewise.
27889         * lib/unistr/u-startswith.h: Likewise.
27890         * lib/unistr/u-stpcpy.h: Likewise.
27891         * lib/unistr/u-stpncpy.h: Likewise.
27892         * lib/unistr/u-strcat.h: Likewise.
27893         * lib/unistr/u-strcpy.h: Likewise.
27894         * lib/unistr/u-strcspn.h: Likewise.
27895         * lib/unistr/u-strdup.h: Likewise.
27896         * lib/unistr/u-strlen.h: Likewise.
27897         * lib/unistr/u-strncat.h: Likewise.
27898         * lib/unistr/u-strncpy.h: Likewise.
27899         * lib/unistr/u-strnlen.h: Likewise.
27900         * lib/unistr/u-strpbrk.h: Likewise.
27901         * lib/unistr/u-strspn.h: Likewise.
27902         * lib/unistr/u-strstr.h: Likewise.
27903         * lib/unistr/u-strtok.h: Likewise.
27904         * lib/unistr/u16-check.c: Likewise.
27905         * lib/unistr/u16-chr.c: Likewise.
27906         * lib/unistr/u16-cmp.c: Likewise.
27907         * lib/unistr/u16-cpy-alloc.c: Likewise.
27908         * lib/unistr/u16-cpy.c: Likewise.
27909         * lib/unistr/u16-endswith.c: Likewise.
27910         * lib/unistr/u16-mblen.c: Likewise.
27911         * lib/unistr/u16-mbsnlen.c: Likewise.
27912         * lib/unistr/u16-mbtouc-aux.c: Likewise.
27913         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
27914         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
27915         * lib/unistr/u16-mbtouc.c: Likewise.
27916         * lib/unistr/u16-mbtoucr.c: Likewise.
27917         * lib/unistr/u16-move.c: Likewise.
27918         * lib/unistr/u16-next.c: Likewise.
27919         * lib/unistr/u16-prev.c: Likewise.
27920         * lib/unistr/u16-set.c: Likewise.
27921         * lib/unistr/u16-startswith.c: Likewise.
27922         * lib/unistr/u16-stpcpy.c: Likewise.
27923         * lib/unistr/u16-stpncpy.c: Likewise.
27924         * lib/unistr/u16-strcat.c: Likewise.
27925         * lib/unistr/u16-strchr.c: Likewise.
27926         * lib/unistr/u16-strcmp.c: Likewise.
27927         * lib/unistr/u16-strcpy.c: Likewise.
27928         * lib/unistr/u16-strcspn.c: Likewise.
27929         * lib/unistr/u16-strdup.c: Likewise.
27930         * lib/unistr/u16-strlen.c: Likewise.
27931         * lib/unistr/u16-strmblen.c: Likewise.
27932         * lib/unistr/u16-strmbtouc.c: Likewise.
27933         * lib/unistr/u16-strncat.c: Likewise.
27934         * lib/unistr/u16-strncmp.c: Likewise.
27935         * lib/unistr/u16-strncpy.c: Likewise.
27936         * lib/unistr/u16-strnlen.c: Likewise.
27937         * lib/unistr/u16-strpbrk.c: Likewise.
27938         * lib/unistr/u16-strrchr.c: Likewise.
27939         * lib/unistr/u16-strspn.c: Likewise.
27940         * lib/unistr/u16-strstr.c: Likewise.
27941         * lib/unistr/u16-strtok.c: Likewise.
27942         * lib/unistr/u16-to-u32.c: Likewise.
27943         * lib/unistr/u16-to-u8.c: Likewise.
27944         * lib/unistr/u16-uctomb-aux.c: Likewise.
27945         * lib/unistr/u16-uctomb.c: Likewise.
27946         * lib/unistr/u32-check.c: Likewise.
27947         * lib/unistr/u32-chr.c: Likewise.
27948         * lib/unistr/u32-cmp.c: Likewise.
27949         * lib/unistr/u32-cpy-alloc.c: Likewise.
27950         * lib/unistr/u32-cpy.c: Likewise.
27951         * lib/unistr/u32-endswith.c: Likewise.
27952         * lib/unistr/u32-mblen.c: Likewise.
27953         * lib/unistr/u32-mbsnlen.c: Likewise.
27954         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
27955         * lib/unistr/u32-mbtouc.c: Likewise.
27956         * lib/unistr/u32-mbtoucr.c: Likewise.
27957         * lib/unistr/u32-move.c: Likewise.
27958         * lib/unistr/u32-next.c: Likewise.
27959         * lib/unistr/u32-prev.c: Likewise.
27960         * lib/unistr/u32-set.c: Likewise.
27961         * lib/unistr/u32-startswith.c: Likewise.
27962         * lib/unistr/u32-stpcpy.c: Likewise.
27963         * lib/unistr/u32-stpncpy.c: Likewise.
27964         * lib/unistr/u32-strcat.c: Likewise.
27965         * lib/unistr/u32-strchr.c: Likewise.
27966         * lib/unistr/u32-strcmp.c: Likewise.
27967         * lib/unistr/u32-strcpy.c: Likewise.
27968         * lib/unistr/u32-strcspn.c: Likewise.
27969         * lib/unistr/u32-strdup.c: Likewise.
27970         * lib/unistr/u32-strlen.c: Likewise.
27971         * lib/unistr/u32-strmblen.c: Likewise.
27972         * lib/unistr/u32-strmbtouc.c: Likewise.
27973         * lib/unistr/u32-strncat.c: Likewise.
27974         * lib/unistr/u32-strncmp.c: Likewise.
27975         * lib/unistr/u32-strncpy.c: Likewise.
27976         * lib/unistr/u32-strnlen.c: Likewise.
27977         * lib/unistr/u32-strpbrk.c: Likewise.
27978         * lib/unistr/u32-strrchr.c: Likewise.
27979         * lib/unistr/u32-strspn.c: Likewise.
27980         * lib/unistr/u32-strstr.c: Likewise.
27981         * lib/unistr/u32-strtok.c: Likewise.
27982         * lib/unistr/u32-to-u16.c: Likewise.
27983         * lib/unistr/u32-to-u8.c: Likewise.
27984         * lib/unistr/u32-uctomb.c: Likewise.
27985         * lib/unistr/u8-check.c: Likewise.
27986         * lib/unistr/u8-chr.c: Likewise.
27987         * lib/unistr/u8-cmp.c: Likewise.
27988         * lib/unistr/u8-cpy-alloc.c: Likewise.
27989         * lib/unistr/u8-cpy.c: Likewise.
27990         * lib/unistr/u8-endswith.c: Likewise.
27991         * lib/unistr/u8-mblen.c: Likewise.
27992         * lib/unistr/u8-mbsnlen.c: Likewise.
27993         * lib/unistr/u8-mbtouc-aux.c: Likewise.
27994         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
27995         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
27996         * lib/unistr/u8-mbtouc.c: Likewise.
27997         * lib/unistr/u8-mbtoucr.c: Likewise.
27998         * lib/unistr/u8-move.c: Likewise.
27999         * lib/unistr/u8-next.c: Likewise.
28000         * lib/unistr/u8-prev.c: Likewise.
28001         * lib/unistr/u8-set.c: Likewise.
28002         * lib/unistr/u8-startswith.c: Likewise.
28003         * lib/unistr/u8-stpcpy.c: Likewise.
28004         * lib/unistr/u8-stpncpy.c: Likewise.
28005         * lib/unistr/u8-strcat.c: Likewise.
28006         * lib/unistr/u8-strchr.c: Likewise.
28007         * lib/unistr/u8-strcmp.c: Likewise.
28008         * lib/unistr/u8-strcpy.c: Likewise.
28009         * lib/unistr/u8-strcspn.c: Likewise.
28010         * lib/unistr/u8-strdup.c: Likewise.
28011         * lib/unistr/u8-strlen.c: Likewise.
28012         * lib/unistr/u8-strmblen.c: Likewise.
28013         * lib/unistr/u8-strmbtouc.c: Likewise.
28014         * lib/unistr/u8-strncat.c: Likewise.
28015         * lib/unistr/u8-strncmp.c: Likewise.
28016         * lib/unistr/u8-strncpy.c: Likewise.
28017         * lib/unistr/u8-strnlen.c: Likewise.
28018         * lib/unistr/u8-strpbrk.c: Likewise.
28019         * lib/unistr/u8-strrchr.c: Likewise.
28020         * lib/unistr/u8-strspn.c: Likewise.
28021         * lib/unistr/u8-strstr.c: Likewise.
28022         * lib/unistr/u8-strtok.c: Likewise.
28023         * lib/unistr/u8-to-u16.c: Likewise.
28024         * lib/unistr/u8-to-u32.c: Likewise.
28025         * lib/unistr/u8-uctomb-aux.c: Likewise.
28026         * lib/unistr/u8-uctomb.c: Likewise.
28027         * lib/unitypes.h: Likewise.
28028         * lib/uniwidth.h: Likewise.
28029         * lib/uniwidth/cjk.h: Likewise.
28030         * lib/uniwidth/u16-strwidth.c: Likewise.
28031         * lib/uniwidth/u16-width.c: Likewise.
28032         * lib/uniwidth/u32-strwidth.c: Likewise.
28033         * lib/uniwidth/u32-width.c: Likewise.
28034         * lib/uniwidth/u8-strwidth.c: Likewise.
28035         * lib/uniwidth/u8-width.c: Likewise.
28036         * lib/uniwidth/width.c: Likewise.
28037
28038 2007-10-07  Bruno Haible  <bruno@clisp.org>
28039
28040         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
28041         The file is still under LGPL (see modules/inttypes).
28042
28043 2007-10-06  Bruno Haible  <bruno@clisp.org>
28044
28045         * modules/trunc (Dependencies): Add 'extensions'.
28046         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
28047         Reported by Ben Pfaff <blp@gnu.org>.
28048
28049 2007-10-06  Bruno Haible  <bruno@clisp.org>
28050
28051         * modules/freopen-tests: New file.
28052         * tests/test-freopen.c: New file.
28053
28054         * modules/fopen-tests: New file.
28055         * tests/test-fopen.c: New file.
28056
28057         * modules/fopen: New file.
28058         * lib/fopen.c: New file.
28059         * m4/fopen.m4: New file.
28060         * modules/freopen: New file.
28061         * lib/freopen.c: New file.
28062         * m4/freopen.m4: New file.
28063         * lib/stdio.in.h (fopen, freopen): New declarations.
28064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
28065         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
28066         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
28067         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
28068         * doc/functions/fopen.texi: Mention the 'fopen' module.
28069         * doc/functions/freopen.texi: Mention the 'freopen' module.
28070
28071 2007-10-06  Bruno Haible  <bruno@clisp.org>
28072
28073         * modules/open-tests: New file.
28074         * tests/test-open.c: New file.
28075
28076         * modules/open: New file.
28077         * lib/open.c: New file.
28078         * m4/open.m4: New file.
28079         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
28080         lib/open.c does.
28081         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
28082         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
28083         macros.
28084         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
28085         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
28086         REPLACE_OPEN.
28087         * doc/functions/open.texi: Mention the 'open' module.
28088
28089 2007-10-04  Bruno Haible  <bruno@clisp.org>
28090
28091         * modules/ceill-tests: New file.
28092         * tests/test-ceill.c: New file.
28093
28094         * modules/ceill: New file.
28095         * lib/ceill.c: Replace entire file.
28096         * m4/ceill.m4: New file.
28097         * lib/math.in.h (ceill): Replace declaration.
28098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
28099         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
28100         * doc/functions/ceill.texi: Mention the 'ceill' module.
28101         * modules/mathl (Files): Remove lib/ceill.c.
28102         (Depends-on): Add ceill.
28103
28104 2007-10-04  Bruno Haible  <bruno@clisp.org>
28105
28106         * modules/ceilf-tests: New file.
28107         * tests/test-ceilf.c: New file.
28108
28109         * modules/ceilf: New file.
28110         * lib/ceil.c: New file.
28111         * lib/ceilf.c: New file.
28112         * m4/ceilf.m4: New file.
28113         * lib/math.in.h (ceilf): New declaration.
28114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
28115         HAVE_DECL_CEILF.
28116         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
28117         HAVE_DECL_CEILF.
28118         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
28119
28120 2007-10-04  Bruno Haible  <bruno@clisp.org>
28121
28122         * modules/floorl-tests: New file.
28123         * tests/test-floorl.c: New file.
28124
28125         * modules/floorl: New file.
28126         * lib/floorl.c: Replace entire file.
28127         * m4/floorl.m4: New file.
28128         * lib/math.in.h (floorl): Replace declaration.
28129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
28130         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
28131         * doc/functions/floorl.texi: Mention the 'floorl' module.
28132         * modules/mathl (Files): Remove lib/floorl.c.
28133         (Depends-on): Add floorl.
28134
28135 2007-10-04  Bruno Haible  <bruno@clisp.org>
28136
28137         * modules/floorf-tests: New file.
28138         * tests/test-floorf.c: New file.
28139
28140         * modules/floorf: New file.
28141         * lib/floor.c: New file.
28142         * lib/floorf.c: New file.
28143         * m4/floorf.m4: New file.
28144         * lib/math.in.h (floorf): New declaration.
28145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
28146         HAVE_DECL_FLOORF.
28147         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
28148         HAVE_DECL_FLOORF.
28149         * doc/functions/floorf.texi: Mention the 'floorf' module.
28150
28151 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
28152             Bruno Haible  <bruno@clisp.org>
28153
28154         Advertise for the Git server instead of the CVS server.
28155         * doc/gnulib-intro.texi (Steady Development): Mention the Git
28156         repository instead of the CVS one.
28157         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
28158         about all VCS systems generically.
28159         * doc/gnulib.texi (Introduction): Capitalize `Git'.
28160
28161 2007-10-04  Bruno Haible  <bruno@clisp.org>
28162
28163         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
28164         means.
28165         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
28166
28167 2007-10-04  Bruno Haible  <bruno@clisp.org>
28168
28169         * modules/truncl-tests: New file.
28170         * tests/test-truncl.c: New file.
28171
28172         * modules/truncl: New file.
28173         * lib/truncl.c: New file.
28174         * m4/truncl.m4: New file.
28175         * lib/math.in.h (truncl): New declaration.
28176         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
28177         HAVE_DECL_TRUNCL.
28178         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
28179         HAVE_DECL_TRUNCL.
28180         * doc/functions/truncl.texi: Mention the 'truncl' module.
28181
28182 2007-10-04  Bruno Haible  <bruno@clisp.org>
28183
28184         * modules/truncf-tests: New file.
28185         * tests/test-truncf.c: New file.
28186
28187         * modules/truncf: New file.
28188         * lib/trunc.c: Make paramerizable through USE_* macros.
28189         * lib/truncf.c: New file.
28190         * m4/truncf.m4: New file.
28191         * lib/math.in.h (truncf): New declaration.
28192         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
28193         HAVE_DECL_TRUNCF.
28194         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
28195         HAVE_DECL_TRUNCF.
28196         * doc/functions/truncf.texi: Mention the 'truncf' module.
28197
28198 2007-10-03  Bruno Haible  <bruno@clisp.org>
28199
28200         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
28201         augmentation also for tests modules.
28202         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
28203         * modules/atexit-tests (Makefile.am): Likewise.
28204         * modules/binary-io-tests (Makefile.am): Likewise.
28205         * modules/c-strcase-tests (Makefile.am): Likewise.
28206         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
28207         * modules/canonicalize-tests (Makefile.am): Likewise.
28208         * modules/closein-tests (Makefile.am): Likewise.
28209         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28210         * modules/freadahead-tests (Makefile.am): Likewise.
28211         * modules/fseek-tests (Makefile.am): Likewise.
28212         * modules/fseeko-tests (Makefile.am): Likewise.
28213         * modules/ftell-tests (Makefile.am): Likewise.
28214         * modules/ftello-tests (Makefile.am): Likewise.
28215         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
28216         * modules/isnanl-tests (Makefile.am): Likewise.
28217         * modules/lseek-tests (Makefile.am): Likewise.
28218         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28219         * modules/mbscasestr-tests (Makefile.am): Likewise.
28220         * modules/mbschr-tests (Makefile.am): Likewise.
28221         * modules/mbscspn-tests (Makefile.am): Likewise.
28222         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28223         * modules/mbspbrk-tests (Makefile.am): Likewise.
28224         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28225         * modules/mbsrchr-tests (Makefile.am): Likewise.
28226         * modules/mbsspn-tests (Makefile.am): Likewise.
28227         * modules/mbsstr-tests (Makefile.am): Likewise.
28228         * modules/printf-posix-tests (Makefile.am): Likewise.
28229         * modules/snprintf-posix-tests (Makefile.am): Likewise.
28230         * modules/sprintf-posix-tests (Makefile.am): Likewise.
28231         * modules/tsearch-tests (Makefile.am): Likewise.
28232         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28233         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28234         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28235         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28236         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28237         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28238         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28239         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28240         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
28241         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
28242         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28243         * modules/xstrtol-tests (Makefile.am): Likewise.
28244         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28245         * modules/yesno-tests (Makefile.am): Likewise.
28246
28247 2007-10-03  Bruno Haible  <bruno@clisp.org>
28248
28249         * modules/trunc-tests: New file.
28250         * tests/test-trunc.c: New file.
28251
28252         * modules/trunc: New file.
28253         * lib/trunc.c: New file.
28254         * m4/trunc.m4: New file.
28255         * lib/math.in.h (trunc): New declaration.
28256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
28257         HAVE_DECL_TRUNC.
28258         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
28259         HAVE_DECL_TRUNC.
28260         * doc/functions/trunc.texi: Mention the 'trunc' module.
28261
28262 2007-10-03  Bruno Haible  <bruno@clisp.org>
28263
28264         * tests/test-fpending.c: New file, mostly copied
28265         from coreutils/lib/t-fpending.c.
28266         * modules/fpending-tests: New file.
28267
28268 2007-10-03  Bruno Haible  <bruno@clisp.org>
28269
28270         Port the stdio extensions to QNX (untested).
28271         * lib/fseterr.c (fseterr): Add support for QNX.
28272         * lib/fbufmode.c (fbufmode): Likewise.
28273         * lib/freadable.c (freadable): Likewise.
28274         * lib/fwritable.c (fwritable): Likewise.
28275         * lib/freading.c (freading): Likewise.
28276         * lib/fwriting.c (fwriting): Likewise.
28277         * lib/freadahead.c (freadahed): Likewise.
28278         * lib/fpurge.c (fpurge): Likewise.
28279         * lib/fseeko.c (rpl_fseeko): Likewise.
28280
28281 2007-10-03  Bruno Haible  <bruno@clisp.org>
28282             Jim Meyering  <jim@meyering.net>
28283             Eric Blake  <ebb9@byu.net>
28284
28285         * doc/relocatable.texi: Use @command instead of @program.
28286
28287 2007-10-02  Jim Meyering  <jim@meyering.net>
28288
28289         Perform one more "_.h" -> ".in.h" substitution.
28290         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
28291         instead of unistd_.h here, too.
28292
28293 2007-10-01  Bruno Haible  <bruno@clisp.org>
28294
28295         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
28296         Needed for the alloca-opt module.
28297
28298 2007-09-30  Bruno Haible  <bruno@clisp.org>
28299
28300         * lib/alloca.in.h: Renamed from lib/alloca_.h.
28301         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
28302         alloca_.h.
28303         * lib/argz.in.h: Renamed from lib/argz_.h.
28304         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
28305         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
28306         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
28307         byteswap_.h.
28308         * lib/dirent.in.h: Renamed from lib/dirent_.h.
28309         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
28310         dirent_.h.
28311         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
28312         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
28313         fcntl_.h.
28314         * lib/float.in.h: Renamed from lib/float_.h.
28315         * modules/float (Files, Makefile.am): Use float.in.h instead of
28316         float_.h.
28317         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
28318         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
28319         fnmatch_.h.
28320         * lib/getopt.in.h: Renamed from lib/getopt_.h.
28321         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
28322         getopt_.h.
28323         * lib/glob.in.h: Renamed from lib/glob_.h.
28324         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
28325         * lib/iconv.in.h: Renamed from lib/iconv_.h.
28326         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
28327         iconv_.h.
28328         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
28329         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
28330         inttypes_.h.
28331         * lib/locale.in.h: Renamed from lib/locale_.h.
28332         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
28333         locale_.h.
28334         * lib/math.in.h: Renamed from lib/math_.h.
28335         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
28336         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
28337         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
28338         of netinet_in_.h. Add dependency.
28339         * lib/poll.in.h: Renamed from lib/poll_.h.
28340         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
28341         * lib/search.in.h: Renamed from lib/search_.h.
28342         * modules/search (Files, Makefile.am): Use search.in.h instead of
28343         search_.h.
28344         * lib/signal.in.h: Renamed from lib/signal_.h.
28345         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
28346         _signal.h.
28347         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
28348         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
28349         stdbool_.h.
28350         * lib/stdint.in.h: Renamed from lib/stdint_.h.
28351         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
28352         stdint_.h.
28353         * lib/stdio.in.h: Renamed from lib/stdio_.h.
28354         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
28355         stdio_.h.
28356         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
28357         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
28358         stdlib_.h.
28359         * lib/string.in.h: Renamed from lib/string_.h.
28360         * modules/string (Files, Makefile.am): Use string.in.h instead of
28361         string_.h.
28362         * doc/gnulib-tool.texi (Initial import): Update.
28363         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
28364         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
28365         of sys_select_.h. Add dependency.
28366         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
28367         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
28368         of sys_socket_.h.
28369         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
28370         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
28371         sys_stat_.h.
28372         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
28373         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
28374         sys_time_.h.
28375         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
28376         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
28377         sysexits_.h.
28378         * lib/time.in.h: Renamed from lib/time_.h.
28379         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
28380         * lib/unistd.in.h: Renamed from lib/unistd_.h.
28381         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
28382         unistd_.h.
28383         * lib/wchar.in.h: Renamed from lib/wchar_.h.
28384         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
28385         wchar_.h.
28386         * lib/wctype.in.h: Renamed from lib/wctype_.h.
28387         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
28388         wctype_.h.
28389         * build-aux/bootstrap (slurp): Update.
28390         * lib/.cppi-disable: Update.
28391
28392 2007-09-30  Bruno Haible  <bruno@clisp.org>
28393
28394         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
28395         Needed on BeOS.
28396
28397 2007-09-30  Bruno Haible  <bruno@clisp.org>
28398
28399         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
28400
28401 2007-09-29  Bruno Haible  <bruno@clisp.org>
28402
28403         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
28404
28405 2007-09-29  Bruno Haible  <bruno@clisp.org>
28406
28407         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
28408         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
28409         * build-aux/install-reloc: Compile also areadlink.c.
28410         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
28411
28412 2007-09-29  Bruno Haible  <bruno@clisp.org>
28413
28414         * gnulib-tool (func_emit_initmacro_done): Indentation.
28415
28416 2007-09-29  Bruno Haible  <bruno@clisp.org>
28417
28418         * README: Add CVS checkout update instructions.
28419         Info from Bob Proulx <bob@proulx.com>.
28420
28421 2007-09-28  Eric Blake  <ebb9@byu.net>
28422
28423         Provide move-if-change.
28424         * build-aux/move-if-change: New file, based on best practice
28425         rather than any canonical upstream location.
28426
28427 2007-09-28  Jim Meyering  <jim@meyering.net>
28428
28429         Fix canonicalize loop-detection corner case.
28430         Do not attempt to stat the symlink values stored via seen_triple.
28431         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
28432         on linux-2.6.18, (but not 2.6.22).
28433         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
28434         triple_compare.  The former compares dev,ino,filename, while the latter
28435         would actually stat dirname(filename) when dev and ino were equal.
28436         * lib/hash-triple.c: Install <string.h>.
28437         (STREQ): Define.
28438         (triple_compare_ino_str): New function.
28439         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
28440
28441 2007-09-28  Eric Blake  <ebb9@byu.net>
28442
28443         Enforce that AC_REPLACE_FUNCS files exist.
28444         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
28445         override check for typos.
28446
28447         Fix test-closein on Solaris 10.
28448         * tests/test-closein.c (main): Don't assume stdin can be inherited
28449         closed on all systems.
28450         * tests/test-closein.sh: Likewise.
28451         Reported by Piotr Tarnowski.
28452
28453 2007-09-28  Jim Meyering  <jim@meyering.net>
28454
28455         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
28456
28457 2007-09-27  Jim Meyering  <jim@meyering.net>
28458
28459         canonicalize: Avoid a false-positive cycle failure.
28460         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
28461         Sort.  Remove cycle-check.
28462         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
28463         not cycle-check.h.
28464         (seen_triple): New function.
28465         (canonicalize_filename_mode): Use it instead of cycle-check.
28466         * tests/test-canonicalize.c: Add a test for this bug.
28467         * tests/test-canonicalize.sh: Set up and run the test.
28468
28469         New module, file-set, from coreutils.
28470         * modules/file-set: Define it.
28471         * lib/file-set.c, lib/file-set.h: Implement.
28472
28473         New module, hash-triple, from coreutils.
28474         * modules/hash-triple: Define it.
28475         * lib/hash-triple.c, lib/hash-triple.h: Implement.
28476
28477 2007-09-25  Eric Blake  <ebb9@byu.net>
28478
28479         Fix strerror on Interix.
28480         * lib/string_.h (strerror): Declare replacement.
28481         * doc/functions/strerror.texi (strerror): Document the Interix
28482         shortcoming.
28483         * modules/string (Makefile.am): Support new hooks.
28484         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
28485         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
28486         gl_FUNC_STRERROR_SEPARATE.
28487         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
28488         * lib/strerror.c (rpl_strerror): Provide replacement.
28489         * modules/strerror (Depends-on): Add string.
28490         (configure.ac): Detect use of module.
28491         * tests/test-strerror.c: New file.
28492         * modules/strerror-tests: New test module.
28493         * modules/argp (Depends-on): Add strerror.
28494         * modules/error (Depends-on): Likewise.
28495         Reported by Martin Koeppe.
28496
28497 2007-09-24  Bruno Haible  <bruno@clisp.org>
28498
28499         * README: Update git instructions.
28500
28501 2007-09-24  Eric Blake  <ebb9@byu.net>
28502
28503         Revert fpending breakage from 2007-09-08.
28504         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
28505         __fpending.c.
28506
28507 2007-09-24  Jim Meyering  <jim@meyering.net>
28508
28509         filenamecat.c: Add a test.
28510         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
28511         showing how the function works when DIR is the empty string.
28512
28513 2007-09-21  Simon Josefsson  <simon@josefsson.org>
28514
28515         * tests/test-canonicalize.sh: Turn on executable bit.
28516
28517 2007-09-19  Eric Blake  <ebb9@byu.net>
28518
28519         * README: Update CVS instructions.
28520
28521 2007-09-18  Bruno Haible  <bruno@clisp.org>
28522
28523         * modules/areadlink: New file.
28524         * lib/areadlink.h (areadlink): New declaration.
28525         * lib/areadlink.c: New file, based on lib/xreadlink.c.
28526
28527 2007-09-17  Jim Meyering  <jim@meyering.net>
28528
28529         * lib/savewd.c (ESTALE) [!defined]: Define.
28530         Reported to be required on Interix by Martin Koeppe.
28531
28532 2007-09-17  Bruno Haible  <bruno@clisp.org>
28533
28534         * gnulib-tool (func_version): Use $version.
28535
28536 2007-09-16  Bruno Haible  <bruno@clisp.org>
28537
28538         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
28539         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
28540         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
28541         Reported by Greg Schafer <gschafer@zip.com.au>.
28542
28543 2007-09-15  Bruno Haible  <bruno@clisp.org>
28544
28545         * gnulib-tool (sed): Try a little harder to make bash understand the
28546         alias.
28547         Reported by Bruce Korb <bruce.korb@gmail.com>.
28548
28549 2007-09-13  Eric Blake  <ebb9@byu.net>
28550
28551         * ChangeLog: Remove conflict markers.
28552
28553 2007-09-13  Simon Josefsson  <simon@josefsson.org>
28554
28555         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
28556         Reported by Bruno Haible <bruno@clisp.org>.
28557
28558 2007-09-12  Bruno Haible  <bruno@clisp.org>
28559
28560         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
28561         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
28562         is not defined.
28563
28564 2007-09-12  Eric Blake  <ebb9@byu.net>
28565
28566         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
28567         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
28568         Autoconf definition.
28569         * modules/euidaccess (Depends-on): Add extensions, for
28570         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
28571         * modules/fnmatch (Depends-on): Likewise.
28572         * modules/getaddrinfo (Depends-on): Likewise.
28573         * modules/getdelim (Depends-on): Likewise.
28574         * modules/getline (Depends-on): Likewise.
28575         * modules/getsubopt (Depends-on): Likewise.
28576         * modules/gettext (Depends-on): Likewise.
28577         * modules/group-member (Depends-on): Likewise.
28578         * modules/mbchar (Depends-on): Likewise.
28579         * modules/memmem (Depends-on): Likewise.
28580         * modules/mempcpy (Depends-on): Likewise.
28581         * modules/memrchr (Depends-on): Likewise.
28582         * modules/pagealign_alloc (Depends-on): Likewise.
28583         * modules/readutmp (Depends-on): Likewise.
28584         * modules/stpcpy (Depends-on): Likewise.
28585         * modules/stpncpy (Depends-on): Likewise.
28586         * modules/strchrnul (Depends-on): Likewise.
28587         * modules/strndup (Depends-on): Likewise.
28588         * modules/strsep (Depends-on): Likewise.
28589         * modules/strverscmp (Depends-on): Likewise.
28590         * modules/vasprintf (Depends-on): Likewise.
28591         * modules/wcwidth (Depends-on): Likewise.
28592         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
28593         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
28594         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
28595         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
28596         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28597         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28598         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
28599         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
28600         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
28601         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28602         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28603         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
28604         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
28605         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28606         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
28607         * m4/readutmp.m4 (gl_READUTMP): Likewise.
28608         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28609         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
28610         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28611         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
28612         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
28613         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
28614         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
28615         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
28616         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
28617         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28618         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
28619         so that lock.m4 can be used in gettext without extensions module.
28620
28621 2007-09-11  Bruno Haible  <bruno@clisp.org>
28622
28623         * m4/isc-posix.m4: Remove file.
28624         Suggested by Eric Blake.
28625
28626 2007-09-11  Eric Blake  <ebb9@byu.net>
28627
28628         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
28629
28630 2007-09-10  Bruno Haible  <bruno@clisp.org>
28631
28632         * posix-modules: Fix typo in error message.
28633         Reported by Matt <mkraai@beckman.com>.
28634
28635 2007-09-09  Bruno Haible  <bruno@clisp.org>
28636
28637         * doc/functions/getdelim.texi: Update list of platforms lacking the
28638         function.
28639         * doc/functions/getline.texi: Likewise.
28640
28641 2007-09-09  Jim Meyering  <jim@meyering.net>
28642
28643         * lib/hash.c (hash_initialize): Detect calloc failure.
28644         Reported by Bruno Haible.
28645
28646 2007-09-09  Bruno Haible  <bruno@clisp.org>
28647
28648         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
28649         malloc or realloc fails.
28650
28651 2007-09-09  Bruno Haible  <bruno@clisp.org>
28652
28653         * modules/getcwd (Depends-on): Add malloc-posix.
28654         * modules/glob (Depends-on): Likewise.
28655         * modules/putenv (Depends-on): Likewise.
28656         * modules/strdup (Depends-on): Likewise.
28657         * modules/getdelim (Depends-on): Add realloc-posix.
28658         * modules/read-file (Depends-on): Likewise.
28659
28660 2007-09-09  Bruno Haible  <bruno@clisp.org>
28661
28662         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
28663         (gl_FUNC_MALLOC_POSIX): Require it.
28664         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
28665         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
28666         * modules/realloc (Files): Add m4/malloc.m4.
28667         * modules/calloc (Files): Likewise.
28668
28669 2007-09-09  Bruno Haible  <bruno@clisp.org>
28670
28671         * modules/malloc-posix: New file.
28672         * modules/malloc (Depends-on): Add malloc-posix.
28673         * lib/malloc.c: Include errno.h.
28674         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
28675         and a POSIX-compatible malloc into a single function. Set ENOMEM
28676         when returning NULL.
28677         * m4/malloc.m4: New file.
28678         * doc/functions/malloc.texi: Mention the malloc-posix module.
28679         * lib/stdlib_.h (malloc): New declaration.
28680         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28681         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
28682         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
28683         and HAVE_MALLOC_POSIX.
28684
28685 2007-09-09  Bruno Haible  <bruno@clisp.org>
28686
28687         * modules/realloc-posix: New file.
28688         * modules/realloc (Depends-on): Add realloc-posix.
28689         * lib/realloc.c: Include errno.h.
28690         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
28691         and a POSIX-compatible realloc into a single function. Set ENOMEM
28692         when returning NULL.
28693         * m4/realloc.m4: New file.
28694         * doc/functions/realloc.texi: Mention the realloc-posix module.
28695         * lib/stdlib_.h (realloc): New declaration.
28696         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28697         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
28698         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
28699         and HAVE_REALLOC_POSIX.
28700
28701 2007-09-09  Bruno Haible  <bruno@clisp.org>
28702
28703         * modules/calloc-posix: New file.
28704         * modules/calloc (Depends-on): Add calloc-posix.
28705         * lib/calloc.c: Include errno.h.
28706         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
28707         and a POSIX-compatible calloc into a single function. Set ENOMEM
28708         when returning NULL.
28709         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
28710         * doc/functions/calloc.texi: Mention the calloc-posix module.
28711         * lib/stdlib_.h (calloc): New declaration.
28712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28713         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
28714         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
28715         and HAVE_CALLOC_POSIX.
28716
28717 2007-09-09  Bruno Haible  <bruno@clisp.org>
28718
28719         Allow for modules to show an arbitrary notice.
28720         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
28721         * gnulib-tool: New option --extract-notice.
28722         (func_usage): Document it.
28723         (sed_extract_prog): Update.
28724         (func_get_notice): New function.
28725         (func_modules_notice): New function.
28726         (func_import, func_create_testdir): Invoke it.
28727         Suggested by Jim Meyering.
28728
28729 2007-09-09  Bruno Haible  <bruno@clisp.org>
28730
28731         * gnulib-tool: New options --verbose, --quiet.
28732         (func_usage): Document them.
28733         (verbose): New variable.
28734         (func_execute_command): New function.
28735         (func_import): Don't show the module list and the file list if
28736         $verbose < 0.
28737         (func_create_testdir): Likewise. Use func_execute_command.
28738         (func_create_megatestdir): Use func_execute_command.
28739
28740 2007-09-08  Bruno Haible  <bruno@clisp.org>
28741
28742         * gnulib-tool (func_import): Prefer rsync over wget when available,
28743         for fetching the PO files.
28744
28745 2007-09-08  Bruno Haible  <bruno@clisp.org>
28746
28747         * posix-modules: New file. Portions copied from gnulib-tool.
28748         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
28749
28750 2007-09-08  Jim Meyering  <jim@meyering.net>
28751
28752         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
28753         * lib/fpending.h: Rename from __fpending.h.
28754         * lib/fpending.c: Rename from __fpending.c.
28755         Include "fpending.h", not "__fpending.h".
28756         * lib/__fpending.h, lib/__fpending.c: Remove files.
28757         * modules/fpending (Files): Reflect new file names.
28758         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
28759
28760 2007-09-08  Bruno Haible  <bruno@clisp.org>
28761
28762         * m4/inttypes-h.m4: Remove stub file.
28763
28764 2007-09-07  Simon Josefsson  <simon@josefsson.org>
28765
28766         * doc/headers/stdint.texi: Discuss #include_next issue.
28767
28768 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28769
28770         * build-aux/bootstrap: Remove obsolete comment about wget --help.
28771
28772 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28773
28774         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
28775         in variable name.
28776
28777 2007-09-03  Jim Meyering  <jim@meyering.net>
28778
28779         New module: git-version-gen.
28780         * modules/git-version-gen: New file.
28781
28782         Import changes from coreutils for bootstrap script.
28783
28784         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
28785
28786         bootstrap: uses rsync to download the .po files
28787         * build-aux/bootstrap (po_download_command_format): New global.
28788         (download_po_files): Use rsync.
28789         (update_po_files): Don't remove .po files after download,
28790         so future rsync runs can take advantage of the copies.
28791
28792         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
28793
28794         Solve the unnecessary-.po-file-regeneration problem once and for all.
28795         * build-aux/bootstrap (download_po_files): New function, renamed from
28796         get_translations.  Now, downloads, but doesn't update LINGUAS.
28797         (update_po_files): New function.
28798
28799         bootstrap: Ignore more.
28800         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
28801         uniwidth to e.g., lib/.gitignore.
28802         (slurp): Handle the sys_stat_.h -> sys mapping, too.
28803
28804         * build-aux/bootstrap: New setting: vc_ignore.
28805         (insert_sorted_if_absent): Create $file if absent.
28806         Adapt to new, possibly empty, list: $vc_ignore.
28807
28808         bootstrap: generate more ignorable names
28809         * build-aux/bootstrap (slurp): When generating ignorable names,
28810         also map .sin to .sed, .gperf to .c, and .y to .c.
28811
28812 2007-09-03  Jim Meyering  <jim@meyering.net>
28813
28814         * build-aux/git-version-gen: New file, from coreutils.  For details, see
28815         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
28816
28817 2007-09-02  Bruno Haible  <bruno@clisp.org>
28818
28819         Fix mis-recognition of 'mcs' on QNX 6.
28820         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
28821         output contains the string "Mono".
28822         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
28823         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
28824
28825 2007-09-01  Bruno Haible  <bruno@clisp.org>
28826
28827         Fix collision between uniwidth/* and linebreak modules.
28828         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
28829         u32_width): Remove declarations.
28830         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
28831         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
28832         streq3, streq2, streq1, streq0): Remove functions.
28833         (STREQ): Remove macro.
28834         (is_cjk_encoding): Remove function.
28835         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
28836         (uc_width, u8_width, u16_width, u32_width): Remove functions.
28837         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
28838         * NEWS: Document the change.
28839
28840 2007-09-01  Bruno Haible  <bruno@clisp.org>
28841
28842         * lib/streq.h: Add double-inclusion guard.
28843
28844 2007-09-01  Karl Berry  <karl@gnu.org>
28845
28846         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
28847
28848 2007-08-28  Jim Meyering  <jim@meyering.net>
28849
28850         Rename mreadlink_with_size to areadlink_with_size.
28851         * NEWS: Document the change.
28852         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
28853         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
28854         * lib/mreadlink.h: Rename this to...
28855         * lib/areadlink.h: ...this.
28856         * modules/mreadlink-with-size: Rename this to...
28857         * modules/areadlink-with-size: ...this.
28858         * lib/canonicalize.c: Reflect the renaming.
28859         * modules/canonicalize: Likewise.
28860
28861 2007-08-26  Bruno Haible  <bruno@clisp.org>
28862
28863         * gnulib-tool (func_import): When deciding which files to remove,
28864         consider also dangling symbolic links.
28865         Reported by Eric Blake.
28866
28867 2007-08-26  Bruno Haible  <bruno@clisp.org>
28868
28869         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
28870
28871 2007-08-23  Simon Josefsson  <simon@josefsson.org>
28872
28873         * lib/readline.c: Don't include getline.h, the prototype is now
28874         found in stdio.h.
28875
28876 2007-08-23  Jim Meyering  <jim@meyering.net>
28877
28878         Getdelim touchup.
28879         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
28880         around the funlockfile call, since funlockfile never sets errno.
28881         Don't set errno upon failed realloc.
28882
28883 2007-08-22  Eric Blake  <ebb9@byu.net>
28884
28885         Getline touchups.
28886         * lib/getdelim.c (getdelim): Revert regression that required *n to
28887         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
28888         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
28889         getdelim, rather than whether implementation is missing.
28890         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
28891         * lib/stdio_.h (getline): Also declare if replacement is
28892         required.
28893         * doc/functions/getdelim.texi: New file.
28894         * doc/functions/getline.texi: Likewise.
28895         * doc/gnulib.texi (Function Substitutes): Add new files.
28896         Reported by Bruno Haible.
28897
28898 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
28899
28900         * users.txt: Add Guile.
28901
28902 2007-08-22  Eric Blake  <ebb9@byu.net>
28903
28904         * tests/test-getdelim.c (main): Use remove, not unlink.
28905         * tests/test-getline.c (main): Likewise.
28906
28907         Move getline and getdelim into stdio.h, per POSIX 200x.
28908         * modules/getline (Files): Remove getline.h.
28909         (Depends-on): Add stdio.
28910         (configure.ac): Add module indicator.
28911         * modules/getdelim (Files): Remove getdelim.h.
28912         (Depends-on): Add stdio.
28913         (configure.ac): Add module indicator.
28914         * modules/stdio (Makefile.am): Work with new indicators.
28915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28916         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
28917         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28918         * lib/getdelim.h: Delete.
28919         * lib/getline.h: Delete.
28920         * lib/stdio_.h (getdelim, getline): Declare.
28921         * modules/getdelim-tests: New module.
28922         * modules/getline-tests: Likewise.
28923         * tests/test-getdelim.c: New file.
28924         * tests/test-getline.c: Likewise.
28925         * NEWS: Document the change.
28926         * lib/getline.c: Update choice of header.
28927         * lib/csharpcomp.c: Likewise.
28928         * lib/getpass.c: Likewise.
28929         * lib/javacomp.c: Likewise.
28930         * lib/javaversion.c: Likewise.
28931         * lib/yesno.c: Likewise.
28932         * lib/getdelim.c: Likewise.
28933         (getdelim): Set errno on failure, and avoid memory leak.
28934
28935 2007-08-19  Bruno Haible  <bruno@clisp.org>
28936
28937         * modules/closein (Depends-on): Add freadahead.
28938         * lib/closein.c: Include freadahead.h.
28939         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
28940         is zero.
28941
28942 2007-08-19  Bruno Haible  <bruno@clisp.org>
28943
28944         * modules/freadahead-tests: New file.
28945         * tests/test-freadahead.sh: New file.
28946         * tests/test-freadahead.c: New file.
28947
28948         * modules/freadahead: New file.
28949         * lib/freadahead.h: New file.
28950         * lib/freadahead.c: New file.
28951         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
28952         fbufmode, fpurge, freadable, fwritable.
28953
28954 2007-08-19  Eric Blake  <ebb9@byu.net>
28955
28956         Test yesno in combination with closein.
28957         * lib/yesno.c (yesno): Document use of stdin.
28958         * modules/yesno-tests (Files): New module.
28959         * tests/test-yesno.c (main): New file.
28960         * tests/test-yesno.sh: Likewise.
28961
28962 2007-08-19  Bruno Haible  <bruno@clisp.org>
28963
28964         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
28965         * lib/fseeko.c (rpl_fseeko): Likewise.
28966         * lib/fseterr.c (fseterr): Likewise.
28967
28968 2007-08-19  Bruno Haible  <bruno@clisp.org>
28969
28970         * tests/test-lseek.c (main): Disable a test for BeOS.
28971         * doc/functions/lseek.texi: Document the BeOS bug.
28972
28973 2007-08-19  Bruno Haible  <bruno@clisp.org>
28974             Eric Blake  <ebb9@byu.net>
28975
28976         * lib/lseek.c: Include <sys/stat.h>.
28977         (rpl_lseek): Add workaround code also for Unix platforms.
28978         Needed for BeOS.
28979         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
28980         * doc/functions/lseek.texi: Document BeOS definiency.
28981
28982 2007-08-18  Bruno Haible  <bruno@clisp.org>
28983
28984         * modules/fstrcmp-tests: New file.
28985         * tests/test-fstrcmp.c: New file.
28986
28987 2007-08-18  Bruno Haible  <bruno@clisp.org>
28988
28989         * modules/fstrcmp: New file, from GNU gettext with modifications.
28990         * lib/fstrcmp.h: New file, from GNU gettext.
28991         * lib/fstrcmp.c: New file, from GNU gettext.
28992         * MODULES.html.sh (String handling): Add fstrcmp.
28993
28994 2007-08-18  Bruno Haible  <bruno@clisp.org>
28995
28996         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
28997         'bool'.
28998         (diag, compareseq): Remove const from the ctxt argument.
28999         (USE_HEURISTIC): Undefine at the end.
29000
29001 2007-08-18  Jim Meyering  <jim@meyering.net>
29002
29003         New file: lib/idcache.h
29004         * NEWS: Mention the addition.
29005         * modules/idcache (Files): Add lib/idcache.h
29006         * lib/idcache.c: Include "idcache.h".
29007         Don't include <sys/types.h>.
29008         Add a FIXME comment.
29009         Move file-scoped "static" declarations to the top.
29010         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
29011
29012 2007-08-17  Bruno Haible  <bruno@clisp.org>
29013         and Paul Eggert  <eggert@cs.ucla.edu>
29014
29015         * MODULES.html.sh: Add diffseq.
29016         * modules/diffseq: New file.
29017         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
29018         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
29019
29020 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29021
29022         Import changes from coreutils for bootstrap script.
29023
29024         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
29025
29026         * build-aux/bootstrap (slurp): Work even in environments where
29027         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
29028         current code does not slurp files whose names start with ".", and
29029         this looks like it might be a troublesome area.
29030
29031         2007-07-11  Jim Meyering  <jim@meyering.net>
29032
29033         If there's a GPL vN copyright comment, require that N == 3.
29034
29035         2007-07-08  Jim Meyering  <jim@meyering.net>
29036
29037         Run the coreutils-specific code only if tests/Makefile.am.in exists.
29038         * build-aux/bootstrap (mam_template): Move definition out of loop.
29039
29040         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
29041
29042         * build-aux/bootstrap (symlink_to_dir): Rename function from
29043         symlink_to_gnulib.  Add a directory parameter.  Update all
29044         callers.
29045         (cp_mark_as_generated): Also check for -- and link to -- files in
29046         gl/.
29047
29048         2007-07-08  Jim Meyering  <jim@meyering.net>
29049
29050         Adapt to deeper hierarchy in gnulib.
29051         * build-aux/bootstrap (symlink_to_dir): If the destination
29052         directory doesn't exist, create it. This is required at least for
29053         "lib/uniwidth/cjk.h".
29054
29055         2007-05-15  Jim Meyering  <jim@meyering.net>
29056
29057         * build-aux/bootstrap: Now that generated Makefile.am files
29058         are no longer under version control, they must be created at
29059         bootstrap time.
29060
29061 2007-08-14  Ben Pfaff  <blp@gnu.org>
29062
29063         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
29064
29065 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
29066
29067         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
29068         given the changes below.
29069         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
29070         even on hosts that have padding bits beyond the supported 64.
29071
29072 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29073
29074         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
29075         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
29076         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
29077         depends on it.
29078         (xstrtol_error): Remove.
29079         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
29080         but with a different signature.
29081         (ATTRIBUTE_NORETURN, __attribute__): New macros.
29082         * lib/xstrtol-error.c: Include exitfail.h.
29083         (xstrtol_fatal): New function, with a different signature from the
29084         old xstrtol_error, so that the caller need not worry about passing
29085         in an exit status, or about storage management of the option argument.
29086         (xstrtol_error): Now a static function.  Redo signature to
29087         implement xstrtol_fatal.  Output the correct number of hyphens in
29088         front of the option so that the caller need not worry about
29089         storage management.
29090         (N_): New macro.
29091         (_): Remove; not used now.
29092         * modules/xstrtol: Depend on getopt.
29093         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
29094         of old STRTOL_FATAL_ERROR macro.
29095         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
29096         of test program.
29097         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
29098         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
29099
29100 2007-08-08  Eric Blake  <ebb9@byu.net>
29101
29102         * lib/xstrtol-error.c: Add missing include.
29103
29104         Move xstrtol messages into gnulib domain, when --pobase is used.
29105         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
29106         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
29107         * modules/xstrtol (Files): Distribute new file.
29108         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
29109         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
29110         * tests/test-xstrtol.c: ...into new file.
29111         * tests/test-xstrtoul.c: Also test xstrtoul.
29112         * tests/test-xstrtoimax.c: Also test xstrtoimax.
29113         * tests/test-xstrtoumax.c: Also test xstrtoumax.
29114         * tests/test-xstrtol.sh: Drive the tests.
29115         * tests/test-xstrtoimax.sh: Likewise.
29116         * tests/test-xstrtoumax.sh: Likewise.
29117         * modules/xstrtol-tests: New module.
29118         * modules/xstrtoimax-tests: Likewise.
29119         * modules/xstrtoumax-tests: Likewise.
29120
29121 2007-08-08  Jim Meyering  <jim@meyering.net>
29122
29123         New function: mfile_name_concat.
29124         * lib/filenamecat.c (mfile_name_concat): New function, just like
29125         file_name_concat, but return NULL upon failure rather than exiting
29126         with a diagnostic.
29127         * lib/filenamecat.h: Declare it.
29128
29129 2007-08-07  Bruno Haible  <bruno@clisp.org>
29130
29131         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
29132         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
29133         warning from gcc.
29134         Reported by Eric Blake.
29135
29136 2007-08-07  Simon Josefsson  <simon@josefsson.org>
29137
29138         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
29139         * modules/crypto/arcfour (License): Likewise.
29140         * modules/crypto/des-tests (License): Likewise.
29141         * modules/crypto/gc-arctwo-tests (License): Likewise.
29142         * modules/crypto/gc-des-tests (License): Likewise.
29143         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
29144         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
29145         * modules/crypto/gc-md2-tests (License): Likewise.
29146         * modules/crypto/gc-md4-tests (License): Likewise.
29147         * modules/crypto/gc-md5-tests (License): Likewise.
29148         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
29149         * modules/crypto/gc-rijndael-tests (License): Likewise.
29150         * modules/crypto/gc-sha1-tests (License): Likewise.
29151         * modules/crypto/gc-tests (License): Likewise.
29152         * modules/crypto/hmac-md5 (License): Likewise.
29153         * modules/crypto/hmac-sha1 (License): Likewise.
29154         * modules/crypto/md2-tests (License): Likewise.
29155         * modules/crypto/md4-tests (License): Likewise.
29156         * modules/crypto/md5 (License): Likewise.
29157         * modules/crypto/rijndael (License): Likewise.
29158         * modules/crypto/sha1 (License): Likewise.
29159         * modules/memxor (License): Likewise.
29160
29161 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
29162         and Bruno Haible  <bruno@clisp.org>
29163
29164         * NEWS: Describe interface changes to human, xstrtol.
29165         * lib/human.h: Include <xstrtol.h>.
29166         (human_options): Return enum strtol_error, not int.  Remove
29167         bool arg; take int * instead.
29168         * lib/human.c: Don't include "gettext.h".
29169         (_): Remove; no longer used.
29170         Don't include <xstrtol.h>, since human.h does it.
29171         (human_options): Adjust to abovementioned interface changes.
29172         Do not report error to stderr; that's now the caller's
29173         responsibility.
29174         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
29175         interface change.
29176         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
29177         Str, Argument_type_string.  All uses changed.  Put " argument"
29178         in diagnostics to make them clearer.  Change wording of suffix
29179         message for clarity.
29180         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
29181         Argument_type_string.
29182         (STRTOL_FATAL_WARN): Remove; no longer used.
29183         * modules/human (Depends-on): Remove gettext-h.
29184
29185 2007-08-06  Simon Josefsson  <simon@josefsson.org>
29186
29187         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
29188
29189 2007-07-31  Bruno Haible  <bruno@clisp.org>
29190
29191         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
29192         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
29193         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
29194
29195 2007-07-31  Bruno Haible  <bruno@clisp.org>
29196
29197         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
29198         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
29199
29200 2007-07-30  Bruno Haible  <bruno@clisp.org>
29201
29202         * modules/base64 (License): Use the synonymous term "LGPLv2+".
29203         * modules/c-ctype (License): Likewise.
29204         * modules/c-strcase (License): Likewise.
29205         * modules/check-version (License): Likewise.
29206         * modules/iconv (License): Likewise.
29207         * modules/iconv_open (License): Likewise.
29208         * modules/read-file (License): Likewise.
29209         * modules/striconv (License): Likewise.
29210         * modules/strverscmp (License): Likewise.
29211         * modules/vasprintf (License): Likewise.
29212         * modules/crypto/des (License): Likewise.
29213         * modules/crypto/gc (License): Likewise.
29214         * modules/crypto/gc-arcfour (License): Likewise.
29215         * modules/crypto/gc-arctwo (License): Likewise.
29216         * modules/crypto/gc-des (License): Likewise.
29217         * modules/crypto/gc-hmac-md5 (License): Likewise.
29218         * modules/crypto/gc-hmac-sha1 (License): Likewise.
29219         * modules/crypto/gc-md2 (License): Likewise.
29220         * modules/crypto/gc-md4 (License): Likewise.
29221         * modules/crypto/gc-md5 (License): Likewise.
29222         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
29223         * modules/crypto/gc-random (License): Likewise.
29224         * modules/crypto/gc-rijndael (License): Likewise.
29225         * modules/crypto/gc-sha1 (License): Likewise.
29226         * modules/crypto/md2 (License): Likewise.
29227         * modules/crypto/md4 (License): Likewise.
29228
29229 2007-07-30  Jim Meyering  <jim@meyering.net>
29230
29231         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
29232         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
29233         it has valid stat data.  This bug would cause du not to count the
29234         sizes of inaccessible directories.
29235         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
29236         in <http://bugzilla.redhat.com/250077>.
29237
29238 2007-07-25  Peter O'Gorman  <peter@pogma.com>
29239             Bruno Haible  <bruno@clisp.org>
29240
29241         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
29242         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
29243         #include_next, gives a diagnostic about it, but reports no error in
29244         the exit code.
29245         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
29246
29247 2007-07-24  Ben Pfaff  <blp@gnu.org>
29248
29249         Improve name: "count-one-bits" is better than "popcount".
29250         * MODULES.html.sh: Update name.
29251         * lib/popcount.h: Renamed lib/count-one-bits.h.
29252         (popcount): Renamed count_one_bits.
29253         (popcountl): Renamed count_one_bits_l.
29254         (popcountll): Renamed count_one_bits_ll.
29255         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
29256         * modules/popcount: Renamed module/count-one-bits.
29257         * modules/popcount-tests: Renamed module/count-one-bits-tests.
29258         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
29259
29260 2007-07-23  Ben Pfaff  <blp@gnu.org>
29261
29262         * lib/popcount.h (popcount32): Reduce size of constants, to allow
29263         better code generation, and add U to large constants to avoid
29264         warnings, in non-GCC case.
29265         Suggested by Bruno Haible.
29266
29267 2007-07-23  Ben Pfaff  <blp@gnu.org>
29268
29269         * lib/popcount.h: Use verify_true instead of if...abort.
29270         * modules/popcount: Depend on verify module.
29271         Suggested by Jim Meyering.
29272
29273 2007-07-23  Bruno Haible  <bruno@clisp.org>
29274
29275         * gnulib-tool (func_import): Create a .cvsignore file also when the
29276         directory is not yet in CVS but the toplevel directory is. When
29277         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
29278         Reported by Karl Berry.
29279
29280 2007-07-22  Ben Pfaff  <blp@gnu.org>
29281
29282         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
29283         case.
29284         Suggested by Eric Blake.
29285
29286 2007-07-22  Ben Pfaff  <blp@gnu.org>
29287
29288         New module: popcount.
29289         * MODULES.html.sh: Add popcount.
29290         * modules/popcount: New file.
29291         * modules/popcount-tests: New file.
29292         * tests/test-popcount.c: New file.
29293         * lib/popcount.h: New file.
29294         * m4/popcount.m4: New file.
29295
29296 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
29297
29298         * build-aux/announce-gen: Update to GPLv3.
29299
29300         * build-aux/config.guess: Update from config.
29301
29302 2007-07-21  Bruno Haible  <bruno@clisp.org>
29303
29304         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
29305         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
29306
29307 2007-07-20  Jim Meyering  <jim@meyering.net>
29308
29309         * check-module: Diagnose a self-dependency.
29310
29311 2007-07-19  Bruno Haible  <bruno@clisp.org>
29312
29313         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
29314         empty.
29315         Reported by Eric Blake.
29316
29317 2007-07-18  Bruno Haible  <bruno@clisp.org>
29318
29319         * gnulib-tool: New options --po-base, --po-domain.
29320         (func_usage): Document them.
29321         (pobase, po_domain): New variables.
29322         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
29323         DEFAULT_TEXT_DOMAIN.
29324         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
29325         (func_import): Consider pobase and po_domain. Create a po/ directory.
29326         (func_create_testdir): Set pobase and po_domain to empty.
29327         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
29328         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
29329
29330 2007-07-18  Bruno Haible  <bruno@clisp.org>
29331
29332         * gnulib-tool (func_get_automake_snippet): Synthesize also an
29333         EXTRA_DIST augmentation for files in build-aux/.
29334
29335 2007-07-16  Bruno Haible  <bruno@clisp.org>
29336
29337         * modules/lseek (License): Use the synonymous term "LGPLv2+".
29338         * modules/getdelim (License): Likewise.
29339
29340 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29341
29342         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
29343         * modules/d-type (License): Likewise.
29344         * modules/extensions (License): Likewise.
29345         * modules/fnmatch (License): Likewise.
29346         * modules/fseeko (License): Likewise.
29347         * modules/getaddrinfo (License): Likewise.
29348         * modules/getline (License): Likewise.
29349         * modules/getlogin_r (License): Likewise.
29350         * modules/getpass (License): Likewise.
29351         * modules/gettimeofday (License): Likewise.
29352         * modules/glob (License): Likewise.
29353         * modules/inet_ntop (License): Likewise.
29354         * modules/malloc (License): Likewise.
29355         * modules/malloca (License): Likewise.
29356         * modules/memmem (License): Likewise.
29357         * modules/mempcpy (License): Likewise.
29358         * modules/memset (License): Likewise.
29359         * modules/minmax (License): Likewise.
29360         * modules/mktime (License): Likewise.
29361         * modules/netinet_in (License): Likewise.
29362         * modules/pathmax (License): Likewise.
29363         * modules/poll (License): Likewise.
29364         * modules/regex (License): Likewise.
29365         * modules/snprintf (License): Likewise.
29366         * modules/stdbool (License): Likewise.
29367         * modules/stdint (License): Likewise.
29368         * modules/stdio (License): Likewise.
29369         * modules/strcase (License): Likewise.
29370         * modules/strcasestr (License): Likewise.
29371         * modules/strdup (License): Likewise.
29372         * modules/string (License): Likewise.
29373         * modules/strndup (License): Likewise.
29374         * modules/strnlen (License): Likewise.
29375         * modules/strpbrk (License): Likewise.
29376         * modules/strptime (License): Likewise.
29377         * modules/strsep (License): Likewise.
29378         * modules/sys_select (License): Likewise.
29379         * modules/sys_socket (License): Likewise.
29380         * modules/sys_stat (License): Likewise.
29381         * modules/sys_time (License): Likewise.
29382         * modules/time (License): Likewise.
29383         * modules/time_r (License): Likewise.
29384         * modules/timegm (License): Likewise.
29385         * modules/unistd (License): Likewise.
29386         * modules/vsnprintf (License): Likewise.
29387         * modules/wctype (License): Likewise.
29388
29389 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29390
29391         * modules/argz (License): LGPLv2+.
29392
29393 2007-07-15  Karl Berry  <karl@gnu.org>
29394
29395         * doc/gnulib.texi: revise node structure per new fdl.texi.
29396
29397 2007-07-14  Bruno Haible  <bruno@clisp.org>
29398
29399         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
29400         the output file.
29401         * lib/uniname/uninames.h: Regenerated.
29402
29403 2007-07-14  Karl Berry  <karl@gnu.org>
29404
29405         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
29406         omitting sectioning and index commands.
29407
29408 2007-07-13  Bruno Haible  <bruno@clisp.org>
29409
29410         New gnulib-tool option --more-symlinks.
29411         * gnulib-tool (func_usage): Document --more-symlinks.
29412         (do_copyrights): New variable.
29413         Recognize option --more-symlinks.
29414         (func_import): Don't add a copyright notice transform to
29415         sed_transform_lib_file if do_copyrights is empty.
29416
29417 2007-07-13  Bruno Haible  <bruno@clisp.org>
29418
29419         * lib/vasnprintf.c (decimal_point_char): Define also if
29420         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
29421         && !NEED_PRINTF_DIRECTIVE_A.
29422         Reported by Clemens Koller <clemens.koller@anagramm.de> via
29423         Gary V. Vaughan <gary@gnu.org>.
29424
29425 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
29426
29427         * lib/inttypes_.h: Undo previous change, since it was fixed
29428         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
29429
29430 2007-07-13  Bruno Haible  <bruno@clisp.org>
29431
29432         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
29433         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
29434
29435 2007-07-13  Jim Meyering  <jim@meyering.net>
29436
29437         df: Don't fail for Tru64's "file-on-file mount".
29438         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
29439         so we fall through and use statfs instead.  Details here:
29440         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
29441         Reported by Albert Chin.
29442
29443 2007-07-13  Bruno Haible  <bruno@clisp.org>
29444
29445         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
29446         * modules/configmake (License): Likewise.
29447         * modules/gettext (License): Likewise.
29448         * modules/gettext-h (License): Likewise.
29449         * modules/include_next (License): Likewise.
29450         * modules/link-warning (License): Likewise.
29451         * modules/localcharset (License): Likewise.
29452         * modules/localename (License): Likewise.
29453         * modules/lock (License): Likewise.
29454         * modules/relocatable-lib-lgpl (License): Likewise.
29455         * modules/size_max (License): Likewise.
29456         * modules/vasnprintf (License): Likewise.
29457         * modules/wchar (License): Likewise.
29458         * modules/xsize (License): Likewise.
29459
29460 2007-07-13  Bruno Haible  <bruno@clisp.org>
29461
29462         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
29463         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
29464
29465 2007-07-12  Bruno Haible  <bruno@clisp.org>
29466
29467         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
29468         in the modules files.
29469
29470 2007-07-11  Karl Berry  <karl@gnu.org>
29471
29472         * MODULES.html.sh (func_module): use
29473          sed -e '\|^'"${includefile}"'$|d'
29474          instead of /.../d, to avoid errors on $includefile's containing /.
29475
29476 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29477
29478         * gnulib-tool (func_import): Avoid duplication of --avoid
29479         statements
29480         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
29481         names to `_' in variable names.
29482
29483 2007-07-10  Eric Blake  <ebb9@byu.net>
29484
29485         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
29486         * NEWS: Document this change.
29487
29488 2007-07-08  Bruno Haible  <bruno@clisp.org>
29489
29490         Update to Unicode 5.0.
29491         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
29492         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
29493         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
29494         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
29495         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
29496         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
29497         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
29498         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
29499         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
29500         U+10A3F, U+1D242..U+1D244.
29501         (nonspacing_table_ind): Update.
29502         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
29503         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
29504
29505 2007-07-08  Bruno Haible  <bruno@clisp.org>
29506
29507         Update to Unicode 5.0.
29508         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
29509         code transform. Extend the name index field of unicode_name_to_code and
29510         unicode_code_to_name from 16 to 24 bits.
29511         * lib/uniname/uniname.c (unicode_character_name,
29512         unicode_name_character): Add the range 0x12xxx to the code transform.
29513         * lib/uniname/uninames.h: Regenerated.
29514         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
29515
29516 2007-07-07  Bruno Haible  <bruno@clisp.org>
29517
29518         * modules/wcwidth-tests: New file.
29519         * tests/test-wcwidth.c: New file.
29520
29521         Work around MacOS X wcwidth() bug.
29522         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
29523         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
29524         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
29525         original wcwidth in non-UTF-8 locales.
29526         * modules/wcwidth (Depends-on): Add localcharset, streq,
29527         uniwidth/width.
29528         * doc/functions/wcwidth.texi: Update.
29529
29530 2007-07-07  Bruno Haible  <bruno@clisp.org>
29531
29532         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
29533         (wcwidth): New declaration.
29534         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
29535         macros.
29536         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
29537         here. Prepare for creating <wchar.h> unconditionally.
29538         * modules/wchar (Depends-on): Add link-warning.
29539         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
29540         REPLACE_WCWIDTH, and GL_LINK_WARNING.
29541         * lib/wcwidth.h: Remove file.
29542         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
29543         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
29544         * modules/wcwidth (Files): Remove lib/wcwidth.h.
29545         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
29546         (Include): Replace wcwidth.h with <wchar.h>.
29547         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
29548         * lib/mbchar.h: Don't include wcwidth.h.
29549         * lib/mbswidth.c: Likewise.
29550         * NEWS: Mention the change.
29551
29552 2007-07-07  Bruno Haible  <bruno@clisp.org>
29553
29554         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
29555         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
29556         definition with an external declaration.
29557         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
29558         defined as a function. Remove AC_C_INLINE requirement.
29559         * modules/wcwidth (Files): Add lib/wcwidth.c.
29560         (Makefile.am): Remove redundant statement.
29561
29562 2007-07-07  Bruno Haible  <bruno@clisp.org>
29563
29564         * MODULES.html.sh (Unicode string functions): Add the new modules.
29565
29566         * tests/uniwidth/test-u32-strwidth.c: New file.
29567         * modules/uniwidth/u32-strwidth-tests: New file.
29568
29569         * lib/uniwidth/u32-strwidth.c: New file.
29570         * modules/uniwidth/u32-strwidth: New file.
29571
29572         * tests/uniwidth/test-u16-strwidth.c: New file.
29573         * modules/uniwidth/u16-strwidth-tests: New file.
29574
29575         * lib/uniwidth/u16-strwidth.c: New file.
29576         * modules/uniwidth/u16-strwidth: New file.
29577
29578         * tests/uniwidth/test-u8-strwidth.c: New file.
29579         * modules/uniwidth/u8-strwidth-tests: New file.
29580
29581         * lib/uniwidth/u8-strwidth.c: New file.
29582         * modules/uniwidth/u8-strwidth: New file.
29583
29584         * tests/uniwidth/test-u32-width.c: New file.
29585         * modules/uniwidth/u32-width-tests: New file.
29586
29587         * lib/uniwidth/u32-width.c: New file.
29588         * modules/uniwidth/u32-width: New file.
29589
29590         * tests/uniwidth/test-u16-width.c: New file.
29591         * modules/uniwidth/u16-width-tests: New file.
29592
29593         * lib/uniwidth/u16-width.c: New file.
29594         * modules/uniwidth/u16-width: New file.
29595
29596         * tests/uniwidth/test-u8-width.c: New file.
29597         * modules/uniwidth/u8-width-tests: New file.
29598
29599         * lib/uniwidth/u8-width.c: New file.
29600         * modules/uniwidth/u8-width: New file.
29601
29602         * tests/uniwidth/test-uc_width.c: New file.
29603         * modules/uniwidth/width-tests: New file.
29604
29605         * lib/uniwidth/width.c: New file, from GNU libiconv.
29606         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
29607         * modules/uniwidth/width: New file.
29608
29609         * lib/uniwidth.h: New file, from GNU libiconv.
29610         * modules/uniwidth/base: New file.
29611
29612 2007-07-07  Bruno Haible  <bruno@clisp.org>
29613
29614         * lib/uniname.h: New file, from GNU gettext.
29615         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
29616         * lib/uniname/uninames.h: New file, from GNU gettext.
29617         * lib/uniname/uniname.c: New file, from GNU gettext.
29618         * tests/uniname/test-uninames.sh: New file.
29619         * tests/uniname/test-uninames.c: New file, from GNU gettext.
29620         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
29621         * modules/uniname/base: New file.
29622         * modules/uniname/uniname: New file.
29623         * modules/uniname/uniname-tests: New file.
29624         * MODULES.html.sh (Unicode string functions): Add the new modules.
29625
29626 2007-07-06  Bruno Haible  <bruno@clisp.org>
29627
29628         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
29629
29630 2007-07-06  Bruno Haible  <bruno@clisp.org>
29631
29632         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
29633         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
29634         includes <cygwin/sys_time.h> which includes <sys/select.h> which
29635         include <sys/time.h>.
29636         Reported by Eric Blake.
29637
29638 2007-07-06  Eric Blake  <ebb9@byu.net>
29639
29640         Fix testing canonicalize on cygwin.
29641         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
29642         Revert patch from 2007-06-19.
29643         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
29644         canonicalize module is also in use.
29645         * tests/test-canonicalize.c: New file.
29646         * tests/test-canonicalize.sh: Likewise.
29647         * modules/canonicalize-tests: Likewise.
29648
29649 2007-07-06  Jim Meyering  <jim@meyering.net>
29650
29651         * lib/getugroups.c (getugroups): Detect getgrent failure.
29652         Adjust comment to reflect reality: this function may return -1.
29653
29654 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29655
29656         * build-aux/bootstrap (TP_URL,get_translations): Update to use
29657         the new TP address.
29658         (usage): Fix typo
29659         (gnulib_mk): New variable.
29660
29661 2007-07-05  Jim Meyering  <jim@meyering.net>
29662
29663         Don't let endgrent clobber errno, no matter how improbable.
29664         * lib/getugroups.c (getugroups): Save and restore errno around
29665         endgrent call.
29666
29667         Close the group DB even when failing with 2^31 or more members.
29668         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
29669
29670 2007-07-04  Jim Meyering  <jim@meyering.net>
29671
29672         * lib/getugroups.h: New file.
29673         * lib/getugroups.c: Include "getugroups.h".
29674         Remove uses of "register" keyword.
29675         Move local variable, "cp", down into scope where used.
29676         Give "username" parameter the "const" attribute.
29677         * modules/getugroups (Files): Add lib/getugroups.h
29678
29679 2007-07-04  Karl Berry  <karl@gnu.org>
29680
29681         * MODULES.html.sh (func_all_modules): Complete rename of
29682         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
29683
29684 2007-07-02  Bruno Haible  <bruno@clisp.org>
29685
29686         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
29687         mode, when inttypes.h comes from gnulib.
29688         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29689
29690 2007-07-02  Simon Josefsson  <simon@josefsson.org>
29691
29692         * NEWS: Mention lgpl module name change.
29693
29694         * modules/lgpl-2.1: Renamed from lgpl.
29695
29696         * NEWS: Mention gpl module name change.
29697
29698         * modules/gpl-3.0: New file, based on gpl-2.0.
29699
29700         * modules/gpl-2.0: Renamed from gpl.
29701
29702         * modules/gpl: Fix filename, doc/gpl.texi is now found at
29703         doc/gpl-2.0.texi.
29704
29705 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
29706
29707         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
29708         #define __STDC_LIMIT_MACROS temporarily while including
29709         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
29710         Problem reported by Joel E. Denny in
29711         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
29712
29713 2007-07-01  Bruno Haible  <bruno@clisp.org>
29714
29715         * lib/unistdio.h: New file.
29716         * lib/unistdio/u-asnprintf.h: New file.
29717         * lib/unistdio/u-asprintf.h: New file.
29718         * lib/unistdio/u-printf-args.c: New file.
29719         * lib/unistdio/u-printf-args.h: New file.
29720         * lib/unistdio/u-printf-parse.h: New file.
29721         * lib/unistdio/u-snprintf.h: New file.
29722         * lib/unistdio/u-sprintf.h: New file.
29723         * lib/unistdio/u-vasprintf.h: New file.
29724         * lib/unistdio/u-vsnprintf.h: New file.
29725         * lib/unistdio/u-vsprintf.h: New file.
29726         * lib/unistdio/ulc-asnprintf.c: New file.
29727         * lib/unistdio/ulc-asprintf.c: New file.
29728         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
29729         * lib/unistdio/ulc-printf-parse.c: New file.
29730         * lib/unistdio/ulc-snprintf.c: New file.
29731         * lib/unistdio/ulc-sprintf.c: New file.
29732         * lib/unistdio/ulc-vasnprintf.c: New file.
29733         * lib/unistdio/ulc-vasprintf.c: New file.
29734         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
29735         * lib/unistdio/ulc-vsnprintf.c: New file.
29736         * lib/unistdio/ulc-vsprintf.c: New file.
29737         * lib/unistdio/u8-asnprintf.c: New file.
29738         * lib/unistdio/u8-asprintf.c: New file.
29739         * lib/unistdio/u8-printf-parse.c: New file.
29740         * lib/unistdio/u8-snprintf.c: New file.
29741         * lib/unistdio/u8-sprintf.c: New file.
29742         * lib/unistdio/u8-vasnprintf.c: New file.
29743         * lib/unistdio/u8-vasprintf.c: New file.
29744         * lib/unistdio/u8-vsnprintf.c: New file.
29745         * lib/unistdio/u8-vsprintf.c: New file.
29746         * lib/unistdio/u8-u8-asnprintf.c: New file.
29747         * lib/unistdio/u8-u8-asprintf.c: New file.
29748         * lib/unistdio/u8-u8-snprintf.c: New file.
29749         * lib/unistdio/u8-u8-sprintf.c: New file.
29750         * lib/unistdio/u8-u8-vasnprintf.c: New file.
29751         * lib/unistdio/u8-u8-vasprintf.c: New file.
29752         * lib/unistdio/u8-u8-vsnprintf.c: New file.
29753         * lib/unistdio/u8-u8-vsprintf.c: New file.
29754         * lib/unistdio/u16-asnprintf.c: New file.
29755         * lib/unistdio/u16-asprintf.c: New file.
29756         * lib/unistdio/u16-printf-parse.c: New file.
29757         * lib/unistdio/u16-snprintf.c: New file.
29758         * lib/unistdio/u16-sprintf.c: New file.
29759         * lib/unistdio/u16-vasnprintf.c: New file.
29760         * lib/unistdio/u16-vasprintf.c: New file.
29761         * lib/unistdio/u16-vsnprintf.c: New file.
29762         * lib/unistdio/u16-vsprintf.c: New file.
29763         * lib/unistdio/u16-u16-asnprintf.c: New file.
29764         * lib/unistdio/u16-u16-asprintf.c: New file.
29765         * lib/unistdio/u16-u16-snprintf.c: New file.
29766         * lib/unistdio/u16-u16-sprintf.c: New file.
29767         * lib/unistdio/u16-u16-vasnprintf.c: New file.
29768         * lib/unistdio/u16-u16-vasprintf.c: New file.
29769         * lib/unistdio/u16-u16-vsnprintf.c: New file.
29770         * lib/unistdio/u16-u16-vsprintf.c: New file.
29771         * lib/unistdio/u32-asnprintf.c: New file.
29772         * lib/unistdio/u32-asprintf.c: New file.
29773         * lib/unistdio/u32-printf-parse.c: New file.
29774         * lib/unistdio/u32-snprintf.c: New file.
29775         * lib/unistdio/u32-sprintf.c: New file.
29776         * lib/unistdio/u32-vasnprintf.c: New file.
29777         * lib/unistdio/u32-vasprintf.c: New file.
29778         * lib/unistdio/u32-vsnprintf.c: New file.
29779         * lib/unistdio/u32-vsprintf.c: New file.
29780         * lib/unistdio/u32-u32-asnprintf.c: New file.
29781         * lib/unistdio/u32-u32-asprintf.c: New file.
29782         * lib/unistdio/u32-u32-snprintf.c: New file.
29783         * lib/unistdio/u32-u32-sprintf.c: New file.
29784         * lib/unistdio/u32-u32-vasnprintf.c: New file.
29785         * lib/unistdio/u32-u32-vasprintf.c: New file.
29786         * lib/unistdio/u32-u32-vsnprintf.c: New file.
29787         * lib/unistdio/u32-u32-vsprintf.c: New file.
29788         * tests/unistdio/test-ulc-asnprintf1.c: New file.
29789         * tests/unistdio/test-ulc-asnprintf1.h: New file.
29790         * tests/unistdio/test-ulc-printf1.h: New file.
29791         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
29792         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
29793         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
29794         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
29795         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
29796         * tests/unistdio/test-ulc-vasprintf1.c: New file.
29797         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
29798         * tests/unistdio/test-ulc-vsprintf1.c: New file.
29799         * tests/unistdio/test-u8-asnprintf1.c: New file.
29800         * tests/unistdio/test-u8-asnprintf1.h: New file.
29801         * tests/unistdio/test-u8-printf1.h: New file.
29802         * tests/unistdio/test-u8-vasnprintf1.c: New file.
29803         * tests/unistdio/test-u8-vasnprintf2.c: New file.
29804         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
29805         * tests/unistdio/test-u8-vasnprintf3.c: New file.
29806         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
29807         * tests/unistdio/test-u8-vasprintf1.c: New file.
29808         * tests/unistdio/test-u8-vsnprintf1.c: New file.
29809         * tests/unistdio/test-u8-vsprintf1.c: New file.
29810         * tests/unistdio/test-u16-asnprintf1.c: New file.
29811         * tests/unistdio/test-u16-asnprintf1.h: New file.
29812         * tests/unistdio/test-u16-printf1.h: New file.
29813         * tests/unistdio/test-u16-vasnprintf1.c: New file.
29814         * tests/unistdio/test-u16-vasnprintf2.c: New file.
29815         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
29816         * tests/unistdio/test-u16-vasnprintf3.c: New file.
29817         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
29818         * tests/unistdio/test-u16-vasprintf1.c: New file.
29819         * tests/unistdio/test-u16-vsnprintf1.c: New file.
29820         * tests/unistdio/test-u16-vsprintf1.c: New file.
29821         * tests/unistdio/test-u32-asnprintf1.c: New file.
29822         * tests/unistdio/test-u32-asnprintf1.h: New file.
29823         * tests/unistdio/test-u32-printf1.h: New file.
29824         * tests/unistdio/test-u32-vasnprintf1.c: New file.
29825         * tests/unistdio/test-u32-vasnprintf2.c: New file.
29826         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
29827         * tests/unistdio/test-u32-vasnprintf3.c: New file.
29828         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
29829         * tests/unistdio/test-u32-vasprintf1.c: New file.
29830         * tests/unistdio/test-u32-vsnprintf1.c: New file.
29831         * tests/unistdio/test-u32-vsprintf1.c: New file.
29832         * modules/unistdio/base: New file.
29833         * modules/unistdio/u-printf-args: New file.
29834         * modules/unistdio/ulc-asnprintf: New file.
29835         * modules/unistdio/ulc-asprintf: New file.
29836         * modules/unistdio/ulc-fprintf: New file.
29837         * modules/unistdio/ulc-printf-parse: New file.
29838         * modules/unistdio/ulc-snprintf: New file.
29839         * modules/unistdio/ulc-sprintf: New file.
29840         * modules/unistdio/ulc-vasnprintf: New file.
29841         * modules/unistdio/ulc-vasprintf: New file.
29842         * modules/unistdio/ulc-vfprintf: New file.
29843         * modules/unistdio/ulc-vsnprintf: New file.
29844         * modules/unistdio/ulc-vsprintf: New file.
29845         * modules/unistdio/u8-asnprintf: New file.
29846         * modules/unistdio/u8-asprintf: New file.
29847         * modules/unistdio/u8-printf-parse: New file.
29848         * modules/unistdio/u8-snprintf: New file.
29849         * modules/unistdio/u8-sprintf: New file.
29850         * modules/unistdio/u8-vasnprintf: New file.
29851         * modules/unistdio/u8-vasprintf: New file.
29852         * modules/unistdio/u8-vsnprintf: New file.
29853         * modules/unistdio/u8-vsprintf: New file.
29854         * modules/unistdio/u8-u8-asnprintf: New file.
29855         * modules/unistdio/u8-u8-asprintf: New file.
29856         * modules/unistdio/u8-u8-snprintf: New file.
29857         * modules/unistdio/u8-u8-sprintf: New file.
29858         * modules/unistdio/u8-u8-vasnprintf: New file.
29859         * modules/unistdio/u8-u8-vasprintf: New file.
29860         * modules/unistdio/u8-u8-vsnprintf: New file.
29861         * modules/unistdio/u8-u8-vsprintf: New file.
29862         * modules/unistdio/u16-asnprintf: New file.
29863         * modules/unistdio/u16-asprintf: New file.
29864         * modules/unistdio/u16-printf-parse: New file.
29865         * modules/unistdio/u16-snprintf: New file.
29866         * modules/unistdio/u16-sprintf: New file.
29867         * modules/unistdio/u16-vasnprintf: New file.
29868         * modules/unistdio/u16-vasprintf: New file.
29869         * modules/unistdio/u16-vsnprintf: New file.
29870         * modules/unistdio/u16-vsprintf: New file.
29871         * modules/unistdio/u16-u16-asnprintf: New file.
29872         * modules/unistdio/u16-u16-asprintf: New file.
29873         * modules/unistdio/u16-u16-snprintf: New file.
29874         * modules/unistdio/u16-u16-sprintf: New file.
29875         * modules/unistdio/u16-u16-vasnprintf: New file.
29876         * modules/unistdio/u16-u16-vasprintf: New file.
29877         * modules/unistdio/u16-u16-vsnprintf: New file.
29878         * modules/unistdio/u16-u16-vsprintf: New file.
29879         * modules/unistdio/u32-asnprintf: New file.
29880         * modules/unistdio/u32-asprintf: New file.
29881         * modules/unistdio/u32-printf-parse: New file.
29882         * modules/unistdio/u32-snprintf: New file.
29883         * modules/unistdio/u32-sprintf: New file.
29884         * modules/unistdio/u32-vasnprintf: New file.
29885         * modules/unistdio/u32-vasprintf: New file.
29886         * modules/unistdio/u32-vsnprintf: New file.
29887         * modules/unistdio/u32-vsprintf: New file.
29888         * modules/unistdio/u32-u32-asnprintf: New file.
29889         * modules/unistdio/u32-u32-asprintf: New file.
29890         * modules/unistdio/u32-u32-snprintf: New file.
29891         * modules/unistdio/u32-u32-sprintf: New file.
29892         * modules/unistdio/u32-u32-vasnprintf: New file.
29893         * modules/unistdio/u32-u32-vasprintf: New file.
29894         * modules/unistdio/u32-u32-vsnprintf: New file.
29895         * modules/unistdio/u32-u32-vsprintf: New file.
29896         * modules/unistdio/ulc-asnprintf-tests: New file.
29897         * modules/unistdio/ulc-vasnprintf-tests: New file.
29898         * modules/unistdio/ulc-vasprintf-tests: New file.
29899         * modules/unistdio/ulc-vsnprintf-tests: New file.
29900         * modules/unistdio/ulc-vsprintf-tests: New file.
29901         * modules/unistdio/u8-asnprintf-tests: New file.
29902         * modules/unistdio/u8-vasnprintf-tests: New file.
29903         * modules/unistdio/u8-vasprintf-tests: New file.
29904         * modules/unistdio/u8-vsnprintf-tests: New file.
29905         * modules/unistdio/u8-vsprintf-tests: New file.
29906         * modules/unistdio/u16-asnprintf-tests: New file.
29907         * modules/unistdio/u16-vasnprintf-tests: New file.
29908         * modules/unistdio/u16-vasprintf-tests: New file.
29909         * modules/unistdio/u16-vsnprintf-tests: New file.
29910         * modules/unistdio/u16-vsprintf-tests: New file.
29911         * modules/unistdio/u32-asnprintf-tests: New file.
29912         * modules/unistdio/u32-vasnprintf-tests: New file.
29913         * modules/unistdio/u32-vasprintf-tests: New file.
29914         * modules/unistdio/u32-vsnprintf-tests: New file.
29915         * modules/unistdio/u32-vsprintf-tests: New file.
29916         * MODULES.html.sh (Unicode string functions): Add the new modules.
29917
29918 2007-07-01  Bruno Haible  <bruno@clisp.org>
29919
29920         * lib/sprintf.c (sprintf): Limit the available length estimation,
29921         to avoid address wraparound.
29922         * lib/vsprintf.c (vsprintf): Likewise.
29923         * modules/sprintf-posix (Dependencies): Add stdint.
29924         * modules/vsprintf-posix (Dependencies): Likewise.
29925
29926 2007-07-01  Bruno Haible  <bruno@clisp.org>
29927
29928         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
29929         Windows PATH as well. Conservative double-quoting. Comments.
29930
29931 2007-07-01  Bruno Haible  <bruno@clisp.org>
29932             Eric Blake  <ebb9@byu.net>
29933             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29934
29935         * gnulib-tool (self_abspathname): Fix algorithm to cope with
29936         empty components in $PATH, denoting '.'.
29937
29938 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29939
29940         * gnulib-tool: Fix indentation.
29941         (func_create_megatestdir): Likewise.
29942         Report by Bruno Haible.
29943
29944 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29945
29946         Sync from Automake.
29947         * build-aux/gnupload: Fix shell portability issues with for loops.
29948         Report by Karl Berry.
29949
29950 2007-06-29  Simon Josefsson  <simon@josefsson.org>
29951
29952         * build-aux/maint.mk (POURL): Use translationproject.org.
29953
29954 2007-06-27  Simon Josefsson  <simon@josefsson.org>
29955             Bruno Haible  <bruno@clisp.org>
29956
29957         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
29958         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
29959         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
29960         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
29961         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
29962
29963 2007-06-27  Bruno Haible  <bruno@clisp.org>
29964
29965         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
29966         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
29967
29968 2007-06-26  Karl Berry  <karl@gnu.org>
29969
29970         * MODULES.html.sh: remove xreadlink-with-size.
29971
29972 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
29973
29974         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
29975         method that I hope also handles the double-include problem noted
29976         by Bruno Haible in
29977         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
29978
29979 2007-06-23  Bruno Haible  <bruno@clisp.org>
29980
29981         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29982         Don't let the 'mostlyclean' target fail if the last subdirectory could
29983         not be removed.
29984         Reported by Karl Berry.
29985
29986 2007-06-23  Bruno Haible  <bruno@clisp.org>
29987
29988         * gnulib-tool (echo): Add a speedier workaround for ksh.
29989         * tests/test-echo.sh: Likewise.
29990
29991 2007-06-23  Bruno Haible  <bruno@clisp.org>
29992
29993         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
29994         * tests/test-echo.sh: Likewise.
29995
29996 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29997
29998         * gnulib-tool (IFS): Initialize early, so we don't set it to
29999         empty later.
30000         (self_abspathname): Rewrite algorithm to set it, reindent.
30001         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
30002         (func_create_megatestdir): Merge some sed scripts.
30003
30004 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30005
30006         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
30007         exposed by Sun Studio 11 cc on Solaris 8.
30008
30009 2007-06-22  Bruno Haible  <bruno@clisp.org>
30010
30011         * gnulib-tool (echo): Ensure the echo primitive does not interpret
30012         backslashes.
30013         * tests/test-echo.sh: New file.
30014
30015 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30016
30017         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
30018         simplify `sed_replace_build_aux' scripts, they are portable but
30019         echoing them with `echo' is not.
30020         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
30021
30022 2007-06-21  Karl Berry  <karl@gnu.org>
30023
30024         * config/srclist.txt: guess we can't handle the licenses via
30025         srclist at the moment.
30026
30027 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
30028
30029         * MODULES.html.sh: Add include_next.
30030         * modules/include_next: New file.
30031
30032 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
30033
30034         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
30035         INCLUDE_NEXT.
30036         (gl_CHECK_NEXT_HEADERS): New macro.
30037         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
30038         the obsolescent gl_ABSOLUTE_HEADER.
30039         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
30040         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
30041         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
30042         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30043         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30044         * m4/math_h.m4 (gl_MATH_H): Likewise.
30045         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
30046         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30047         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30048         * m4/stdint.m4 (gl_STDINT_H): Likewise.
30049         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
30050         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
30051         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
30052         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30053         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30054         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30055         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30056         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
30057         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
30058         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30059         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30060         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
30061         * m4/inttypes.m4 (gl_INTTYPES_H): Define
30062         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
30063         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
30064         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
30065         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
30066         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
30067         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
30068         * lib/float_.h: Likewise.
30069         * lib/inttypes_.h: Likewise.
30070         * lib/math_.h: Likewise.
30071         * lib/search_.h: Likewise.
30072         * lib/signal_.h: Likewise.
30073         * lib/stdint_.h: Likewise.
30074         * lib/stdio_.h: Likewise.
30075         * lib/stdlib_.h: Likewise.
30076         * lib/string_.h: Likewise.
30077         * lib/sys_stat_.h: Likewise.
30078         * lib/sys_time_.h: Likewise.
30079         * lib/time_.h: Likewise.
30080         * lib/unistd_.h: Likewise.
30081         * lib/wchar_.h: Likewise.
30082         * lib/wctype_.h: Likewise.
30083         * lib/dirent_.h: Likewise.
30084         * lib/iconv_.h: Likewise.
30085         * lib/locale_.h: Likewise.
30086         * lib/netinet_in_.h: Likewise.
30087         * lib/sys_select_.h: Likewise.
30088         * lib/sys_socket_.h: Likewise.
30089         * lib/sysexits_.h: Likewise.
30090         * modules/fcntl (Depends-on): Depend on include_next, not
30091         absolute_header.
30092         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
30093         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
30094         * modules/fchdir: Likewise.
30095         * modules/float: Likewise.
30096         * modules/iconv_open: Likewise.
30097         * modules/inttypes: Likewise.
30098         * modules/locale: Likewise.
30099         * modules/math: Likewise.
30100         * modules/netinet_in: Likewise.
30101         * modules/search: Likewise.
30102         * modules/signal: Likewise.
30103         * modules/stdint: Likewise.
30104         * modules/stdio: Likewise.
30105         * modules/stdlib: Likewise.
30106         * modules/string: Likewise.
30107         * modules/sys_select: Likewise.
30108         * modules/sys_socket: Likewise.
30109         * modules/sys_stat: Likewise.
30110         * modules/sys_time: Likewise.
30111         * modules/sysexits: Likewise.
30112         * modules/time: Likewise.
30113         * modules/unistd: Likewise.
30114         * modules/wchar: Likewise.
30115         * modules/wctype: Likewise.
30116         * modules/sys_stat: Change maintainer to "all".
30117         * modules/unistd: Likewise.
30118
30119 2007-06-20  Karl Berry  <karl@gnu.org>
30120
30121         * config/srclist.txt: track www changes in license files.
30122
30123 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
30124
30125         * build-aux/bootstrap: Remove stray dot.
30126         Make sure build_aux settings are honored when linking
30127         gnulib_extra_files.
30128
30129 2007-06-19  Eric Blake  <ebb9@byu.net>
30130
30131         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
30132         Allow compilation on cygwin.
30133
30134 2007-06-19  Jim Meyering  <jim@meyering.net>
30135
30136         xreadlink-with-size: Remove module.  No longer used.
30137         Ex-callers now use xreadlink or mreadlink-with-size.
30138         * modules/xreadlink-with-size: Remove module.
30139         * lib/xreadlink-with-size.c: Remove file.
30140         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
30141         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
30142         just before the function definition *is* accurate.
30143
30144         Eliminate one way canonicalize_filename_mode could exit.
30145         * lib/canonicalize.c (canonicalize_filename_mode):
30146         Use mreadlink_with_size, not xreadlink_with_size.
30147
30148 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
30149
30150         Detect porting problems to FreeBSD/arm, which has time_t wider than
30151         long int.  Original problem reported for GNU diff by Xin Li in
30152         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
30153         * modules/getdate (Depends-on): Add intprops, verify.
30154         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
30155         is an integer type no wider than long int.
30156
30157 2007-06-18  Jim Meyering  <jim@meyering.net>
30158
30159         New module: mreadlink-with-size.
30160         * MODULES.html.sh: Add mreadlink-with-size.
30161         * modules/mreadlink-with-size: New module
30162         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
30163         not xreadlink-with-size.
30164         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
30165
30166 2007-06-16  Bruno Haible  <bruno@clisp.org>
30167
30168         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
30169         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
30170         Reported by Gary V. Vaughan <gary@gnu.org>.
30171
30172 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
30173
30174         Revamp lchown so that it lives in unistd.h where it belongs.
30175         * lib/lchown.h: Remove.
30176         * lib/dirchownmod.c: Don't include lib/lchown.h.
30177         * lib/fchownat.c: Likewise.
30178         * lib/openat.c: Likewise.
30179         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
30180         does not follow symlinks.
30181         (EOPNOTSUPP): Define if not defined.
30182         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
30183         is defined to 0.
30184         (lchown): New decl.
30185         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
30186         Do not check for lchown decl.
30187         Set REPLACE_LCHOWN.
30188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
30189         REPLACE_LCHOWN.
30190         * modules/chown: Make it clear it follows symlinks.
30191         * modules/lchown: Make it clear it doesn't follow symlinks.
30192         (Files): Remove lib/lchown.h
30193         (Depends-on): Add unistd.
30194         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
30195         (Include): Include <unistd.h>, not "lchown.h".
30196         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
30197         REPLACE_LCHOWN.
30198
30199 2007-06-15  Jim Meyering  <jim@meyering.net>
30200
30201         Change license (GPL to LGPL) of fsusage and dependents.
30202         * modules/fsusage (License): Change to LGPL.
30203         * modules/full-read (License): Likewise.
30204         * modules/full-write (License): Likewise.
30205         * modules/safe-read (License): Likewise.
30206         * modules/safe-write (License): Likewise.
30207
30208 2007-06-14  Ben Pfaff  <blp@gnu.org>
30209
30210         Missing part of allocsa -> malloca transition.
30211         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
30212         gl_MALLOCA.
30213
30214 2007-06-12  Bruno Haible  <bruno@clisp.org>
30215
30216         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
30217         to ia64, x86_64, i386.
30218         Reported by Eric Blake.
30219
30220 2007-06-12  Bruno Haible  <bruno@clisp.org>
30221
30222         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
30223         cross-compiling to x86_64.
30224
30225 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
30226
30227         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
30228         glitch reported by Ralf Wildenhues in
30229         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
30230
30231         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
30232         Vin Shelton.
30233
30234 2007-06-11  Bruno Haible  <bruno@clisp.org>
30235
30236         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
30237         replacement string.
30238         Reported by Eric Blake.
30239
30240 2007-06-10  Bruno Haible  <bruno@clisp.org>
30241
30242         Prepare vasnprintf code for use with Unicode strings.
30243         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
30244         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
30245         TYPE_U32_STRING.
30246         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
30247         a_u32_string variants.
30248         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
30249         * lib/printf-args.c: Don't include config.h and the specification
30250         header if PRINTF_FETCHARGS is already defined.
30251         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
30252         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
30253         TYPE_U16_STRING, TYPE_U32_STRING.
30254         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
30255         u16_directive, u16_directives, u32_directive, u32_directives): New
30256         types.
30257         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
30258         New declarations.
30259         * lib/printf-parse.c: Don't include config.h and the specification
30260         header if PRINTF_PARSE is already defined. Eliminate the set of
30261         parameters for WIDE_CHAR_VERSION; the user of this file must provide
30262         them now. Include c-ctype.h.
30263         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
30264         directive and CHAR_T_ONLY_ASCII.
30265         * lib/vasnprintf.c: Don't include config.h and the specification header
30266         if VASNPRINTF is already defined.
30267         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
30268         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
30269         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
30270         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
30271         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
30272         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
30273         code accordingly.
30274         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
30275         pad_ourselves also in this case, with the 'c' and 's' directives, and
30276         with a different notion of "width".
30277         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
30278
30279 2007-06-10  Bruno Haible  <bruno@clisp.org>
30280
30281         * modules/unistr/u32-mbsnlen: New file.
30282         * lib/unistr/u32-mbsnlen.c: New file.
30283
30284         * modules/unistr/u16-mbsnlen: New file.
30285         * lib/unistr/u16-mbsnlen.c: New file.
30286
30287         * modules/unistr/u8-mbsnlen: New file.
30288         * lib/unistr/u8-mbsnlen.c: New file.
30289
30290         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
30291         declarations.
30292
30293 2007-06-10  Bruno Haible  <bruno@clisp.org>
30294
30295         * lib/string_.h (mbsnlen): New declaration.
30296         * lib/mbsnlen.c: New file.
30297         * m4/mbsnlen.m4: New file.
30298         * modules/mbsnlen: New file.
30299         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
30300         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
30301         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
30302
30303 2007-06-10  Bruno Haible  <bruno@clisp.org>
30304
30305         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
30306
30307 2007-06-10  Bruno Haible  <bruno@clisp.org>
30308
30309         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
30310         * lib/mbuiter.h: Likewise.
30311
30312 2007-06-10  Bruno Haible  <bruno@clisp.org>
30313
30314         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
30315         declaration.
30316
30317 2007-06-10  Karl Berry  <karl@gnu.org>
30318
30319         * config/srclist.txt: remove gettext entries, Bruno prefers
30320         to update individually.
30321
30322 2007-06-10  Bruno Haible  <bruno@clisp.org>
30323
30324         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
30325         'maxlen'. Ensure only length + width bytes are allocated, not
30326         length + 1 + width.
30327
30328 2007-06-09  Bruno Haible  <bruno@clisp.org>
30329
30330         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
30331         (CHAR_T): Remove macro.
30332         (VASNPRINTF): Update.
30333
30334 2007-06-09  Bruno Haible  <bruno@clisp.org>
30335
30336         * MODULES.html.sh (Unicode string functions): Add the new modules.
30337
30338         * modules/uniconv/u32-conv-to-enc: New file.
30339         * lib/uniconv/u32-conv-to-enc.c: New file.
30340         * modules/uniconv/u32-conv-to-enc-tests: New file.
30341         * tests/uniconv/test-u32-conv-to-enc.c: New file.
30342
30343         * modules/uniconv/u16-conv-to-enc: New file.
30344         * lib/uniconv/u16-conv-to-enc.c: New file.
30345         * lib/uniconv/u-conv-to-enc.h: New file.
30346         * modules/uniconv/u16-conv-to-enc-tests: New file.
30347         * tests/uniconv/test-u16-conv-to-enc.c: New file.
30348
30349         * modules/uniconv/u8-conv-to-enc: New file.
30350         * lib/uniconv/u8-conv-to-enc.c: New file.
30351         * modules/uniconv/u8-conv-to-enc-tests: New file.
30352         * tests/uniconv/test-u8-conv-to-enc.c: New file.
30353
30354         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
30355         u32_conv_to_encoding): New declarations.
30356
30357 2007-06-09  Bruno Haible  <bruno@clisp.org>
30358
30359         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
30360
30361 2007-06-09  Bruno Haible  <bruno@clisp.org>
30362
30363         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
30364         * modules/malloca: Renamed from modules/allocsa, updated.
30365         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
30366         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
30367         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
30368         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
30369         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
30370         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
30371         * modules/xmalloca: Renamed from modules/xallocsa, updated.
30372         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
30373         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
30374         * modules/c-strcasestr (Depends-on): Update.
30375         * lib/c-strcasestr.c: Update.
30376         * modules/c-strstr (Depends-on): Update.
30377         * lib/c-strstr.c: Update.
30378         * modules/canonicalize-lgpl (Depends-on): Update.
30379         * lib/canonicalize-lgpl.c: Update.
30380         * modules/clean-temp (Depends-on): Update.
30381         * lib/clean-temp.c: Update.
30382         * modules/csharpcomp (Depends-on): Update.
30383         * lib/csharpcomp.c: Update.
30384         * modules/csharpexec (Depends-on): Update.
30385         * lib/csharpexec.c: Update.
30386         * modules/javacomp (Depends-on): Update.
30387         * lib/javacomp.c: Update.
30388         * modules/javaexec (Depends-on): Update.
30389         * lib/javaexec.c: Update.
30390         * modules/mbscasestr (Depends-on): Update.
30391         * lib/mbscasestr.c: Update.
30392         * modules/mbsstr (Depends-on): Update.
30393         * lib/mbsstr.c: Update.
30394         * modules/setenv (Depends-on): Update.
30395         * lib/setenv.c: Update.
30396         * modules/strcasestr (Depends-on): Update.
30397         * lib/strcasestr.c: Update.
30398         * modules/striconveha (Depends-on): Update.
30399         * lib/striconveha.c: Update.
30400         * modules/relocatable-prog-wrapper (Files): Update.
30401         * lib/relocwrapper.c: Update.
30402         * build-aux/install-reloc: Update.
30403         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
30404
30405 2007-06-08  Bruno Haible  <bruno@clisp.org>
30406
30407         Port to uClibc.
30408         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
30409         * lib/fpurge.c (fpurge): Likewise.
30410         * lib/freading.c (freading): Likewise.
30411         * lib/fseeko.c (rpl_fseeko): Likewise.
30412         * lib/fseterr.c (fseterr): Likewise.
30413         * lib/fwriting.c (fwriting): Likewise.
30414         * tests/test-fflush.c (main): Avoid a failure on uClibc.
30415
30416 2007-06-08  Bruno Haible  <bruno@clisp.org>
30417
30418         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
30419         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
30420         * modules/gettext (Files): Add m4/intlmacosx.m4.
30421
30422 2007-06-07  Bruno Haible  <bruno@clisp.org>
30423
30424         * modules/localename-tests: New file.
30425         * tests/test-localename.c: New file.
30426
30427         New module 'localename'.
30428         * lib/localename.h: New file.
30429         * lib/localename.c: New file, from GNU gettext.
30430         * m4/localename.m4: New file.
30431         * modules/localename: New file.
30432
30433 2007-06-07  Bruno Haible  <bruno@clisp.org>
30434
30435         Work around the lack of <wchar.h> on some builds of uClibc.
30436         * doc/headers/wchar.texi: Update.
30437         * lib/wchar_.h: Include <wchar.h> only if it exists.
30438         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
30439         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
30440         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
30441         doesn't exist.
30442         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
30443         * modules/mbfile (Depends-on): Add wchar.
30444         * modules/mbiter (Depends-on): Likewise.
30445         * modules/mbuiter (Depends-on): Likewise.
30446         Reported by Simon Josefsson.
30447
30448 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
30449
30450         Work around problem reported by Steven M. Schweda in
30451         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
30452         Tru64 5.1B with the Compaq compiler environment installed declares
30453         an 'isblank' function but does not define it in the C library.
30454         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
30455         * lib/regex_internal.h (isblank): Likewise.
30456         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
30457         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30458
30459 2007-06-05  Bruno Haible  <bruno@clisp.org>
30460
30461         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
30462         ia64.
30463         * modules/printf-safe: New file.
30464         * modules/fprintf-posix (Depends-on): Add printf-safe.
30465         * modules/printf-posix (Depends-on): Likewise.
30466         * modules/snprintf-posix (Depends-on): Likewise.
30467         * modules/sprintf-posix (Depends-on): Likewise.
30468         * modules/vasnprintf-posix (Depends-on): Likewise.
30469         * modules/vasprintf-posix (Depends-on): Likewise.
30470         * modules/vfprintf-posix (Depends-on): Likewise.
30471         * modules/vprintf-posix (Depends-on): Likewise.
30472         * modules/vsnprintf-posix (Depends-on): Likewise.
30473         * modules/vsprintf-posix (Depends-on): Likewise.
30474         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
30475         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
30476         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
30477         "no" on i386, x86_64, ia64.
30478         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
30479         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30480         on i386, x86_64, ia64.
30481         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
30482         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30483         on i386, x86_64, ia64.
30484         * tests/test-vasnprintf-posix.c: Include float.h.
30485         (LDBL80_WORDS): New macro.
30486         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30487         on i386, x86_64, ia64.
30488         * tests/test-vasprintf-posix.c: Include float.h.
30489         (LDBL80_WORDS): New macro.
30490         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30491         on i386, x86_64, ia64.
30492         * tests/test-snprintf-posix.c: Include float.h.
30493         * tests/test-sprintf-posix.c: Likewise.
30494         * tests/test-vsnprintf-posix.c: Likewise.
30495         * tests/test-vsprintf-posix.c: Likewise.
30496
30497 2007-06-05  Bruno Haible  <bruno@clisp.org>
30498
30499         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
30500         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
30501         non-IEEE numbers on i386, x86_64, ia64.
30502         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
30503         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
30504         * tests/test-isnanl.h: Include float.h.
30505         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
30506
30507 2007-06-05  Bruno Haible  <bruno@clisp.org>
30508
30509         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
30510         also the %a / %A. Handle the %a / %A code before this extra handling.
30511
30512 2007-06-05  Bruno Haible  <bruno@clisp.org>
30513
30514         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
30515         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
30516
30517 2007-06-05  Bruno Haible  <bruno@clisp.org>
30518
30519         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
30520         typo in variable name.
30521
30522 2007-06-05  Eric Blake  <ebb9@byu.net>
30523
30524         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
30525         Reported by Simon Josefsson.
30526
30527 2007-06-04  Bruno Haible  <bruno@clisp.org>
30528
30529         Avoid test failures on some PowerPC platforms.
30530         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
30531         Define differently for PowerPC.
30532         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
30533         Reported by Gary V. Vaughan <gary@gnu.org>.
30534
30535 2007-06-02  Bruno Haible  <bruno@clisp.org>
30536
30537         Fix test-stdint failure on FreeBSD/ia64.
30538         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
30539         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
30540         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
30541         * doc/headers/stdint.texi: Update.
30542
30543 2007-06-01  Bruno Haible  <bruno@clisp.org>
30544
30545         * tests/test-binary-io.c (main): Pass a third argument to open().
30546         Reported by Gary V. Vaughan <gary@gnu.org>.
30547
30548 2007-06-01  Bruno Haible  <bruno@clisp.org>
30549
30550         * doc/functions/frexpl.texi: Update for mingw.
30551
30552 2007-06-01  Bruno Haible  <bruno@clisp.org>
30553
30554         * tests/test-lseek.c (main): Disable test of errno for invalid third
30555         argument.
30556         * doc/functions/lseek.texi: Update.
30557         Reported by Gary V. Vaughan <gary@gnu.org>.
30558
30559 2007-05-28  Bruno Haible  <bruno@clisp.org>
30560
30561         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
30562
30563 2007-05-31  Eric Blake  <ebb9@byu.net>
30564
30565         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
30566         cross compiling.
30567
30568 2007-05-30  Eric Blake  <ebb9@byu.net>
30569         and Bruno Haible  <bruno@clisp.org>
30570
30571         Work around mingw test failures exposed by m4-1.4.9b.
30572         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
30573         * tests/test-unistd.c: Disable uid_t and git_t tests for the
30574         moment.
30575
30576 2007-05-30  Bruno Haible  <bruno@clisp.org>
30577
30578         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
30579         assuming that they are closed. Needed on HP-UX 11.
30580
30581 2007-05-29  Bruno Haible  <bruno@clisp.org>
30582
30583         Fix a problem with #include_next.
30584         * lib/dirent_.h: Split the double-inclusion guard.
30585         * lib/fcntl_.h: Likewise.
30586         * lib/float_.h: Likewise.
30587         * lib/iconv_.h: Likewise.
30588         * lib/inttypes_.h: Likewise.
30589         * lib/locale_.h: Likewise.
30590         * lib/math_.h: Likewise.
30591         * lib/netinet_in_.h: Likewise.
30592         * lib/search_.h: Likewise.
30593         * lib/signal_.h: Likewise.
30594         * lib/stdint_.h: Likewise.
30595         * lib/stdio_.h: Likewise.
30596         * lib/stdlib_.h: Likewise.
30597         * lib/string_.h: Likewise.
30598         * lib/sys_select_.h: Likewise.
30599         * lib/sys_socket_.h: Likewise.
30600         * lib/sys_stat_.h: Likewise.
30601         * lib/sys_time_.h: Likewise.
30602         * lib/sysexits_.h: Likewise.
30603         * lib/time_.h: Likewise.
30604         * lib/unistd_.h: Likewise.
30605         * lib/wchar_.h: Likewise.
30606         * lib/wctype_.h: Likewise.
30607
30608 2007-05-29  Bruno Haible  <bruno@clisp.org>
30609
30610         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
30611         for the moment.
30612
30613 2007-05-29  Bruno Haible  <bruno@clisp.org>
30614
30615         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
30616         invocation.
30617         Reported by Eric Blake.
30618
30619 2007-05-29  Bruno Haible  <bruno@clisp.org>
30620
30621         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
30622         compiling case.
30623
30624 2007-05-29  Eric Blake  <ebb9@byu.net>
30625             Bruno Haible  <bruno@clisp.org>
30626
30627         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
30628         cross compiles.
30629
30630 2007-05-28  Eric Blake  <ebb9@byu.net>
30631
30632         * modules/closein-tests (test_closein_LDADD): Support test on
30633         cygwin with libtool.
30634
30635 2007-05-28  Bruno Haible  <bruno@clisp.org>
30636
30637         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
30638         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30639         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30640         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30641         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30642         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30643         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30644         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30645         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30646
30647 2007-05-28  Eric Blake  <ebb9@byu.net>
30648
30649         Unconditionally include <config.h> in unit tests.
30650         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
30651         * tests/test-allocsa.c, tests/test-arcfour.c,
30652         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
30653         tests/test-array_list.c, tests/test-array_oset.c,
30654         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
30655         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
30656         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
30657         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
30658         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
30659         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
30660         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
30661         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
30662         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
30663         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
30664         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
30665         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
30666         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
30667         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
30668         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
30669         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
30670         test-md5.c, test-memmem.c, test-printf-posix.c,
30671         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
30672         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
30673         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
30674         test-strcasestr.c, test-striconv.c, test-striconveh.c,
30675         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
30676         test-vasnprintf-posix2.c, test-vasnprintf.c,
30677         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
30678         test-vfprintf-posix.c, test-vprintf-posix.c,
30679         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
30680         test-xvasprintf.c: Likewise.
30681
30682 2007-05-28  Bruno Haible  <bruno@clisp.org>
30683
30684         * gnulib-tool (func_import): Remember the --with-tests command-line
30685         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
30686         Reported by Eric Blake.
30687
30688 2007-05-28  Bruno Haible  <bruno@clisp.org>
30689
30690         * modules/ftell-tests: New file.
30691         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
30692         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
30693
30694         * lib/ftell.c: New file.
30695         * modules/ftell: New file.
30696         * m4/ftell.m4: New file.
30697         * doc/functions/ftell.texi: Update.
30698         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
30699         REPLACE_FTELL.
30700         * lib/stdio_.h (rpl_ftell): New declaration.
30701         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
30702         REPLACE_FTELL.
30703
30704 2007-05-28  Eric Blake  <ebb9@byu.net>
30705
30706         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
30707
30708 2007-05-28  Bruno Haible  <bruno@clisp.org>
30709
30710         * modules/fseek-tests: New file.
30711         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
30712         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
30713
30714         * lib/fseek.c: New file.
30715         * modules/fseek: New file.
30716         * m4/fseek.m4: New file.
30717         * doc/functions/fseek.texi: Update.
30718         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
30719         REPLACE_FSEEK.
30720         * lib/stdio_.h (rpl_fseek): New declaration.
30721         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
30722         REPLACE_FSEEK.
30723
30724 2007-05-28  Bruno Haible  <bruno@clisp.org>
30725
30726         * lib/stdio_.h (fflush): More comments.
30727
30728 2007-05-28  Bruno Haible  <bruno@clisp.org>
30729
30730         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
30731         runtime test.
30732
30733 2007-05-28  Eric Blake  <ebb9@byu.net>
30734
30735         Improve lseek module.
30736         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
30737         * lib/unistd_.h (lseek): Scale back link warning message.
30738         * tests/test-lseek.c: Beef up test.
30739         * tests/test-lseek.sh: Exercise more facets of lseek.
30740         Reported by Bruno Haible.
30741
30742 2007-05-28  Bruno Haible  <bruno@clisp.org>
30743
30744         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
30745         to define.
30746
30747 2007-05-27  Bruno Haible  <bruno@clisp.org>
30748
30749         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
30750
30751 2007-05-27  Bruno Haible  <bruno@clisp.org>
30752
30753         * modules/openmp: New file.
30754         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
30755         Noah Misch.
30756
30757 2007-05-26  Bruno Haible  <bruno@clisp.org>
30758
30759         * modules/chdir-long (Depends-on): Add fchdir.
30760         * modules/chdir-safer (Depends-on): Likewise.
30761         * modules/fts (Depends-on): Likewise.
30762         * modules/fts-lgpl (Depends-on): Likewise.
30763         * modules/openat (Depends-on): Likewise.
30764         * modules/savewd (Depends-on): Likewise.
30765
30766 2007-05-24  Eric Blake  <ebb9@byu.net>
30767
30768         Fix lseek on mingw.
30769         * modules/lseek: New module.
30770         * m4/lseek.m4: New file.
30771         * lib/lseek.c: New file.
30772         * modules/lseek-tests: New file.
30773         * tests/test-lseek.c: New file.
30774         * tests/test-lseek.sh: New file.
30775         * MODULES.html.sh: Document lseek module.
30776         * modules/fflush (Depends-on): Add lseek, fseeko.
30777         * modules/fseeko (Depends-on): Likewise.
30778         * modules/ftello (Depends-on): Likewise.
30779         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
30780         broken.
30781         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
30782         broken.
30783         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
30784         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
30785         * lib/ftello.c (rpl_ftello): Likewise.
30786         * tests/test-fseeko.c (main): Test this.
30787         * tests/test-fseeko.sh: Likewise.
30788         * tests/test-ftello.c (main): Likewise.
30789         * tests/test-ftello.sh: Likewise.
30790         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
30791         implies replacing fseek.
30792         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
30793         HAVE_FTELLO.
30794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
30795         * modules/unistd (Makefile.am): Likewise.
30796         * lib/unistd_.h (lseek): Declare a replacement.
30797         * doc/functions/lseek.texi (lseek): Document this fix.
30798         * doc/functions/fseek.texi (fseek): Likewise.
30799         * doc/functions/ftell.texi (ftell): Likewise.
30800
30801 2007-05-24  Bruno Haible  <bruno@clisp.org>
30802
30803         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
30804         in the printed representation of a NaN.
30805         * tests/test-vasprintf-posix.c (test_function): Likewise.
30806         * tests/test-snprintf-posix.h (test_function): Likewise.
30807         * tests/test-sprintf-posix.h (test_function): Likewise.
30808         Reported by Eric Blake.
30809
30810 2007-05-23  Eric Blake  <ebb9@byu.net>
30811
30812         Fix fseeko/ftello on cygwin 1.5.24.
30813         * doc/functions/fseeko.texi (fseeko): Document the fix.
30814         * doc/functions/ftello.texi (ftello): Document the fix.
30815         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
30816         * doc/functions/stdout.text (stdout): New file.
30817         * doc/functions/stderr.text (stderr): New file.
30818         * doc/gnulib.texi (Function Substitutes): Use new files.
30819         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
30820         prior to 1.7.0.
30821         * tests/test-ftello.c (main): Likewise for ftello.
30822         * tests/test-fseeko.sh: New file.
30823         * tests/test-ftello.sh: New file.
30824         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
30825         with seekable stdin.
30826         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
30827         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
30828         (gl_REPLACE_FSEEKO): New macro.
30829         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
30830         * modules/fseeko (Files): Distribute fseeko.c.
30831         * modules/ftello (Files): Distribute ftello.c.
30832         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
30833         mode.
30834         * lib/ftello.c (rpl_ftello): New file.
30835         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
30836         fseeko, ftello.
30837         (gl_STDIN_LARGE_OFFSET): New macro.
30838         * modules/stdio (Makefile.am): Perform the replacement.
30839         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
30840
30841 2007-05-23  Bruno Haible  <bruno@clisp.org>
30842
30843         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
30844         GNULIB_POSIXCHECK is defined.
30845
30846 2007-05-21  Bruno Haible  <bruno@clisp.org>
30847
30848         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
30849         Check also the output for NaN arguments. When cross-compiling, guess
30850         no on IRIX.
30851         * lib/vasnprintf.c: Update comments.
30852         * tests/test-vasnprintf-posix.c (strisnan): New function.
30853         (test_function): Use it.
30854         * tests/test-vasprintf-posix.c (strisnan): New function.
30855         (test_function): Use it.
30856         * tests/test-snprintf-posix.h (strisnan): New function.
30857         (test_function): Use it.
30858         * tests/test-sprintf-posix.h (strisnan): New function.
30859         (test_function): Use it.
30860         Reported by Eric Blake.
30861
30862 2007-05-20  Bruno Haible  <bruno@clisp.org>
30863
30864         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
30865         numbers that fails on BeOS.
30866         * doc/functions/frexpl.texi: Update.
30867
30868 2007-05-20  Jim Meyering  <jim@meyering.net>
30869
30870         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
30871         forced upon us by glibc-2.6.
30872
30873 2007-05-20  Bruno Haible  <bruno@clisp.org>
30874
30875         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
30876         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
30877         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
30878         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
30879         NEED_PRINTF_INFINITE.
30880         (is_infinitel): New function.
30881         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
30882         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
30883         gl_PREREQ_VASNPRINTF_INFINITE.
30884         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
30885         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30886         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
30887         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
30888         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
30889         gl_PREREQ_VASNPRINTF_INFINITE.
30890         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30891         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30892         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30893         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30894         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30895         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30896         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30897         * doc/functions/fprintf.texi: Update.
30898         * doc/functions/printf.texi: Update.
30899         * doc/functions/snprintf.texi: Update.
30900         * doc/functions/sprintf.texi: Update.
30901         * doc/functions/vfprintf.texi: Update.
30902         * doc/functions/vprintf.texi: Update.
30903         * doc/functions/vsnprintf.texi: Update.
30904         * doc/functions/vsprintf.texi: Update.
30905
30906 2007-05-20  Bruno Haible  <bruno@clisp.org>
30907
30908         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
30909         was not found in libc.
30910         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30911
30912 2007-05-20  Bruno Haible  <bruno@clisp.org>
30913
30914         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
30915         printed as "-nan" instead of "nan".
30916         * tests/test-vasprintf-posix.c (test_function): Likewise.
30917         * tests/test-snprintf-posix.h (test_function): Likewise.
30918         * tests/test-sprintf-posix.h (test_function): Likewise.
30919         Needed for HP-UX 11.
30920
30921 2007-05-20  Jim Meyering  <jim@meyering.net>
30922
30923         Fix buggy test for the fchownat-deref bug.
30924         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
30925         symlink required for the run-test.  Without it, this test would
30926         always declare that fchownat doesn't work, and client code would
30927         unnecessarily use the replacement function with fixed libc.
30928         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
30929         Reported by Greg Schafer.
30930
30931 2007-05-19  Bruno Haible  <bruno@clisp.org>
30932
30933         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
30934         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
30935         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
30936         Needed for IRIX 6.5 and Solaris 2.5.1.
30937
30938 2007-05-19  Bruno Haible  <bruno@clisp.org>
30939
30940         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
30941         (test_function): Skip tests involving -0.0 on platforms where
30942         -0.0 = 0.0.
30943         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
30944         (test_function): Skip tests involving -0.0 on platforms where
30945         -0.0 = 0.0.
30946         * tests/test-snprintf-posix.h (have_minus_zero): New function.
30947         (test_function): Skip tests involving -0.0 on platforms where
30948         -0.0 = 0.0.
30949         * tests/test-sprintf-posix.h (have_minus_zero): New function.
30950         (test_function): Skip tests involving -0.0 on platforms where
30951         -0.0 = 0.0.
30952         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
30953         tests.
30954         * tests/test-printf-posix.h (test_function): Likewise.
30955         * tests/test-printf-posix.output: Remove all -0.0 related results.
30956         Needed for IRIX 6.5.
30957
30958 2007-05-19  Bruno Haible  <bruno@clisp.org>
30959
30960         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
30961         printed as "nan0x7fffffff" instead of "nan".
30962         * tests/test-vasprintf-posix.c (test_function): Likewise.
30963         * tests/test-snprintf-posix.h (test_function): Likewise.
30964         * tests/test-sprintf-posix.h (test_function): Likewise.
30965         * tests/test-fprintf-posix.h (NaN): Remove macro.
30966         (test_function): Remove all NaN related tests.
30967         * tests/test-printf-posix.h (NaN): Remove macro.
30968         (test_function): Remove all NaN related tests.
30969         * tests/test-printf-posix.output: Remove all NaN related results.
30970         Needed for IRIX 6.5.
30971
30972 2007-05-19  Bruno Haible  <bruno@clisp.org>
30973
30974         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
30975         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
30976
30977 2007-05-19  Bruno Haible  <bruno@clisp.org>
30978
30979         * lib/float_.h: New file.
30980         * m4/float_h.m4: New file.
30981         * modules/float: New file.
30982         * modules/isnanl (Dependencies): Add float.
30983         * modules/isnanl-nolibm (Dependencies): Likewise.
30984         * modules/mathl (Dependencies): Likewise.
30985         * modules/printf-frexpl (Dependencies): Likewise.
30986         * modules/signbit (Dependencies): Likewise.
30987         * modules/vasnprintf (Dependencies): Likewise.
30988         * doc/headers/float.texi: Update.
30989
30990 2007-05-19  Jim Meyering  <jim@meyering.net>
30991
30992         * lib/utimens.c (gl_futimens): Rename from futimens,
30993         now that glibc-2.6 declares futimens.
30994         * lib/utimens.h: Likewise.
30995
30996 2007-05-19  Bruno Haible  <bruno@clisp.org>
30997
30998         Avoid test failures on mingw.
30999         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
31000         * tests/test-printf-posix.sh: Likewise.
31001         * tests/test-vfprintf-posix.sh: Likewise.
31002         * tests/test-vprintf-posix.sh: Likewise.
31003
31004 2007-05-19  Bruno Haible  <bruno@clisp.org>
31005
31006         Fix *printf result for NaN, Inf, -0.0 on mingw.
31007         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
31008         * lib/vasnprintf.c: Include math.h and isnan.h.
31009         (is_infinite_or_zero): New function.
31010         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
31011         values in the %f, %F, %e, %E, %g, %G directives.
31012         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
31013         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31014         gl_PRINTF_INFINITE and test its result. Invoke
31015         gl_PREREQ_VASNPRINTF_INFINITE.
31016         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31017         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31018         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31019         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31020         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31021         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31022         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31023         * doc/functions/fprintf.texi: Update.
31024         * doc/functions/printf.texi: Update.
31025         * doc/functions/snprintf.texi: Update.
31026         * doc/functions/sprintf.texi: Update.
31027         * doc/functions/vfprintf.texi: Update.
31028         * doc/functions/vprintf.texi: Update.
31029         * doc/functions/vsnprintf.texi: Update.
31030         * doc/functions/vsprintf.texi: Update.
31031
31032 2007-05-19  Bruno Haible  <bruno@clisp.org>
31033
31034         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
31035         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
31036         Instead of multiplying with 10^k, set extra_zeroes to k.
31037         (scale10_round_long_double): Remove function.
31038
31039 2007-05-18  Bruno Haible  <bruno@clisp.org>
31040
31041         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
31042         introduced on 2007-05-06.
31043
31044 2007-05-18  Bruno Haible  <bruno@clisp.org>
31045
31046         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
31047         %g directives.
31048         * tests/test-vasprintf-posix.c (test_function): Likewise.
31049         * tests/test-snprintf-posix.h (test_function): Likewise.
31050         * tests/test-sprintf-posix.h (test_function): Likewise.
31051
31052 2007-05-18  Bruno Haible  <bruno@clisp.org>
31053
31054         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
31055         (strmatch): New function.
31056         (test_function): Test the %f directive on numbers of various exponents.
31057         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
31058         (strmatch): New function.
31059         (test_function): Test the %f directive on numbers of various exponents.
31060         * tests/test-snprintf-posix.h (strmatch): New function.
31061         (test_function): Test the %f directive on numbers of various exponents.
31062         * tests/test-sprintf-posix.h (strmatch): New function.
31063         (test_function): Test the %f directive on numbers of various exponents.
31064         * tests/test-snprintf-posix.c (SIZEOF): New macro.
31065         * tests/test-sprintf-posix.c (SIZEOF): New macro.
31066         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
31067         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
31068
31069 2007-05-18  Bruno Haible  <bruno@clisp.org>
31070
31071         Add support for 'long double' number output.
31072         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
31073         * lib/vasnprintf.c: Include math.h and float+.h.
31074         (mp_limb_t): New type.
31075         (GMP_LIMB_BITS): New macro.
31076         (mp_twolimb_t): New type.
31077         (GMP_TWOLIMB_BITS): New macro.
31078         (mpn_t): New type.
31079         (multiply, divide, convert_to_decimal, decode_long_double,
31080         scale10_round_long_double, scale10_round_decimal_long_double,
31081         floorlog10l): New functions.
31082         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
31083         for the %f, %F, %e, %E, %g, %G directives.
31084         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
31085         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31086         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
31087         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
31088         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31089         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31090         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31091         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31092         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31093         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31094         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31095         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
31096         * modules/snprintf-posix (Depends-on): Likewise.
31097         * modules/sprintf-posix (Depends-on): Likewise.
31098         * modules/vasnprintf-posix (Depends-on): Likewise.
31099         * modules/vasprintf-posix (Depends-on): Likewise.
31100         * modules/vfprintf-posix (Depends-on): Likewise.
31101         * modules/vsnprintf-posix (Depends-on): Likewise.
31102         * modules/vsprintf-posix (Depends-on): Likewise.
31103         * modules/vasnprintf (Files): Add lib/float+.h.
31104         * doc/functions/fprintf.texi: Update.
31105         * doc/functions/printf.texi: Update.
31106         * doc/functions/snprintf.texi: Update.
31107         * doc/functions/sprintf.texi: Update.
31108         * doc/functions/vfprintf.texi: Update.
31109         * doc/functions/vprintf.texi: Update.
31110         * doc/functions/vsnprintf.texi: Update.
31111         * doc/functions/vsprintf.texi: Update.
31112
31113 2007-05-18  Bruno Haible  <bruno@clisp.org>
31114
31115         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
31116
31117 2007-05-18  Bruno Haible  <bruno@clisp.org>
31118
31119         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
31120         for printing 64-bit integers. Needed for mingw.
31121
31122 2007-05-18  Bruno Haible  <bruno@clisp.org>
31123
31124         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
31125         gl_FUNC_FREXPL_WORKS.
31126         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
31127
31128 2007-05-18  Bruno Haible  <bruno@clisp.org>
31129
31130         * modules/frexpl-nolibm-tests: New file.
31131
31132         * modules/frexpl-nolibm: New file.
31133         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
31134
31135 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
31136
31137         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
31138         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
31139         GCC 4.2, which otherwise issues a lot of warnings.
31140         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
31141         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
31142         Likewise.
31143         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
31144         * modules/iconv_open (iconv.h): Likewise.
31145         * modules/locale (locale.h): Likewise.
31146         * modules/netinet_in (netinet/in.h): Likewise.
31147         * modules/sys_select (sys_select.h): Likewise.
31148         * modules/sys_socket (sys/socket.h): Likewise.
31149         * modules/sys_stat (sys/stat.h): Likewise.
31150         * modules/sysexits (sysexits.h): Likewise.
31151         * modules/unistd (unistd.h): Likewise.
31152
31153 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31154
31155         * modules/closein-tests (Makefile.am): Distribute
31156         `test-closein.sh'.
31157
31158 2007-05-17  Bruno Haible  <bruno@clisp.org>
31159
31160         * tests/test-printf-posix.output: Renamed from
31161         tests/test-fprintf-posix.out.
31162         * modules/fprintf-posix-tests: Update.
31163         * modules/printf-posix-tests: Update.
31164         * modules/vfprintf-posix-tests: Update.
31165         * modules/vprintf-posix-tests: Update.
31166         * tests/test-fprintf-posix.sh: Update.
31167         * tests/test-printf-posix.sh: Update.
31168         * tests/test-vfprintf-posix.sh: Update.
31169         * tests/test-vprintf-posix.sh: Update.
31170         Reported by Ralf Wildenhues.
31171
31172 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31173
31174         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
31175         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
31176         GCC 4.2, which otherwise issues a lot of warnings.
31177         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
31178         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
31179         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
31180         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
31181         it should no longer be needed.
31182         * lib/string_.h: Likewise.
31183         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
31184         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
31185         * modules/inttypes (inttypes.h): Likewise.
31186         * modules/math (math.h): Likewise.
31187         * modules/search (search.h): Likewise.
31188         * modules/signal (signal.h): Likewise.
31189         * modules/stdint (stdint.h): Likewise.
31190         * modules/stdio (stdio.h): Likewise.
31191         * modules/stdlib (stdlib.h): Likewise.
31192         * modules/string (string.h): Likewise.
31193         * modules/sys_time (sys/time.h): Likewise.
31194         * modules/time (time.h): Likewise.
31195         * modules/wchar (wchar.h): Likewise.
31196         * modules/wctype (wtype.h): Likewise.
31197
31198 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31199
31200         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
31201
31202 2007-05-13  Bruno Haible  <bruno@clisp.org>
31203
31204         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
31205         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31206         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
31207         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
31208         (gl_PREREQ_STRTOK_R): Don't require it here.
31209
31210 2007-05-13  Bruno Haible  <bruno@clisp.org>
31211
31212         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
31213         when used in C++ mode.
31214
31215 2007-05-12  Bruno Haible  <bruno@clisp.org>
31216
31217         * lib/linebuffer.h: Tweak doc.
31218         * lib/linebuffer.c: Likewise.
31219
31220 2007-05-12  James Youngman  <jay@gnu.org>
31221
31222         * lib/linebuffer.c (readlinebuffer_delim): New function,
31223         like readlinebuffer, but use a caller-specified delimiter.
31224         (readlinebuffer): Just call readlinebuffer_delim with '\n'
31225         as the delimiter.
31226         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
31227
31228 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31229
31230         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
31231         * modules/openat (Files): Remove openat-die.c.
31232         (Depends-on): Add openat-die.
31233         * modules/openat-die: New module.
31234
31235 2007-05-06  Bruno Haible  <bruno@clisp.org>
31236
31237         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
31238         Update with info about Cygwin.
31239         * doc/functions/fprintf.texi: Update.
31240         * doc/functions/printf.texi: Update.
31241         * doc/functions/snprintf.texi: Update.
31242         * doc/functions/sprintf.texi: Update.
31243         * doc/functions/vfprintf.texi: Update.
31244         * doc/functions/vprintf.texi: Update.
31245         * doc/functions/vsnprintf.texi: Update.
31246         * doc/functions/vsprintf.texi: Update.
31247         Reported by Eric Blake.
31248
31249 2007-05-06  Bruno Haible  <bruno@clisp.org>
31250
31251         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
31252         padding ourselves for the floating-point directives.
31253         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
31254         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
31255         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31256         gl_PRINTF_FLAG_ZERO and test its result. Invoke
31257         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
31258         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31259         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
31260         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31261         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31262         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31263         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31264         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31265         * tests/test-snprintf-posix.h (test_function): Also check the width
31266         and some flags in the %f directive.
31267         * tests/test-sprintf-posix.h (test_function): Likewise.
31268         * tests/test-vasnprintf-posix.c (test_function): Likewise.
31269         * tests/test-vasprintf-posix.c (test_function): Likewise.
31270         * doc/functions/fprintf.texi: Update.
31271         * doc/functions/printf.texi: Update.
31272         * doc/functions/snprintf.texi: Update.
31273         * doc/functions/sprintf.texi: Update.
31274         * doc/functions/vfprintf.texi: Update.
31275         * doc/functions/vprintf.texi: Update.
31276         * doc/functions/vsnprintf.texi: Update.
31277         * doc/functions/vsprintf.texi: Update.
31278
31279 2007-05-06  Bruno Haible  <bruno@clisp.org>
31280
31281         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
31282         pass the ' flag character to sprintf or snprintf.
31283         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
31284         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
31285         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31286         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
31287         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
31288         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31289         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
31290         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31291         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31292         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31293         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31294         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31295         * tests/test-snprintf-posix.h (test_function): Also check the grouping
31296         flag.
31297         * tests/test-sprintf-posix.h (test_function): Likewise.
31298         * tests/test-vasnprintf-posix.c (test_function): Likewise.
31299         * tests/test-vasprintf-posix.c (test_function): Likewise.
31300         * doc/functions/fprintf.texi: Update.
31301         * doc/functions/printf.texi: Update.
31302         * doc/functions/snprintf.texi: Update.
31303         * doc/functions/sprintf.texi: Update.
31304         * doc/functions/vfprintf.texi: Update.
31305         * doc/functions/vprintf.texi: Update.
31306         * doc/functions/vsnprintf.texi: Update.
31307         * doc/functions/vsprintf.texi: Update.
31308
31309 2007-05-01  Bruno Haible  <bruno@clisp.org>
31310
31311         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
31312
31313 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
31314
31315         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
31316         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
31317
31318 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
31319
31320         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
31321         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
31322         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
31323
31324 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
31325
31326         * lib/argp-help.c (struct hol_entry): New member `ord'.
31327         (HOL_ENTRY_PTRCMP): Use ord for comparison
31328         (hol_sort): Initialize ord.
31329
31330 2007-05-01  Bruno Haible  <bruno@clisp.org>
31331
31332         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
31333         Reported by Eric Blake.
31334         * doc/gnulib.texi (Function Substitutes): Update.
31335
31336 2007-05-01  Bruno Haible  <bruno@clisp.org>
31337
31338         * doc/functions.texi: Remove file, now redundant through
31339         doc/functions/*.texi.
31340
31341 2007-05-01  Bruno Haible  <bruno@clisp.org>
31342
31343         * modules/argp (Depends-on): Add sleep.
31344
31345 2007-05-01  Bruno Haible  <bruno@clisp.org>
31346
31347         * modules/sleep-tests: New file.
31348         * tests/test-sleep.c: New file.
31349
31350         * modules/sleep: New file.
31351         * lib/sleep.c: New file.
31352         * m4/sleep.m4: New file.
31353         * lib/unistd_.h (sleep): New declaration.
31354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
31355         HAVE_SLEEP.
31356         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
31357         * doc/functions/sleep.texi: Document the sleep module.
31358
31359 2007-05-01  Bruno Haible  <bruno@clisp.org>
31360
31361         * lib/sigprocmask.h: Remove file.
31362         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
31363         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
31364         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
31365         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
31366         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
31367         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
31368         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
31369         HAVE_SIGSET_T as a shell variable.
31370         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
31371         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
31372         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
31373         (Depends-on): Add signal. Remove verify.
31374         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
31375         (Include): Mention <signal.h> instead of sigprocmask.h.
31376         * NEWS: Mention the change.
31377         * lib/fatal-signal.c: Don't include sigprocmask.h.
31378
31379 2007-05-01  Bruno Haible  <bruno@clisp.org>
31380
31381         * modules/signal: New file.
31382         * lib/signal_.h: New file.
31383         * m4/signal_h.m4: New file.
31384
31385 2007-05-01  Bruno Haible  <bruno@clisp.org>
31386
31387         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
31388         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
31389         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
31390         HAVE_WCTYPE_CTMP_BUG into wctype.h.
31391
31392 2007-05-01  Bruno Haible  <bruno@clisp.org>
31393
31394         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
31395         configure time.
31396         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
31397         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
31398         * modules/sys_stat (Makefile.am): Substitute their values into
31399         sys/stat.h.
31400
31401 2007-05-01  Bruno Haible  <bruno@clisp.org>
31402
31403         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
31404         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
31405         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
31406
31407 2007-05-01  Bruno Haible  <bruno@clisp.org>
31408
31409         * doc/header/assert.texi: Undo last change: don't mention the gnulib
31410         'assert' module here.
31411
31412 2007-05-01  Bruno Haible  <bruno@clisp.org>
31413
31414         * doc/functions/*.texi: New files.
31415         * doc/functions/google-ranking.txt: New file.
31416         * doc/gnulib.texi (Function Substitutes): New chapter.
31417         (ctime, inet_ntoa): Remove sections.
31418         * doc/ctime.texi: Remove file.
31419         * doc/inet_ntoa.texi: Remove file.
31420         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
31421         dependencies.
31422         (%.info): New rule, specifying a --reference-limit.
31423
31424 2007-05-01  Bruno Haible  <bruno@clisp.org>
31425
31426         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
31427
31428 2007-05-01  Bruno Haible  <bruno@clisp.org>
31429
31430         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
31431         the portability of 'mkdir' to mingw systems.
31432
31433 2007-05-01  Bruno Haible  <bruno@clisp.org>
31434
31435         * doc/headers/google-ranking.txt: New file.
31436
31437 2007-04-30  Eric Blake  <ebb9@byu.net>
31438
31439         Prefer fseeko to fseek.
31440         * modules/getpass (Depends-on): Add fseeko.
31441         * lib/getpass.c (getpass): Use fseeko, not fseek.
31442
31443 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
31444
31445         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
31446         assumes the sorting is stable, while most qsort implementations
31447         are not.  Use argument addresses to ensure they never compare as
31448         equal.
31449
31450         * tests/test-argp-2.sh (usage-indent test): Fix output
31451         (func_compare): Restore diff options
31452         * tests/test-argp.c: Restore #include "progname.h"
31453
31454 2007-04-29  Bruno Haible  <bruno@clisp.org>
31455
31456         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
31457         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31458         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
31459         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31460         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
31461         (configure.ac): Define CHECK_SNPRINTF_POSIX.
31462         (TESTS, check_PROGRAMS): Add test-snprintf.
31463         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
31464         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
31465         (TESTS, check_PROGRAMS): Add test-vsnprintf.
31466         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
31467         assertions that fail on HP-UX, OSF/1, or IRIX.
31468         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
31469
31470 2007-04-29  Bruno Haible  <bruno@clisp.org>
31471
31472         * MODULES.html.sh (posix_functions): Remove 'contents'.
31473
31474 2007-04-29  Karl Berry  <karl@gnu.org>
31475
31476         * config/srclist.txt (gendocs_template_min): new entry.
31477
31478 2007-04-29  Bruno Haible  <bruno@clisp.org>
31479
31480         Work around fpurge bug on BSD systems.
31481         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
31482         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
31483         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
31484         fpurge to rpl_fpurge if the system already has this function.
31485         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
31486         the case where the system already has this function. Correct invariants
31487         on BSD systems.
31488         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
31489         BSD systems.
31490
31491 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
31492
31493         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
31494         proposed by Sven Verdoolaege.
31495
31496         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
31497         options.
31498         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
31499         (usage and help tests): Update
31500
31501 2007-04-29  Bruno Haible  <bruno@clisp.org>
31502
31503         * tests/test-fflush.c (main): Use a file of size 17, not 10.
31504         Print more information in case of failure. Disable a test on BeOS.
31505
31506 2007-04-29  Bruno Haible  <bruno@clisp.org>
31507
31508         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
31509         This helps debugging on systems on which no gdb is available.
31510
31511 2007-04-29  Bruno Haible  <bruno@clisp.org>
31512
31513         * lib/freading.h: Improve comments.
31514         * lib/fwriting.h: Likewise.
31515         * tests/test-freading.c (main): Don't check freading immediately after
31516         repositioning. Needed for glibc.
31517
31518 2007-04-29  Bruno Haible  <bruno@clisp.org>
31519
31520         * lib/freading.c (freading): Trivial simplification.
31521
31522 2007-04-28  Bruno Haible  <bruno@clisp.org>
31523
31524         * tests/test-fwriting.c (main): Also test the interaction between
31525         fflush and fwriting.
31526         * modules/fwriting-tests (Depends-on): Add fflush.
31527
31528         * tests/test-freading.c (main): Also test the interaction between
31529         fflush and freading.
31530         * modules/freading-tests (Depends-on): Add fflush.
31531
31532 2007-04-28  Bruno Haible  <bruno@clisp.org>
31533
31534         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
31535         fseeko and ftello.
31536         Suggested by Eric Blake.
31537
31538 2007-04-28  Jim Meyering  <jim@meyering.net>
31539
31540         Avoid false-negative in gl_STDINT_H's C99 conformance test.
31541         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
31542         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
31543
31544 2007-04-27  Eric Blake  <ebb9@byu.net>
31545
31546         * doc/headers/assert.texi (assert.h): Document assert module use.
31547
31548 2007-04-27  Bruno Haible  <bruno@clisp.org>
31549
31550         * doc/headers/*.texi: New files.
31551         * doc/gnulib.texi (Header File Substitutes): New chapter.
31552         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
31553         dependencies.
31554         (standards.info ,standards.html, standards.dvi): Update dependencies.
31555         (mostlyclean, clean): New targets.
31556
31557 2007-04-27  Bruno Haible  <bruno@clisp.org>
31558
31559         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
31560         * modules/sysexits (Files, Makefile.am): Update.
31561
31562         * lib/sys_socket_.h: Renamed from lib/socket_.h.
31563         * modules/sys_socket (Files, Makefile.am): Update.
31564
31565         * lib/sys_stat_.h: Renamed from lib/stat_.h.
31566         * modules/sys_stat (Files, Makefile.am): Update.
31567
31568 2007-04-27  Eric Blake  <ebb9@byu.net>
31569
31570         * lib/freading.h: Improve comments.
31571         * lib/fwriting.h: Likewise.
31572         * lib/fflush.c: Likewise.
31573
31574         Fix closein for mingw.
31575         * modules/closein-tests: Add tests for closein.
31576         * tests/test-closein.c: New file.
31577         * tests/test-closein.sh: Likewise.
31578         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
31579         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
31580
31581 2007-04-27  Bruno Haible  <bruno@clisp.org>
31582
31583         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
31584         version is < 6.
31585         * lib/math_.h [__DECC]: Likewise.
31586         * lib/stdio_.h [__DECC]: Likewise.
31587         * lib/stdlib_.h [__DECC]: Likewise.
31588         * lib/string_.h [__DECC]: Likewise.
31589         * lib/time_.h [__DECC]: Likewise.
31590         * lib/wchar_.h [__DECC]: Likewise.
31591         * lib/wctype_.h [__DECC]: Likewise.
31592
31593 2007-04-27  Bruno Haible  <bruno@clisp.org>
31594
31595         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
31596
31597 2007-04-27  Bruno Haible  <bruno@clisp.org>
31598
31599         * lib/fflush.c: Add comments.
31600         * modules/fpurge-tests (Depends-on): Add fflush.
31601         * modules/freadable-tests (Depends-on): Likewise.
31602         * modules/fwritable-tests (Depends-on): Likewise.
31603
31604 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
31605
31606         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
31607         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
31608         Report by Bruno Haible <bruno@clisp.org>.
31609
31610 2007-04-26  Eric Blake  <ebb9@byu.net>
31611
31612         Fix fflush on mingw.
31613         * modules/fflush (Depends-on): Add freading.
31614         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
31615         but unread data.
31616
31617 2007-04-26  Eric Blake  <ebb9@byu.net>
31618         and Bruno Haible  <bruno@clisp.org>
31619
31620         Implement freading and fwriting.
31621         * lib/freading.c: New file.
31622         * lib/freading.h: Likewise.
31623         * m4/freading.m4: Likewise.
31624         * modules/freading: Likewise.
31625         * modules/freading-tests: Likewise.
31626         * tests/test-freading.c: Likewise.
31627         * lib/fwriting.c: New file.
31628         * lib/fwriting.h: Likewise.
31629         * m4/fwriting.m4: Likewise.
31630         * modules/fwriting: Likewise.
31631         * modules/fwriting-tests: Likewise.
31632         * tests/test-fwriting.c: Likewise.
31633         * MODULES.html.sh (File stream based Input/Output): Mention them.
31634
31635 2007-04-26  Bruno Haible  <bruno@clisp.org>
31636
31637         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
31638         'long' when we assume it.
31639         Suggested by Eric Blake.
31640
31641 2007-04-26  Bruno Haible  <bruno@clisp.org>
31642
31643         Ensure fseeko, ftello are declared on glibc systems.
31644         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
31645         * modules/fseeko (configure.ac-early): Likewise.
31646         * modules/ftello (configure.ac-early): Likewise.
31647         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
31648         AC_FUNC_FSEEKO for this.
31649         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
31650         (gl_CHECK_FSEEKO): Remove macro.
31651
31652 2007-04-26  Bruno Haible  <bruno@clisp.org>
31653
31654         * tests/test-fflush.c (main): Also check the ftell result after
31655         fflush and fseek/fseeko.
31656         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
31657         file descriptor position cache in the stream.
31658         * lib/fseeko.c (rpl_fseeko): Likewise.
31659
31660 2007-04-26  Bruno Haible  <bruno@clisp.org>
31661
31662         * modules/fflush-tests (Depends-on): Add fseeko.
31663
31664 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
31665             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31666
31667         * lib/argz_.h: ensure error_t definition is obtained in same
31668         mechanism system argz.h would have.
31669         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
31670         argz facilities are known bad.  Err on the side of caution if
31671         cross-compiling.
31672
31673 2007-04-25  Eric Blake  <ebb9@byu.net>
31674
31675         * lib/fpurge.c (includes): Use stdlib.h for free.
31676         * tests/test-fflush.c (main): Also test fflush-fseeko.
31677
31678 2007-04-25  Bruno Haible  <bruno@clisp.org>
31679
31680         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
31681         * lib/fseeko.c: New file.
31682         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
31683         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
31684         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
31685         gl_FUNC_FSEEKO.
31686         (gl_FUNC_FSEEKO): Invoke it.
31687         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
31688         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
31689         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
31690
31691 2007-04-25  Bruno Haible  <bruno@clisp.org>
31692
31693         * modules/fflush (Depends-on): Add ftello.
31694
31695 2007-04-25  Bruno Haible  <bruno@clisp.org>
31696
31697         * modules/ftello-tests: New file.
31698         * tests/test-ftello.c: New file.
31699
31700         * modules/ftello: New file.
31701         * m4/ftello.m4: New file.
31702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
31703         HAVE_FTELLO.
31704         * lib/stdio_.h (ftello): New declaration.
31705         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
31706         HAVE_FTELLO.
31707
31708 2007-04-25  Bruno Haible  <bruno@clisp.org>
31709
31710         * modules/fseeko-tests: New file.
31711         * tests/test-fseeko.c: New file.
31712
31713         * modules/fseeko: New file.
31714         * m4/fseeko.m4: New file.
31715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
31716         HAVE_FSEEKO.
31717         * lib/stdio_.h (fseeko): New declaration.
31718         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
31719         HAVE_FSEEKO.
31720
31721 2007-04-25  Bruno Haible  <bruno@clisp.org>
31722
31723         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
31724
31725 2007-04-25  Bruno Haible  <bruno@clisp.org>
31726
31727         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
31728         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
31729         * tests/test-unistd.c: Likewise.
31730         * tests/test-fcntl.c: Likewise.
31731
31732 2007-04-23  Eric Blake  <ebb9@byu.net>
31733
31734         * lib/fflush.c: Fix missing include.
31735         Reported by Bruno Haible.
31736
31737 2007-04-23  Bruno Haible  <bruno@clisp.org>
31738
31739         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
31740         Reported by Eric Blake.
31741
31742 2007-04-23  Bruno Haible  <bruno@clisp.org>
31743
31744         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
31745
31746 2007-04-23  Bruno Haible  <bruno@clisp.org>
31747
31748         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
31749
31750 2007-04-23  Bruno Haible  <bruno@clisp.org>
31751
31752         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
31753         Needed on HP-UX 11.
31754
31755 2007-04-16  Eric Blake  <ebb9@byu.net>
31756
31757         Make fflush rely on fpurge.
31758         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
31759         open coding all variants.
31760         * modules/fflush (Depends-on): Add fpurge and unistd.
31761         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
31762         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
31763
31764         Fix --with-tests compilation on cygwin.
31765         * modules/argmatch-tests (Makefile.am): List gnulib library first
31766         in LDADD.
31767         * modules/argp-tests (Makefile.am): Likewise.
31768         * modules/array-list-tests (Makefile.am): Likewise.
31769         * modules/array-oset-tests (Makefile.am): Likewise.
31770         * modules/avltree-list-tests (Makefile.am): Likewise.
31771         * modules/avltree-oset-tests (Makefile.am): Likewise.
31772         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31773         * modules/carray-list-tests (Makefile.am): Likewise.
31774         * modules/dirname-tests (Makefile.am): Likewise.
31775         * modules/frexp-tests (Makefile.am): Likewise.
31776         * modules/isnanl-tests (Makefile.am): Likewise.
31777         * modules/linked-list-tests (Makefile.am): Likewise.
31778         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31779         * modules/lock-tests (Makefile.am): Likewise.
31780         * modules/rbtree-list-tests (Makefile.am): Likewise.
31781         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31782         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31783         * modules/tls-tests (Makefile.am): Likewise.
31784         * modules/tsearch-tests (Makefile.am): Likewise.
31785         * modules/xvasprintf-tests (Makefile.am): Likewise.
31786
31787         Fix fpurge for cygwin.
31788         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
31789         value.
31790         * modules/fpurge-tests (Depends-on): Clean up trash.
31791
31792 2007-04-16  Simon Josefsson  <simon@josefsson.org>
31793
31794         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
31795
31796         * m4/autobuild.m4: Re-indent.
31797
31798 2007-04-13  Bruno Haible  <bruno@clisp.org>
31799
31800         * modules/fpurge-tests: New file.
31801         * tests/test-fpurge.c: New file.
31802
31803         * modules/fpurge: New file.
31804         * lib/fpurge.h: New file.
31805         * lib/fpurge.c: New file.
31806         * m4/fpurge.m4: New file.
31807
31808 2007-04-13  Bruno Haible  <bruno@clisp.org>
31809
31810         * modules/fbufmode-tests: New file.
31811         * tests/test-fbufmode.c: New file.
31812
31813         * modules/fbufmode: New file.
31814         * lib/fbufmode.h: New file.
31815         * lib/fbufmode.c: New file.
31816         * m4/fbufmode.m4: New file.
31817
31818 2007-04-13  Bruno Haible  <bruno@clisp.org>
31819
31820         * modules/fwritable-tests: New file.
31821         * tests/test-fwritable.c: New file.
31822
31823         * modules/fwritable: New file.
31824         * lib/fwritable.h: New file.
31825         * lib/fwritable.c: New file.
31826         * m4/fwritable.m4: New file.
31827
31828 2007-04-13  Bruno Haible  <bruno@clisp.org>
31829
31830         * modules/freadable-tests: New file.
31831         * tests/test-freadable.c: New file.
31832
31833         * modules/freadable: New file.
31834         * lib/freadable.h: New file.
31835         * lib/freadable.c: New file.
31836         * m4/freadable.m4: New file.
31837
31838 2007-04-13  Bruno Haible  <bruno@clisp.org>
31839
31840         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
31841         MOSTLYCLEANFILES.
31842
31843 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
31844
31845         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
31846         gzip bootstrap.conf to avoid dragging in i18n machinery.
31847         (gnulib_tool_option): Use it.
31848
31849 2007-04-13  Bruno Haible  <bruno@clisp.org>
31850
31851         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
31852         %F directives.
31853         * tests/test-vasprintf-posix.c (test_function): Likewise.
31854         * tests/test-snprintf-posix.h (test_function): Likewise.
31855         * tests/test-sprintf-posix.h (test_function): Likewise.
31856         * tests/test-fprintf-posix.h (test_function): Likewise.
31857         * tests/test-printf-posix.h (test_function): Likewise.
31858         * tests/test-fprintf-posix.out: Likewise.
31859
31860 2007-04-13  Bruno Haible  <bruno@clisp.org>
31861
31862         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
31863         * modules/tls-tests (configure.ac): Likewise.
31864         Reported by Arto C. Nirkko <anirkko@insel.ch>.
31865
31866 2007-04-13  Bruno Haible  <bruno@clisp.org>
31867
31868         * lib/tls.c (glthread_tls_get): Fix return type.
31869         Patch by Arto C. Nirkko <anirkko@insel.ch>.
31870
31871 2007-04-12  Eric Blake  <ebb9@byu.net>
31872
31873         * modules/gettime (Depends-on): Remove gettime.
31874         Reported by Dmitry V. Levin.
31875
31876 2007-04-12  Bruno Haible  <bruno@clisp.org>
31877
31878         * modules/fflush (Include): Mention <stdio.h>.
31879         * modules/strtoimax (Include): Mention <inttypes.h>.
31880         * modules/strtoumax (Include): Likewise.
31881
31882 2007-04-12  Eric Blake  <ebb9@byu.net>
31883
31884         * .cvsignore: New file.
31885         * .gitignore: Likewise.
31886
31887 2007-04-12  Bruno Haible  <bruno@clisp.org>
31888
31889         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
31890         not before, since $(LDADD) often contains libgnu.a.
31891         * modules/striconv-tests (test_striconv_LDADD): Likewise.
31892         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
31893         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
31894         Needed on Cygwin.
31895
31896 2007-04-12  Eric Blake  <ebb9@byu.net>
31897
31898         Work around glibc's failure to flush stdin on fclose.
31899         * lib/closein.c (close_stdin): Flush stdin before closing.
31900
31901         Work around glibc's failure to reset seekable stdin on exit.
31902         * modules/closein: New module.
31903         * lib/closein.c: New file.
31904         * lib/closein.h: Likewise.
31905         * m4/closein.m4: Likewise.
31906         * MODULES.html.sh (File stream based Input/Output): Document it.
31907
31908 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31909
31910         * gnulib-tool: Rename generated 'autobuild' script to
31911         'do-autobuild' in --create-megatestdir output.
31912
31913         * doc/gnulib.texi (Build robot for gnulib): Fix.
31914
31915 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31916
31917         * modules/sysexits (Depends-on): Add absolute-header.
31918
31919 2007-04-12  Eric Blake  <ebb9@byu.net>
31920
31921         No need to preserve errno on success.
31922         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
31923         Reported by Bruno Haible.
31924
31925 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31926
31927         * MODULES.html.sh (Support for maintaining and releasing
31928         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
31929
31930 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31931
31932         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
31933
31934 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31935
31936         * modules/autobuild: New module.
31937
31938         * m4/autobuild.m4: New file.
31939
31940 2007-04-11  Bruno Haible  <bruno@clisp.org>
31941
31942         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
31943         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
31944         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
31945         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
31946         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31947         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31948         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31949         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31950         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31951         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31952         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
31953         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31954         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31955         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
31956         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31957         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31958         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
31959         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31960         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31961         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
31962         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31963         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31964         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
31965         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31966         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31967         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
31968         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31969         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31970         Reported by Eric Blake.
31971
31972 2007-04-11  Bruno Haible  <bruno@clisp.org>
31973
31974         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
31975
31976 2007-04-10  Bruno Haible  <bruno@clisp.org>
31977
31978         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
31979         for NaN and Infinity. Needed on FreeBSD 6.1.
31980         * tests/test-vasnprintf-posix.c (test_function): Undo last change
31981         regarding results for "%010a" of Infinity and NaN.
31982         * tests/test-vasprintf-posix.c (test_function): Likewise.
31983         * tests/test-snprintf-posix.h (test_function): Likewise.
31984         * tests/test-sprintf-posix.h (test_function): Likewise.
31985         * tests/test-fprintf-posix.h (test_function): Likewise.
31986         * tests/test-printf-posix.h (test_function): Likewise.
31987         * tests/test-fprintf-posix.out: Likewise.
31988
31989 2007-04-10  Bruno Haible  <bruno@clisp.org>
31990
31991         * modules/locale-tests: New file.
31992         * tests/test-locale.c: New file.
31993
31994         * modules/locale: New file.
31995         * lib/locale_.h: New file.
31996         * m4/locale_h.m4: New file.
31997
31998 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
31999             Bruno Haible  <bruno@clisp.org>
32000
32001         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
32002         be determined, test for availability of the copysignf, copysign,
32003         copysignl functions.
32004         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
32005         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
32006         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
32007
32008 2007-04-09  Eric Blake  <ebb9@byu.net>
32009
32010         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
32011         * modules/stdio (Makefile.am): Support fflush.
32012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32013         * modules/fflush: New file.
32014         * lib/fflush.c: Likewise.
32015         * m4/fflush.m4: Likewise.
32016         * modules/fflush-tests: New test.
32017         * tests/test-fflush.c: Likewise.
32018         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
32019
32020 2007-04-06  Bruno Haible  <bruno@clisp.org>
32021
32022         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
32023         (VASNPRINTF): Use signbit for faster determination whether to print a
32024         minus sign.
32025         * modules/vasnprintf (Files): Remove lib/float+.h.
32026         * modules/fprintf-posix (Depends-on): Add signbit.
32027         * modules/snprintf-posix (Depends-on): Likewise.
32028         * modules/sprintf-posix (Depends-on): Likewise.
32029         * modules/vasnprintf-posix (Depends-on): Likewise.
32030         * modules/vasprintf-posix (Depends-on): Likewise.
32031         * modules/vfprintf-posix (Depends-on): Likewise.
32032         * modules/vsnprintf-posix (Depends-on): Likewise.
32033         * modules/vsprintf-posix (Depends-on): Likewise.
32034
32035 2007-04-06  Bruno Haible  <bruno@clisp.org>
32036
32037         * tests/test-frexp.c (main): Test also the sign bit of zero results.
32038         * tests/test-frexpl.c (main): Likewise.
32039         * tests/test-ldexpl.c (main): Likewise.
32040         * modules/frexp-tests (Depends-on): Add signbit.
32041         * modules/frexpl-tests (Depdends-on): Likewise.
32042         * modules/ldexpl-tests (Depdends-on): Likewise.
32043
32044 2007-04-06  Bruno Haible  <bruno@clisp.org>
32045
32046         * modules/signbit-tests: New file.
32047         * tests/test-signbit.c: New file.
32048
32049         * modules/signbit: New file.
32050         * lib/signbitf.c: New file.
32051         * lib/signbitd.c: New file.
32052         * lib/signbitl.c: New file.
32053         * m4/signbit.m4: New file.
32054         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
32055         (signbit): New macro.
32056         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
32057         REPLACE_SIGNBIT.
32058         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
32059         REPLACE_FREXPL into math.h.
32060
32061 2007-04-06  Bruno Haible  <bruno@clisp.org>
32062
32063         * modules/isnanf-nolibm-tests: New file.
32064         * tests/test-isnanf.c: New file.
32065
32066         * modules/isnanf-nolibm: New file.
32067         * lib/isnanf.h: New file.
32068         * lib/isnanf.c: New file.
32069         * lib/isnan.c: Consider the USE_FLOAT macro.
32070         * m4/isnanf.m4: New file.
32071
32072 2007-04-06  Bruno Haible  <bruno@clisp.org>
32073
32074         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
32075         (Link): New section.
32076
32077         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
32078
32079 2007-04-06  Bruno Haible  <bruno@clisp.org>
32080
32081         Assume the 'long double' type.
32082         * m4/longdouble.m4: Remove file.
32083         * config/srclist.txt: Don't mention longdouble.m4.
32084         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
32085         * lib/float+.h: Likewise.
32086         * lib/frexp.c: Likewise.
32087         * lib/printf-args.h: Likewise.
32088         * lib/printf-args.c: Likewise.
32089         * lib/printf-frexp.c: Likewise.
32090         * lib/printf-parse.c: Likewise.
32091         * lib/vasnprintf.c: Likewise.
32092         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
32093         * m4/intl.m4: Likewise.
32094         * m4/isnanl.m4: Likewise.
32095         * m4/printf.m4: Likewise.
32096         * m4/printf-frexpl.m4: Likewise.
32097         * m4/vasnprintf.m4: Likewise.
32098         * modules/allocsa (Files): Remove m4/longdouble.m4.
32099         * modules/gettext (Files): Likewise.
32100         * modules/relocatable-prog-wrapper (Files): Likewise.
32101         * modules/vasnprintf (Files): Likewise.
32102         * modules/isnanl (Files): Likewise.
32103         (Include): Simplify.
32104         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
32105         (Include): Simplify.
32106         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
32107         (Include): Simplify.
32108         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
32109         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32110         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
32111         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32112         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
32113         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32114         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
32115         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32116         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
32117         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32118         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
32119         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32120         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
32121         * tests/test-isnanl.c: Likewise.
32122         * tests/test-snprintf-posix.h: Likewise.
32123         * tests/test-sprintf-posix.h: Likewise.
32124         * tests/test-vasnprintf-posix.c: Likewise.
32125         * tests/test-vasnprintf-posix2.c: Likewise.
32126         * tests/test-vasprintf-posix.c: Likewise.
32127
32128 2007-04-06  Bruno Haible  <bruno@clisp.org>
32129
32130         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
32131         * lib/math_.h [__DECC]: Include the overridden include file through
32132         #include_next, outside the double-inclusion guard.
32133         * lib/stdio_.h [__DECC]: Likewise.
32134         * lib/stdlib_.h [__DECC]: Likewise.
32135         * lib/string_.h [__DECC]: Likewise.
32136         * lib/time_.h [__DECC]: Likewise.
32137         * lib/wchar_.h [__DECC]: Likewise.
32138         * lib/wctype_.h [__DECC]: Likewise.
32139         * lib/inttypes_.h [__DECC]: Likewise.
32140         Reported by Albert Chin <china@thewrittenword.com> in
32141         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
32142
32143 2007-04-04  Eric Blake  <ebb9@byu.net>
32144
32145         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
32146         1.5.x.
32147
32148 2007-04-04  Bruno Haible  <bruno@clisp.org>
32149
32150         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
32151         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
32152
32153 2007-04-04  Bruno Haible  <bruno@clisp.org>
32154
32155         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
32156         results for "%010a" of Infinity and NaN.
32157         * tests/test-vasprintf-posix.c (test_function): Likewise.
32158         * tests/test-snprintf-posix.h (test_function): Likewise.
32159         * tests/test-sprintf-posix.h (test_function): Likewise.
32160         * tests/test-fprintf-posix.h (test_function): Remove these tests.
32161         * tests/test-printf-posix.h (test_function): Likewise.
32162         * tests/test-fprintf-posix.out: Update.
32163         Needed for FreeBSD 6.1.
32164
32165 2007-04-04  Bruno Haible  <bruno@clisp.org>
32166
32167         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
32168         directly used by the gnulib modules nor by gnulib-tool.
32169
32170 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
32171
32172         * DEPENDENCIES: Give overall description of version dependency
32173         desirability.  Use more-typical names for apps.
32174         Add shell, coreutils, diffutils, grep, tar, gzip.
32175
32176 2007-04-04  Simon Josefsson  <simon@josefsson.org>
32177
32178         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
32179
32180 2007-04-04  Karl Berry  <karl@gnu.org>
32181
32182         * MODULES.html.sh (func_module): missing '.
32183
32184 2007-04-03  Bruno Haible  <bruno@clisp.org>
32185
32186         * modules/argmatch-tests (Makefile.am): New variable
32187         test_argmatch_LDADD.
32188         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
32189         * modules/array-list-tests (Makefile.am): New variable
32190         test_array_list_LDADD.
32191         * modules/array-oset-tests (Makefile.am): New variable
32192         test_array_oset_LDADD.
32193         * modules/avltree-list-tests (Makefile.am): New variable
32194         test_avltree_list_LDADD.
32195         * modules/avltree-oset-tests (Makefile.am): New variable
32196         test_avltree_oset_LDADD.
32197         * modules/avltreehash-list-tests (Makefile.am): New variable
32198         test_avltreehash_list_LDADD.
32199         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
32200         test_canonicalize_lgpl_LDADD.
32201         * modules/carray-list-tests (Makefile.am): New variable
32202         test_carray_list_LDADD.
32203         * modules/dirname-tests (Makefile.am): New variable
32204         test_dirname_LDADD.
32205         * modules/linked-list-tests (Makefile.am): New variable
32206         test_linked_list_LDADD.
32207         * modules/linkedhash-list-tests (Makefile.am): New variable
32208         test_linkedhash_list_LDADD.
32209         * modules/rbtree-list-tests (Makefile.am): New variable
32210         test_rbtree_list_LDADD.
32211         * modules/rbtree-oset-tests (Makefile.am): New variable
32212         test_rbtree_oset_LDADD.
32213         * modules/rbtreehash-list-tests (Makefile.am): New variable
32214         test_rbtreehash_list_LDADD.
32215         * modules/xvasprintf-tests (Makefile.am): New variable
32216         test_xvasprintf_LDADD.
32217         Reported by Eric Blake.
32218
32219 2007-04-03  Eric Blake  <ebb9@byu.net>
32220
32221         * DEPENDENCIES: Weaken m4 requirements.
32222
32223 2007-04-03  Bruno Haible  <bruno@clisp.org>
32224
32225         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
32226         * modules/isnanl-tests (configure.ac): Likewise.
32227
32228 2007-04-03  Ben Pfaff  <blp@gnu.org>
32229
32230         * modules/iconv_open: Add $(srcdir)/ to source directory
32231         references in Makefile fragments that call gperf, to fix VPATH
32232         builds.
32233
32234 2007-04-03  Bruno Haible  <bruno@clisp.org>
32235
32236         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
32237         * lib/ldexpl.c: Undo last change.
32238
32239 2007-04-03  Bruno Haible  <bruno@clisp.org>
32240
32241         * modules/printf-frexpl (Depends-on): Undo last change.
32242         (Files): Add m4/ldexpl.m4.
32243
32244 2007-04-03  Bruno Haible  <bruno@clisp.org>
32245
32246         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
32247         * modules/isnanl (Link): New section.
32248
32249         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
32250         * modules/frexp (Link): New section.
32251
32252         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
32253         * modules/frexpl (Link): New section.
32254
32255         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
32256         * modules/ldexpl (Link): New section.
32257
32258 2007-04-03  Bruno Haible  <bruno@clisp.org>
32259
32260         * modules/TEMPLATE-EXTENDED: New file.
32261         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
32262
32263 2007-04-03  Bruno Haible  <bruno@clisp.org>
32264
32265         * DEPENDENCIES: New file.
32266         Suggested by Simon Josefsson.
32267
32268 2007-04-03  Bruno Haible  <bruno@clisp.org>
32269
32270         * doc/gnulib.texi: Escape @.
32271
32272 2007-04-03  James Youngman  <jay@gnu.org>
32273         and Paul Eggert  <eggert@cs.ucla.edu>
32274
32275         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
32276         birthtime on all systems that have birthtime, not just those which
32277         use st_birthtimensec rather than st_birthtim.  Putting zero in
32278         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
32279         that the birth time is not available for files on an NFS mount.
32280
32281 2007-04-03  Simon Josefsson  <simon@josefsson.org>
32282
32283         * modules/memxor: Move back from crypto/, suggested by Bruno.
32284         * modules/crypto/hmac-sha1: Fix memxor dependency.
32285
32286         * modules/crypto/gc: Moved from ../.
32287
32288 2007-04-02  Eric Blake  <ebb9@byu.net>
32289
32290         * lib/ldexpl.c (includes): Avoid libm.
32291
32292         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
32293
32294 2007-04-02  Bruno Haible  <bruno@clisp.org>
32295
32296         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
32297         on IRIX.
32298
32299 2007-04-02  Bruno Haible  <bruno@clisp.org>
32300
32301         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
32302         x86 or x86_64 platforms running MacOS X.
32303         Reported by Ryan Schmidt <@ryandesign.com>.
32304
32305 2007-04-02  Bruno Haible  <bruno@clisp.org>
32306
32307         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
32308         i386.
32309
32310 2007-04-01  Simon Josefsson  <simon@josefsson.org>
32311
32312         * modules/crypto/arcfour: Moved from ../.
32313         * modules/crypto/arcfour-tests: Moved from ../.
32314         * modules/crypto/arctwo: Moved from ../.
32315         * modules/crypto/arctwo-tests: Moved from ../.
32316         * modules/crypto/des: Moved from ../.
32317         * modules/crypto/des-tests: Moved from ../.
32318         * modules/crypto/gc-arcfour: Moved from ../.
32319         * modules/crypto/gc-arcfour-tests: Moved from ../.
32320         * modules/crypto/gc-arctwo: Moved from ../.
32321         * modules/crypto/gc-arctwo-tests: Moved from ../.
32322         * modules/crypto/gc-des: Moved from ../.
32323         * modules/crypto/gc-des-tests: Moved from ../.
32324         * modules/crypto/gc-hmac-md5: Moved from ../.
32325         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
32326         * modules/crypto/gc-hmac-sha1: Moved from ../.
32327         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
32328         * modules/crypto/gc-md2: Moved from ../.
32329         * modules/crypto/gc-md2-tests: Moved from ../.
32330         * modules/crypto/gc-md4: Moved from ../.
32331         * modules/crypto/gc-md4-tests: Moved from ../.
32332         * modules/crypto/gc-md5: Moved from ../.
32333         * modules/crypto/gc-md5-tests: Moved from ../.
32334         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
32335         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
32336         * modules/crypto/gc-random: Moved from ../.
32337         * modules/crypto/gc-rijndael: Moved from ../.
32338         * modules/crypto/gc-rijndael-tests: Moved from ../.
32339         * modules/crypto/gc-sha1: Moved from ../.
32340         * modules/crypto/gc-sha1-tests: Moved from ../.
32341         * modules/crypto/gc-tests: Moved from ../.
32342         * modules/crypto/hmac-md5: Moved from ../.
32343         * modules/crypto/hmac-md5-tests: Moved from ../.
32344         * modules/crypto/hmac-sha1: Moved from ../.
32345         * modules/crypto/hmac-sha1-tests: Moved from ../.
32346         * modules/crypto/md2: Moved from ../.
32347         * modules/crypto/md2-tests: Moved from ../.
32348         * modules/crypto/md4: Moved from ../.
32349         * modules/crypto/md4-tests: Moved from ../.
32350         * modules/crypto/md5: Moved from ../.
32351         * modules/crypto/md5-tests: Moved from ../.
32352         * modules/crypto/memxor: Moved from ../.
32353         * modules/crypto/rijndael: Moved from ../.
32354         * modules/crypto/rijndael-tests: Moved from ../.
32355         * modules/crypto/sha1: Moved from ../.
32356
32357 2007-03-30  James Youngman  <jay@gnu.org>
32358
32359         * tests/test-stat-time.c (prepare_test): use chmod() rather than
32360         rename() to change the ctime of a file (because ctime is unaffected
32361         by rename on jfs2 on AIX 5.1).
32362         (main): Start by doing cleanup, in case a previous run failed leaving
32363         test files behind.
32364
32365 2007-03-31  Bruno Haible  <bruno@clisp.org>
32366
32367         Support old proprietary implementations of iconv.
32368         * modules/iconv_open: New file.
32369         * lib/iconv_.h: New file.
32370         * m4/iconv_h.m4: New file.
32371         * lib/iconv_open.c: New file.
32372         * lib/iconv_open-aix.gperf: New file.
32373         * lib/iconv_open-hpux.gperf: New file.
32374         * lib/iconv_open-irix.gperf: New file.
32375         * lib/iconv_open-osf.gperf: New file.
32376         * m4/iconv_open.m4: New file.
32377         * modules/linebreak (Depends-on): Add iconv_open.
32378         * modules/striconv (Depends-on): Likewise.
32379         * modules/striconveh (Depends-on): Likewise.
32380         * modules/unicodeio (Depends-on): Likewise.
32381         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
32382         (iconv_t)(-1).
32383         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
32384         conversion if cd is (iconv_t)(-1).
32385         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
32386         is not possible.
32387
32388 2007-03-31  Bruno Haible  <bruno@clisp.org>
32389
32390         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
32391         work on Solaris either. Protect also second use of "autodetect_jp".
32392
32393 2007-03-31  Bruno Haible  <bruno@clisp.org>
32394
32395         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
32396         the function is not present.
32397
32398 2007-03-31  Bruno Haible  <bruno@clisp.org>
32399
32400         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
32401         the function is not present.
32402
32403 2007-03-31  Bruno Haible  <bruno@clisp.org>
32404
32405         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
32406         a bug in HP-UX iconv_open().
32407
32408 2007-03-31  Bruno Haible  <bruno@clisp.org>
32409
32410         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
32411         (Mathematics <math.h>): New section, add fpieee.
32412         (Input/output <stdio.h>): Add fseterr.
32413         (Mathematics <math.h>): New section, add printf-frexp.
32414         (Container data structures): Add sublist.
32415         (Core language properties): Add fpucw, inline.
32416         (Functions for greatest-width integer types <inttypes.h>): Add
32417         imaxabs, imaxdiv, inttypes.
32418         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
32419         isnanl-nolibm, ldexp.
32420         (Mathematics <math.h>): New section, add printf-frexpl.
32421         (Support for systems lacking POSIX:2001): Add fprintf-posix,
32422         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
32423         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
32424         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
32425         (Unicode string functions): Add unistr/u*-mbtoucr.
32426         (Java): Add javacomp-script, javaexec-script.
32427         (C#): Add csharpcomp-script, csharpexec-script.
32428         (Support for building libraries and executables): Add havelib,
32429         relocatable-*.
32430         (Support for maintaining and releasing projects): Renamed from
32431         'Support for maintaining and release projects'. Add announce-gen.
32432
32433 2007-03-31  Bruno Haible  <bruno@clisp.org>
32434
32435         * README: Talk primarily about git.
32436         (git and CVS): Renamed from CVS.
32437         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
32438         gnulib is available through git.
32439         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
32440
32441 2007-03-30  Bruno Haible  <bruno@clisp.org>
32442
32443         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
32444         * lib/poll_.h: Likewise.
32445         * lib/stat_.h: Likewise.
32446         * lib/sys_time_.h: Likewise.
32447         * lib/sysexit_.h: Likewise.
32448         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
32449         * lib/stdbool_.h: Likewise.
32450         * lib/byteswap_.h: Add double-inclusion guard.
32451
32452 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
32453
32454         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
32455
32456 2007-03-30  Karl Berry  <karl@gnu.org>
32457
32458         * config/srclist-update: double space after USA in the license
32459         substitution, since that's how it's usually (?) written.
32460
32461 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32462
32463         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
32464         reported by Bruno Haible.
32465
32466 2007-03-29  Bruno Haible  <bruno@clisp.org>
32467
32468         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
32469         a bug in AIX iconv().
32470
32471 2007-03-29  Bruno Haible  <bruno@clisp.org>
32472
32473         * modules/ldexpl-tests: New file.
32474         * tests/test-ldexpl.c: New file.
32475
32476 2007-03-29  Bruno Haible  <bruno@clisp.org>
32477
32478         * lib/ldexpl.c: Include fpucw.h.
32479         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
32480         multiplication.
32481         * modules/ldexpl (Depends-on): Add fpucw.
32482
32483 2007-03-29  Bruno Haible  <bruno@clisp.org>
32484
32485         * modules/ldexpl: New file.
32486         * m4/ldexpl.m4: New file.
32487         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
32488         set.
32489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
32490         REPLACE_LDEXPL.
32491         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
32492         REPLACE_LDEXPL.
32493         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
32494         gl_FUNC_LDEXPL_WORKS.
32495         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
32496         * modules/mathl (Files): Remove lib/ldexpl.c.
32497         (Depends-on): Add ldexpl.
32498
32499 2007-03-29  Bruno Haible  <bruno@clisp.org>
32500
32501         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
32502
32503 2007-03-29  Bruno Haible  <bruno@clisp.org>
32504
32505         * tests/test-striconveh.c (main): Don't assume that a direct conversion
32506         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
32507         and possibly also HP-UX.
32508         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
32509         work on AIX, IRIX, HP-UX, OSF/1.
32510         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32511         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32512         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32513         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32514         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
32515         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32516
32517 2007-03-29  Bruno Haible  <bruno@clisp.org>
32518
32519         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
32520
32521 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
32522
32523         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
32524         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
32525
32526 2007-03-29  Eric Blake  <ebb9@byu.net>
32527
32528         * lib/acl-internal.h: Remove redundant include.
32529         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
32530         Cygwin when a file is locked.
32531
32532 2007-03-29  Bruno Haible  <bruno@clisp.org>
32533
32534         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
32535         file.
32536         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
32537
32538 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
32539
32540         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
32541         try to remove a parent directory if the child couldn't be removed
32542         (except for the first rmdir, which could fail because the child
32543         doesn't exist).  Problem reported by Jeff Blaine in
32544         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
32545
32546 2007-03-28  Bruno Haible  <bruno@clisp.org>
32547
32548         * lib/striconveh.c (utf8conv_carefully): New function.
32549         (mem_cd_iconveh_internal): Invoke it.
32550
32551 2007-03-28  Bruno Haible  <bruno@clisp.org>
32552
32553         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
32554         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
32555         input.
32556         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
32557         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
32558         unistr/u8-uctomb.
32559
32560 2007-03-28  Bruno Haible  <bruno@clisp.org>
32561
32562         * modules/unistr/u8-mbtoucr: New file.
32563         * lib/unistr/u8-mbtoucr.c: New file.
32564         * modules/unistr/u16-mbtoucr: New file.
32565         * lib/unistr/u16-mbtoucr.c: New file.
32566         * modules/unistr/u16-mbtoucr: New file.
32567         * lib/unistr/u16-mbtoucr.c: New file.
32568         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
32569
32570 2007-03-27  Simon Josefsson  <simon@josefsson.org>
32571             Bruno Haible  <bruno@clisp.org>
32572
32573         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
32574         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
32575         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
32576
32577         * m4/stdio_h.m4: Add stubs for vasprintf too.
32578
32579         * modules/stdio: Support vasprintf in sed command.
32580
32581         * modules/vasprintf: Depend on stdio for prototypes.  Remove
32582         vasprintf.h.  Add stdio module indicator.
32583
32584         * lib/stdio_.h: Declare asprintf and vasprintf, based on
32585         vasprintf.h.
32586
32587         * lib/vasprintf.h: File removed.
32588
32589         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
32590         * lib/vasprintf.c: Ditto.
32591         * lib/xvasprintf.c: Ditto.
32592         * tests/test-vasprintf-posix.c: Ditto.
32593         * tests/test-vasprintf.c: Ditto.
32594
32595 2007-03-27  Bruno Haible  <bruno@clisp.org>
32596
32597         Make vasnprintf multithread-safe.
32598         * lib/vasnprintf.c (decimal_point_char): New function.
32599         (VASNPRINTF): Use it.
32600         Suggested by Simon Josefsson.
32601
32602 2007-03-27  Eric Blake  <ebb9@byu.net>
32603
32604         Support sub-second birthtime on cygwin.
32605         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
32606         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
32607         (get_stat_birthtime): Also work with st_birthtim.
32608
32609 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32610
32611         * lib/stat-time.h (USE_BIRTHTIME): Remove.
32612         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
32613         (get_stat_birthtime_ns): Do not try to use "spare" fields.
32614         (get_stat_birthtime_ns): Simplify compile-time tests.
32615         (get_stat_birthtime): Change the API to look like
32616         get_stat_mtime etc., except return a negative tv_nsec on error.
32617         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
32618         Don't check for "spare" fields.
32619         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
32620         or for struct stat.st_birthtime, as these tests aren't used.
32621         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
32622
32623 2007-03-27  Bruno Haible  <bruno@clisp.org>
32624
32625         * lib/stat-time.h: Include <sys/stat.h>.
32626
32627 2007-03-27  James Youngman  <jay@gnu.org>
32628
32629         * lib/stat-time.h (get_stat_birthtime): New function for
32630           retrieving st_birthtime as provided by UFS2 (hence *BSD).
32631         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
32632           and its variants.
32633         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
32634         * modules/stat-time-test: New file.
32635         * tests/test-stat-time.c: New test, devised by Bruno Haible.
32636
32637 2007-03-26  Bruno Haible  <bruno@clisp.org>
32638
32639         Better support of signalling NaNs.
32640         * lib/atanl.c: Include isnanl.h.
32641         (atanl): Perform test for NaN at the beginning of the function and
32642         through a call to isnanl.
32643         * lib/cosl.c: Include isnanl.h.
32644         (cosl): Perform test for NaN at the beginning of the function and
32645         through a call to isnanl.
32646         * lib/ldexpl.c: Include isnanl.h.
32647         (ldexpl): Perform test for NaN through a call to isnanl.
32648         * lib/logl.c: Include isnanl.h.
32649         (logl): Perform test for NaN at the beginning of the function and
32650         through a call to isnanl.
32651         * lib/sinl.c: Include isnanl.h.
32652         (sinl): Perform test for NaN at the beginning of the function and
32653         through a call to isnanl.
32654         * lib/sqrtl.c: Include isnanl.h.
32655         (sqrtl): Perform test for NaN at the beginning of the function and
32656         through a call to isnanl.
32657         * lib/tanl.c: Include isnanl.h.
32658         (tanl): Perform test for NaN at the beginning of the function and
32659         through a call to isnanl.
32660         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
32661         * modules/mathl (Depends-on): Add isnanl.
32662
32663 2007-03-26  Eric Blake  <ebb9@byu.net>
32664
32665         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
32666         regression in logic sense of previous patch.
32667
32668 2007-03-26  Bruno Haible  <bruno@clisp.org>
32669
32670         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
32671         unportable shell command "if ! ...".
32672         Reported by Ralf Wildenhues.
32673
32674 2007-03-25  Bruno Haible  <bruno@clisp.org>
32675
32676         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
32677         <sysexits.h> file, and only add EX_CONFIG.
32678         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
32679         absolute file name and whether it is sufficient. Substitute also
32680         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
32681         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
32682         ABSOLUTE_SYSEXITS_H into sysexits.h.
32683
32684 2007-03-25  Bruno Haible  <bruno@clisp.org>
32685
32686         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
32687         hints is NULL.
32688
32689 2007-03-25  Bruno Haible  <bruno@clisp.org>
32690
32691         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
32692         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
32693
32694 2007-03-25  Bruno Haible  <bruno@clisp.org>
32695
32696         * lib/vasnprintf.c: Include langinfo.h.
32697         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
32698         multithread-safe.
32699         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
32700         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
32701         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32702         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32703         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32704         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32705         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32706         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
32707         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32708         Reported by Simon Josefsson.
32709
32710 2007-03-25  Bruno Haible  <bruno@clisp.org>
32711
32712         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
32713         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
32714         * modules/vasnprintf (Depends-on): Add stdint.
32715
32716 2007-03-25  Bruno Haible  <bruno@clisp.org>
32717
32718         * modules/fpieee: New file.
32719         * m4/fpieee.m4: New file.
32720         * modules/isnan-nolibm (Depends-on): Add fpieee.
32721         * modules/isnanl-nolibm (Depends-on): Add fpieee.
32722         * modules/isnanl (Depends-on): Add fpieee.
32723
32724 2007-03-25  Bruno Haible  <bruno@clisp.org>
32725
32726         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
32727
32728 2007-03-25  Bruno Haible  <bruno@clisp.org>
32729
32730         Avoid test failures on IRIX 6.5.
32731         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
32732         (main): Use it.
32733         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
32734         macros.
32735         (main): Use them.
32736
32737 2007-03-25  Bruno Haible  <bruno@clisp.org>
32738
32739         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
32740         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
32741         exists but doesn't work.
32742         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
32743         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
32744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
32745         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
32746
32747 2007-03-25  Bruno Haible  <bruno@clisp.org>
32748
32749         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
32750         returns inf. Needed on IRIX 6.5.
32751
32752 2007-03-25  Bruno Haible  <bruno@clisp.org>
32753
32754         * tests/test-frexpl.c: Include isnanl-nolibm.h.
32755         (main): Use isnanl instead of x != x idiom.
32756         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
32757
32758         * tests/test-frexp.c: Include isnan.h.
32759         (main): Use isnan instead of x != x idiom.
32760         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
32761
32762 2007-03-25  Bruno Haible  <bruno@clisp.org>
32763
32764         * tests/test-frexp.c (NaN): New function/macro.
32765         (main): Use it instead of 0.0 / 0.0.
32766         * tests/test-isnan.c (NaN): New function/macro.
32767         (main): Use it instead of 0.0 / 0.0.
32768         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
32769         (test_function): Use it instead of 0.0 / 0.0.
32770         * tests/test-vasprintf-posix.c (NaN): New function/macro.
32771         (test_function): Use it instead of 0.0 / 0.0.
32772         * tests/test-snprintf-posix.h (NaN): New function/macro.
32773         (test_function): Use it instead of 0.0 / 0.0.
32774         * tests/test-sprintf-posix.h (NaN): New function/macro.
32775         (test_function): Use it instead of 0.0 / 0.0.
32776         * tests/test-fprintf-posix.h (NaN): New function/macro.
32777         (test_function): Use it instead of 0.0 / 0.0.
32778         * tests/test-printf-posix.h (NaN): New function/macro.
32779         (test_function): Use it instead of 0.0 / 0.0.
32780
32781         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
32782
32783 2007-03-25  Bruno Haible  <bruno@clisp.org>
32784
32785         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
32786
32787 2007-03-25  Bruno Haible  <bruno@clisp.org>
32788
32789         * lib/regexec.c (merge_state_with_log): Make static.
32790
32791 2007-03-25  Bruno Haible  <bruno@clisp.org>
32792
32793         * lib/trigl.c (kernel_rem_pio2): Make static.
32794
32795 2007-03-25  Bruno Haible  <bruno@clisp.org>
32796
32797         * lib/sincosl.c (sincosl_table): Make static.
32798
32799 2007-03-25  Bruno Haible  <bruno@clisp.org>
32800
32801         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
32802         if the compiler does not support C99.
32803
32804 2007-03-25  Bruno Haible  <bruno@clisp.org>
32805
32806         * modules/time (Makefile.am): Ensure all rule action lines start with a
32807         tab.
32808
32809 2007-03-24  Bruno Haible  <bruno@clisp.org>
32810
32811         * modules/tsearch-tests: New file.
32812         * tests/test-tsearch.sh: New file.
32813         * tests/test-tsearch.c: New file, mostly copied from glibc.
32814
32815         * modules/search-tests: New file.
32816         * tests/test-search.c: New file.
32817
32818         * modules/search: New file.
32819         * lib/search_.h: New file, incorporating lib/tsearch.h.
32820         * m4/search_h.m4: New file.
32821         * lib/tsearch.h: Remove file.
32822         * lib/tsearch.c: Include search.h instead of tsearch.h.
32823         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
32824         HAVE_TSEARCH.
32825         * modules/tsearch (Files): Remove lib/tsearch.h.
32826         (Depends-on): Add search.
32827         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
32828         (Include): Change tsearch.h into search.h.
32829
32830 2007-03-24  Bruno Haible  <bruno@clisp.org>
32831
32832         * modules/fpucw: New file.
32833         * lib/fpucw.h: New file.
32834         * lib/frexp.c: Include fpucw.h.
32835         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
32836         (FUNC): Use them.
32837         * lib/printf-frexp.c: Include fpucw.h.
32838         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
32839         (FUNC): Use them.
32840         * lib/vasnprintf.c: Include fpucw.h.
32841         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
32842         'long double' calculations.
32843         * tests/test-frexpl.c: Include fpucw.h.
32844         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
32845         * tests/test-printf-frexpl.c: Include fpucw.h.
32846         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
32847         * modules/frexpl (Depends-on): Add fpucw.
32848         * modules/printf-frexpl (Depends-on): Likewise.
32849         * modules/fprintf-posix (Depends-on): Likewise.
32850         * modules/snprintf-posix (Depends-on): Likewise.
32851         * modules/sprintf-posix (Depends-on): Likewise.
32852         * modules/vasnprintf-posix (Depends-on): Likewise.
32853         * modules/vasprintf-posix (Depends-on): Likewise.
32854         * modules/vfprintf-posix (Depends-on): Likewise.
32855         * modules/vsnprintf-posix (Depends-on): Likewise.
32856         * modules/vsprintf-posix (Depends-on): Likewise.
32857         * modules/frexpl-tests (Depends-on): Likewise.
32858         * modules/printf-frexpl-tests (Depends-on): Likewise.
32859
32860 2007-03-24  Bruno Haible  <bruno@clisp.org>
32861
32862         * lib/float+.h: New file.
32863         * lib/isnan.c: Include float+.h.
32864         (SIZE): New macro.
32865         (FUNC): Compare only SIZE bytes of the value.
32866         * lib/vasnprintf.c: Include float+.h.
32867         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
32868         SIZEOF_LDBL or SIZEOF_DBL bytes.
32869         * modules/isnan-nolibm (Files): Add lib/float+.h.
32870         * modules/isnanl-nolibm (Files): Add lib/float+.h.
32871         * modules/isnanl (Files): Add lib/float+.h.
32872         * modules/vasnprintf (Files): Add lib/float+.h.
32873
32874 2007-03-24  Bruno Haible  <bruno@clisp.org>
32875
32876         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
32877         include isnanl-nolibm.h.
32878
32879 2007-03-24  Bruno Haible  <bruno@clisp.org>
32880
32881         * tests/test-read-file.c (main): Don't produce spurious output for
32882         expected situations. Make the test fail if it encountered unexpected
32883         results.
32884
32885 2007-03-24  Bruno Haible  <bruno@clisp.org>
32886
32887         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
32888         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
32889
32890 2007-03-24  Bruno Haible  <bruno@clisp.org>
32891
32892         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
32893
32894 2007-03-24  Bruno Haible  <bruno@clisp.org>
32895
32896         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
32897         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
32898
32899         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
32900         * modules/utf8-ucs4: Turn into a symbolic link to module
32901         unistr/u8-mbtouc.
32902
32903         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
32904         utf8-ucs4-unsafe.
32905         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
32906         unistr/u8-mbtouc-unsafe.
32907
32908         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
32909         * modules/utf16-ucs4: Turn into a symbolic link to module
32910         unistr/u16-mbtouc.
32911
32912         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
32913         utf16-ucs4-unsafe.
32914         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
32915         unistr/u16-mbtouc-unsafe.
32916
32917         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
32918         * modules/ucs4-utf8: Turn into a symbolic link to module
32919         unistr/u8-ubtomb.
32920
32921         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
32922         * modules/ucs4-utf16: Turn into a symbolic link to module
32923         unistr/u16-ubtomb.
32924
32925 2007-03-24  Bruno Haible  <bruno@clisp.org>
32926
32927         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
32928         Enable the function only if HAVE_INLINE.
32929         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
32930         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
32931         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
32932         Enable the function only if HAVE_INLINE.
32933         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
32934         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
32935         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
32936         Enable the function only if HAVE_INLINE.
32937         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
32938         Enable the function only if HAVE_INLINE.
32939         * modules/utf8-ucs4: Update.
32940         * modules/utf8-ucs4-unsafe: Update.
32941         * modules/utf16-ucs4: Update.
32942         * modules/utf16-ucs4-unsafe: Update.
32943         * modules/ucs4-utf8: Update.
32944         * modules/ucs4-utf16: Update.
32945
32946 2007-03-24  Bruno Haible  <bruno@clisp.org>
32947
32948         * lib/utf8-ucs4.h: Remove file.
32949         * lib/utf8-ucs4-unsafe.h: Remove file.
32950         * lib/utf16-ucs4.h: Remove file.
32951         * lib/utf16-ucs4-unsafe.h: Remove file.
32952         * lib/ucs4-utf8.h: Remove file.
32953         * lib/ucs4-utf16.h: Remove file.
32954         * lib/unistr.h: Include their previous contents.
32955         * m4/utf-ucs4.m4: Remove file.
32956         * m4/ucs4-utf.m4: Remove file.
32957         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
32958         (Depends-on): Add unistr/base.
32959         (configure.ac): Remove gl_UTF_UCS4.
32960         (Makefile.am): Update.
32961         (Include): Change to unistr.h.
32962         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
32963         (Depends-on): Add unistr/base.
32964         (configure.ac): Remove gl_UTF_UCS4.
32965         (Makefile.am): Update.
32966         (Include): Change to unistr.h.
32967         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
32968         (Depends-on): Add unistr/base.
32969         (configure.ac): Remove gl_UTF_UCS4.
32970         (Makefile.am): Update.
32971         (Include): Change to unistr.h.
32972         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
32973         (Depends-on): Add unistr/base.
32974         (configure.ac): Remove gl_UTF_UCS4.
32975         (Makefile.am): Update.
32976         (Include): Change to unistr.h.
32977         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
32978         (Depends-on): Add unistr/base.
32979         (configure.ac): Remove gl_UCS4_UTF.
32980         (Makefile.am): Update.
32981         (Include): Change to unistr.h.
32982         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
32983         (Depends-on): Add unistr/base.
32984         (configure.ac): Remove gl_UCS4_UTF.
32985         (Makefile.am): Update.
32986         (Include): Change to unistr.h.
32987         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
32988         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
32989         utf8-ucs4-unsafe.h.
32990         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
32991         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
32992         utf16-ucs4-unsafe.h.
32993         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
32994         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
32995         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
32996         * lib/unistr/u8-strchr.c: Likewise.
32997         * lib/unistr/u8-strrchr.c: Likewise.
32998         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
32999         * lib/unistr/u16-strchr.c: Likewise.
33000         * lib/unistr/u16-strrchr.c: Likewise.
33001         * lib/striconveh.c: Update.
33002         * lib/linebreak.c: Update.
33003
33004 2007-03-24  Bruno Haible  <bruno@clisp.org>
33005
33006         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
33007         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
33008
33009 2007-03-22  Bruno Haible  <bruno@clisp.org>
33010
33011         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
33012
33013 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
33014
33015         * MODULES.html.sh (File system functions): New module write-any-file.
33016         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
33017         * m4/write-any-file.m4: New files.
33018
33019 2007-03-23  Eric Blake  <ebb9@byu.net>
33020
33021         * gnulib-tool: Rearrange space-tab sequences, since some editors
33022         like to eat them.
33023
33024 2007-03-23  Eric Blake  <ebb9@byu.net>
33025
33026         * lib/version-etc.c (version_etc_va): Update license wording to
33027         be more concise.  Recommended by Richard Stallman.
33028
33029 2007-03-22  Bruno Haible  <bruno@clisp.org>
33030
33031         * lib/poll.c (MSG_PEEK): New fallback definition.
33032
33033 2007-03-22  Bruno Haible  <bruno@clisp.org>
33034
33035         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
33036         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
33037         (main): Update.
33038         Fixes a compilation error on BeOS.
33039
33040 2007-03-22  Bruno Haible  <bruno@clisp.org>
33041
33042         * modules/frexpl-tests: New file.
33043         * tests/test-frexpl.c: New file.
33044
33045         * modules/frexpl: New file.
33046         * m4/frexpl.m4: New file.
33047         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
33048         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
33049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
33050         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
33051         (Depends-on): Add frexpl. Remove isnanl-nolibm.
33052         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
33053
33054 2007-03-22  Bruno Haible  <bruno@clisp.org>
33055
33056         * lib/frexpl.c: Share code with lib/frexp.c.
33057         * modules/mathl (Files): Add lib/frexp.c.
33058         (Depends-on): Add isnanl-nolibm.
33059
33060 2007-03-22  Bruno Haible  <bruno@clisp.org>
33061
33062         * modules/printf-frexp (Files): Add m4/frexp.m4.
33063         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
33064         only if the found frexp function actually works.
33065
33066 2007-03-22  Bruno Haible  <bruno@clisp.org>
33067
33068         * lib/frexp.c: Remove older implementation that uses divisions.
33069
33070 2007-03-21  Bruno Haible  <bruno@clisp.org>
33071
33072         * modules/frexp-tests: New file.
33073         * tests/test-frexp.c: New file.
33074
33075         * modules/frexp: New file.
33076         * lib/frexp.c: New file.
33077         * m4/frexp.m4: New file.
33078         * lib/math_.h (frexp): New declaration.
33079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
33080         REPLACE_FREXP.
33081         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
33082
33083 2007-03-21  Bruno Haible  <bruno@clisp.org>
33084
33085         * modules/isnanl-tests: New file.
33086         * tests/test-isnanl.c: New file.
33087
33088         * modules/isnanl: New file.
33089         * lib/isnanl.h: New file.
33090         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
33091         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
33092         gl_FUNC_ISNANL_WORKS.
33093         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
33094         New macros.
33095
33096 2007-03-21  Bruno Haible  <bruno@clisp.org>
33097
33098         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
33099         lib/isnanl.h.
33100         (Include): Update.
33101         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
33102         * lib/vasnprintf.c: Update.
33103         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
33104         tests/test-isnanl.h, remove tests/test-isnanl.c.
33105         (Makefile.am): Update.
33106         * tests/test-isnanl-nolibm.c: New file.
33107         * tests/test-isnanl.h: New file.
33108         * tests/test-isnanl.c: Remove file.
33109
33110 2007-03-21  Jim Meyering  <jim@meyering.net>
33111
33112         When trying to open ".", treat ESTALE like EACCES.
33113         * lib/savewd.c (savewd_save): Resort to forking not just upon
33114         failure with EACCES, but also when errno is ESTALE.
33115
33116 2007-03-20  Bruno Haible  <bruno@clisp.org>
33117
33118         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
33119         Needed on AIX 5.1. Reported by Matthew Woehlke.
33120
33121 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
33122
33123         Suggestions by Bruno Haible:
33124         * lib/acl-internal.h: Include "gettext.h" rather than rolling
33125         our own.
33126         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
33127         * modules/acl (Depends-on): Add gettext.
33128
33129 2007-03-19  Bruno Haible  <bruno@clisp.org>
33130
33131         * modules/iconvme: Remove file.
33132         * lib/iconvme.h: Remove file.
33133         * lib/iconvme.c: Remove file.
33134         * m4/iconvme.m4: Remove file.
33135
33136 2007-03-19  Bruno Haible  <bruno@clisp.org>
33137
33138         * doc/relocatable-maint.texi: Break long shell script line.
33139         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
33140
33141 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
33142
33143         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
33144         handle file_has_acl.
33145         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
33146         * lib/acl.c: Move header inclusions and related macro defns into
33147         lib/acl-internal.h.
33148         (S_ISLNK): Remove defn, since that's now done for us.
33149         (file_has_acl): Move to lib/file-has-acl.c.
33150         Call acl_trivial if available.  This is the crucial part of the fix.
33151         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
33152         shared within the library.  Rewrite a bit, partly to make it compatible
33153         with the GNU coding style.
33154         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
33155         Remove unnecessary double-quotes.
33156         Don't test for acl_to_text; the build will catch that.
33157         Replace acl_entries if it doesn't exist and it is needed.
33158         Check for -lsec and acl_trivial (as used on Solaris 10).
33159         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
33160         lib/file-has-acl.c.
33161         (Depends-on): Add sys_stat, for S_ISLNK.
33162
33163 2007-03-19  Ben Pfaff  <blp@gnu.org>
33164
33165         * doc/gnulib.texi: Fix typos.
33166         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
33167
33168 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
33169
33170         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
33171         If size is zero here, buf must be zero.
33172
33173 2007-03-19  Simon Josefsson  <simon@josefsson.org>
33174
33175         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
33176         <bruno@clisp.org>.
33177
33178 2007-03-18  Bruno Haible  <bruno@clisp.org>
33179
33180         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
33181         Suggested by Eric Blake.
33182
33183 2007-03-18  Ben Pfaff  <blp@gnu.org>
33184
33185         * doc/relocatable.texi: Recommend using as prefix a directory
33186         that does not exist and will never be created.  Based on
33187         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
33188         and others.
33189
33190 2007-03-17  Bruno Haible  <bruno@clisp.org>
33191
33192         * lib/fchownat.c: Include lchown.h.
33193
33194 2007-03-17  Bruno Haible  <bruno@clisp.org>
33195
33196         Fix endless loop when the given allocated size was > INT_MAX.
33197         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
33198         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
33199         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
33200         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
33201         * lib/sprintf.c (sprintf): Likewise.
33202
33203 2007-03-17  Bruno Haible  <bruno@clisp.org>
33204
33205         * tests/test-argp-2.sh (func_compare): Output a context diff.
33206
33207 2007-03-17  Bruno Haible  <bruno@clisp.org>
33208
33209         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
33210         locale's decimal-point character.
33211
33212 2007-03-17  Bruno Haible  <bruno@clisp.org>
33213
33214         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
33215         before comparing it. Needed because on some platforms (e.g. x86) a
33216         'long double' occupies less bytes than sizeof (long double).
33217
33218 2007-03-17  Bruno Haible  <bruno@clisp.org>
33219
33220         * tests/test-crc.c (main): Make printf statements 64-bit clean.
33221         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
33222         * tests/test-getaddrinfo.c (simple): Likewise.
33223         * tests/test-read-file.c (main): Likewise.
33224
33225 2007-03-17  Bruno Haible  <bruno@clisp.org>
33226
33227         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
33228
33229 2007-03-17  Bruno Haible  <bruno@clisp.org>
33230
33231         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
33232         unused variable.
33233
33234 2007-03-17  Bruno Haible  <bruno@clisp.org>
33235
33236         * tests/test-c-strcasecmp.c: Include c-strcase.h.
33237         * tests/test-c-strncasecmp.c: Likewise.
33238
33239 2007-03-17  Bruno Haible  <bruno@clisp.org>
33240
33241         * modules/stdlib (Depends-on): Add unistd.
33242         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
33243         Needed for MacOS X 10.3.
33244
33245 2007-03-17  Bruno Haible  <bruno@clisp.org>
33246
33247         * lib/unistr/u-strdup.h: Include <stdlib.h>.
33248
33249 2007-03-17  Bruno Haible  <bruno@clisp.org>
33250
33251         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
33252
33253 2007-03-17  Bruno Haible  <bruno@clisp.org>
33254
33255         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
33256         to reflect files copied from gnulib (with or without modifications).
33257         Suggested by Jim Meyering.
33258
33259 2007-03-17  Eric Blake  <ebb9@byu.net>
33260
33261         * NEWS: Document stdlib change from 2007-02-18.
33262
33263 2007-03-17  Jim Meyering  <jim@meyering.net>
33264
33265         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
33266         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
33267         someone uses a name containing shell meta-characters.
33268         Reported by Alfred M. Szmidt.
33269
33270         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
33271
33272 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
33273
33274         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
33275         and copy gettext configuration files only if configure.ac contains
33276         a use of AM_GNU_GETTEXT_VERSION.
33277
33278 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
33279
33280         * build-aux/bootstrap (gnulib_name): New variable.
33281         (gnulib_tool_options): Use it.
33282
33283 2007-03-13  Simon Josefsson  <simon@josefsson.org>
33284
33285         * tests/test-des.c: Use new namespace.
33286
33287 2007-03-15  Bruno Haible  <bruno@clisp.org>
33288
33289         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
33290         Reported by James Youngman <jay@gnu.org>.
33291
33292 2007-03-15  Bruno Haible  <bruno@clisp.org>
33293
33294         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
33295         declared prototype. Needed with cc on OSF/1 5.1.
33296
33297 2007-03-15  Bruno Haible  <bruno@clisp.org>
33298
33299         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
33300         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
33301         (struct gl_list_implementation): Add dispose_fn argument to the
33302         'create_empty', 'create' methods.
33303         (struct gl_list_impl_base): Add field 'dispose_fn'.
33304         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
33305         argument.
33306         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
33307         dispose_fn argument.
33308         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
33309         dispose_fn on the dropped values.
33310         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
33311         dispose_fn argument.
33312         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
33313         dropped values.
33314         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
33315         (gl_tree_remove_node): Call dispose_fn on the dropped value.
33316         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
33317         (gl_tree_remove_node): Call dispose_fn on the dropped value.
33318         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
33319         argument.
33320         (gl_tree_list_free): Call dispose_fn on the dropped values.
33321         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
33322         the dropped values.
33323         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
33324         Add dispose_fn argument.
33325         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
33326         Call dispose_fn on the dropped values.
33327         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
33328         Add dispose_fn argument.
33329         (gl_sublist_create): Initialize the 'dispose_fn' field.
33330         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
33331         * tests/test-array_list.c (main): Update.
33332         * tests/test-carray_list.c (main): Update.
33333         * tests/test-avltree_list.c (main): Update.
33334         * tests/test-rbtree_list.c (main): Update.
33335         * tests/test-avltreehash_list.c (main): Update.
33336         * tests/test-rbtreehash_list.c (main): Update.
33337         * tests/test-linked_list.c (main): Update.
33338         * tests/test-linkedhash_list.c (main): Update.
33339         * tests/test-array_oset.c (main): Update.
33340
33341 2007-03-15  Bruno Haible  <bruno@clisp.org>
33342
33343         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
33344         (gl_oset_create_empty): Add dispose_fn argument.
33345         (struct gl_oset_implementation): Add dispose_fn argument to
33346         'create_empty' method.
33347         (struct gl_oset_impl_base): Add dispose_fn field.
33348         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
33349         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
33350         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
33351         values.
33352         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
33353         (gl_tree_oset_free): Call dispose_fn on the dropped values.
33354         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
33355         dropped value.
33356         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
33357         dropped value.
33358         * tests/test-array_oset.c (main): Update.
33359         * tests/test-avltree_oset.c (main): Update.
33360         * tests/test-rbtree_oset.c (main): Update.
33361         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
33362
33363 2007-03-13  Bruno Haible  <bruno@clisp.org>
33364
33365         * tests/test-stdbool.c (i): Update after last patch.
33366
33367 2007-03-12  Bruno Haible  <bruno@clisp.org>
33368
33369         * lib/quotearg.c: Include <wctype.h> early, before the definition of
33370         the iswprint macro. Needed on Solaris 2.5.1.
33371
33372 2007-03-12  Bruno Haible  <bruno@clisp.org>
33373
33374         * tests/test-printf-frexp.c (main): Declare x as volatile.
33375
33376 2007-03-12  Simon Josefsson  <simon@josefsson.org>
33377
33378         * doc/gnulib.texi (Build robot for gnulib): New section.
33379
33380 2007-03-12  Jim Meyering  <jim@meyering.net>
33381
33382         * build-aux/bootstrap: New file.
33383         * build-aux/bootstrap.conf: New file, from coreutils.
33384
33385 2007-03-11  Bruno Haible  <bruno@clisp.org>
33386
33387         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
33388
33389 2007-03-12  Simon Josefsson  <simon@josefsson.org>
33390
33391         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
33392         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
33393         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
33394
33395 2007-03-11  Bruno Haible  <bruno@clisp.org>
33396
33397         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
33398         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
33399
33400 2007-03-11  Bruno Haible  <bruno@clisp.org>
33401
33402         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
33403         formula. Needed for SunPRO C 5.0.
33404
33405 2007-03-11  Bruno Haible  <bruno@clisp.org>
33406
33407         * modules/long-options (Depends-on): Add getopt.
33408
33409 2007-03-11  Bruno Haible  <bruno@clisp.org>
33410
33411         * modules/modechange (Depends-on): Add stdbool.
33412
33413 2007-03-11  Bruno Haible  <bruno@clisp.org>
33414
33415         * modules/i-ring (Depends-on): Add stdbool.
33416
33417 2007-03-11  Bruno Haible  <bruno@clisp.org>
33418
33419         * modules/gc-des (Depends-on): Add stdbool.
33420
33421 2007-03-11  Bruno Haible  <bruno@clisp.org>
33422
33423         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
33424
33425 2007-03-11  Bruno Haible  <bruno@clisp.org>
33426
33427         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
33428
33429 2007-03-11  Bruno Haible  <bruno@clisp.org>
33430
33431         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
33432
33433 2007-03-11  Bruno Haible  <bruno@clisp.org>
33434
33435         * lib/vasnprintf.c (sprintf): Undefine.
33436
33437 2007-03-11  Bruno Haible  <bruno@clisp.org>
33438
33439         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
33440         initializers in SunPRO C and Compaq C compilers.
33441
33442 2007-03-11  Bruno Haible  <bruno@clisp.org>
33443
33444         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
33445         decrementing code ANSI C compliant.
33446
33447 2007-03-11  Bruno Haible  <bruno@clisp.org>
33448
33449         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
33450         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
33451
33452 2007-03-11  Bruno Haible  <bruno@clisp.org>
33453
33454         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
33455         <stdbool.h> substitute doesn't pass.
33456
33457 2007-03-11  Bruno Haible  <bruno@clisp.org>
33458
33459         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
33460
33461 2007-03-11  Bruno Haible  <bruno@clisp.org>
33462
33463         * gnulib-tool (func_create_megatestdir): Create also an autobuild
33464         script, for submission to autobuild.josefsson.org.
33465
33466 2007-03-10  Bruno Haible  <bruno@clisp.org>
33467
33468         * modules/canonicalize-lgpl-tests: New file.
33469         * tests/test-canonicalize-lgpl.sh: New file.
33470         * tests/test-canonicalize-lgpl.c: New file.
33471
33472         * modules/c-strcase-tests: New file.
33473         * tests/test-c-strcase.sh: New file.
33474         * tests/test-c-strcasecmp.c: New file.
33475         * tests/test-c-strncasecmp.c: New file.
33476
33477         * modules/atexit-tests: New file.
33478         * tests/test-atexit.sh: New file.
33479         * tests/test-atexit.c: New file.
33480
33481 2007-03-10  Bruno Haible  <bruno@clisp.org>
33482
33483         * tests/test-binary-io.sh: Use temporary filenames that are not so
33484         likely to clash with those of other tests (in a parallel make).
33485         * tests/test-binary-io.c: Likewise.
33486
33487 2007-03-10  Bruno Haible  <bruno@clisp.org>
33488
33489         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
33490         fallback; use #error instead.
33491         Suggested by Simon Josefsson.
33492
33493 2007-03-10  Bruno Haible  <bruno@clisp.org>
33494
33495         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
33496         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
33497         first and the last.
33498
33499 2007-03-10  Bruno Haible  <bruno@clisp.org>
33500
33501         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
33502
33503 2007-03-10  Bruno Haible  <bruno@clisp.org>
33504
33505         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
33506         "make distcheck".
33507         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
33508         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
33509         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
33510
33511 2007-03-10  Bruno Haible  <bruno@clisp.org>
33512
33513         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
33514         variable.
33515         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
33516         variable.
33517
33518 2007-03-09  Eric Blake  <ebb9@byu.net>
33519         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
33520
33521         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
33522         types are not being provided by gnulib.
33523         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
33524         types are supported.
33525
33526 2007-03-10  Bruno Haible  <bruno@clisp.org>
33527
33528         * lib/stdio_.h (__attribute__): New macro.
33529         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
33530         vsprintf): Specify __attribute__ __format__ for GCC.
33531         Suggested by Eric Blake.
33532
33533 2007-03-09  Bruno Haible  <bruno@clisp.org>
33534
33535         * modules/printf-posix-tests: New file.
33536         * tests/test-printf-posix.sh: New file.
33537         * tests/test-printf-posix.c: New file.
33538
33539         * modules/printf-posix: New file.
33540         * lib/printf.c: New file.
33541         * m4/printf-posix-rpl.m4: New file.
33542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
33543         REPLACE_PRINTF.
33544         * lib/stdio_.h (printf): New declaration.
33545         (format, __format__, ____printf____, ____scanf____, ____strftime____,
33546         ____strfmon____): New macros.
33547         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
33548         REPLACE_PRINTF.
33549
33550 2007-03-09  Bruno Haible  <bruno@clisp.org>
33551
33552         * tests/test-vasnprintf-posix2.sh: New file.
33553         * tests/test-vasnprintf-posix2.c: New file.
33554         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
33555         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33556         (Makefile.am): Activate test-vasnprintf-posix2.sh.
33557
33558         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
33559         a locale dependent decimal point, rather than always '.'.
33560
33561 2007-03-09  Eric Blake  <ebb9@byu.net>
33562
33563         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
33564         spite of platforms like Tandem/NSK that define it to -1.
33565
33566 2007-03-08  Bruno Haible  <bruno@clisp.org>
33567
33568         * modules/vprintf-posix-tests: New file.
33569         * tests/test-vprintf-posix.sh: New file.
33570         * tests/test-vprintf-posix.c: New file.
33571         * tests/test-printf-posix.h: New file.
33572
33573         * modules/vprintf-posix: New file.
33574         * lib/vprintf.c: New file.
33575         * m4/vprintf-posix.m4: New file.
33576         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
33577         REPLACE_VPRINTF.
33578         * lib/stdio_.h (vprintf): New declaration.
33579         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
33580         REPLACE_VPRINTF.
33581
33582 2007-03-08  Bruno Haible  <bruno@clisp.org>
33583
33584         * modules/fprintf-posix-tests: New file.
33585         * tests/test-fprintf-posix.sh: New file.
33586         * tests/test-fprintf-posix.c: New file.
33587
33588         * modules/fprintf-posix: New file.
33589         * lib/fprintf.c: New file.
33590         * m4/fprintf-posix.m4: New file.
33591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
33592         REPLACE_FPRINTF.
33593         * lib/stdio_.h (fprintf): New declaration.
33594         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
33595         REPLACE_FPRINTF.
33596
33597 2007-03-08  Bruno Haible  <bruno@clisp.org>
33598
33599         * modules/vfprintf-posix-tests: New file.
33600         * tests/test-vfprintf-posix.sh: New file.
33601         * tests/test-vfprintf-posix.c: New file.
33602         * tests/test-fprintf-posix.h: New file.
33603         * tests/test-fprintf-posix.out: New file.
33604
33605         * modules/vfprintf-posix: New file.
33606         * lib/vfprintf.c: New file.
33607         * m4/vfprintf-posix.m4: New file.
33608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
33609         REPLACE_VFPRINTF.
33610         * lib/stdio_.h (vfprintf): New declaration.
33611         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
33612         REPLACE_VFPRINTF.
33613
33614 2007-03-08  Bruno Haible  <bruno@clisp.org>
33615
33616         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
33617
33618 2007-03-08  Bruno Haible  <bruno@clisp.org>
33619
33620         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
33621         instead of 'expr' invocations.
33622         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33623         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33624         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33625         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33626         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33627         Suggested by Paul Eggert.
33628
33629 2007-03-08  Bruno Haible  <bruno@clisp.org>
33630
33631         * modules/fseterr-tests: New file.
33632         * tests/test-fseterr.c: New file.
33633
33634         * modules/fseterr: New file.
33635         * lib/fseterr.h: New file.
33636         * lib/fseterr.c: New file.
33637
33638 2007-03-08  Bruno Haible  <bruno@clisp.org>
33639
33640         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
33641         * lib/getopt_.h: Likewise.
33642         * lib/mbswidth.h: Likewise.
33643         * lib/setenv.h: Likewise.
33644         * lib/vasnprintf.h: Likewise.
33645         * lib/vasprintf.h: Likewise.
33646         * lib/verror.h: Likewise.
33647         * lib/xsetenv.h: Likewise.
33648         * lib/xvasprintf.h: Likewise.
33649
33650 2007-03-08  Jim Meyering  <jim@meyering.net>
33651
33652         * users.txt: Add parted.
33653
33654         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
33655
33656 2007-03-07  Bruno Haible  <bruno@clisp.org>
33657
33658         * m4/printf.m4: Make the shell script snippets copy&pastable.
33659
33660 2007-03-02  Bruno Haible  <bruno@clisp.org>
33661
33662         * lib/netinet_in_.h: New file.
33663         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
33664         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
33665         * modules/netinet_in (Files): Add lib/netinet_in_.h.
33666         (Depends-on): Add absolute-header.
33667         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
33668         into netinet/in.h.
33669
33670 2007-03-03  Bruno Haible  <bruno@clisp.org>
33671
33672         * lib/sys_select_.h: New file.
33673         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
33674         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
33675         * modules/sys_select (Files): Add lib/sys_select_.h.
33676         (Depends-on): Add absolute-header.
33677         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
33678         into sys/select.h.
33679
33680 2007-03-02  Bruno Haible  <bruno@clisp.org>
33681
33682         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
33683         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
33684         values.
33685         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
33686         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
33687         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
33688         * modules/sys_socket (Depends-on): Add absolute-header.
33689         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
33690         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
33691         (Include): Remove requirement of inclusion of <sys/types.h>.
33692
33693 2007-03-02  Bruno Haible  <bruno@clisp.org>
33694
33695         * lib/byteswap_.h (bswap_32): Fix formula.
33696
33697 2007-03-06  Bruno Haible  <bruno@clisp.org>
33698
33699         * modules/sprintf-posix-tests: New file.
33700         * tests/test-sprintf-posix.c: New file.
33701
33702         * modules/sprintf-posix: New file.
33703         * lib/sprintf.c: New file.
33704         * m4/sprintf-posix.m4: New file.
33705         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
33706         REPLACE_SPRINTF.
33707         * lib/stdio_.h (sprintf): New declaration.
33708         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
33709         REPLACE_SPRINTF.
33710
33711 2007-03-06  Bruno Haible  <bruno@clisp.org>
33712
33713         * modules/vsprintf-posix-tests: New file.
33714         * tests/test-vsprintf-posix.c: New file.
33715         * tests/test-sprintf-posix.h: New file.
33716
33717         * modules/vsprintf-posix: New file.
33718         * lib/vsprintf.c: New file.
33719         * m4/vsprintf-posix.m4: New file.
33720         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
33721         REPLACE_VSPRINTF.
33722         * lib/stdio_.h (vsprintf): New declaration.
33723         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
33724         REPLACE_VSPRINTF.
33725
33726 2007-03-06  Bruno Haible  <bruno@clisp.org>
33727
33728         * modules/vsnprintf (Depend-on): Remove minmax.
33729
33730 2007-03-06  Bruno Haible  <bruno@clisp.org>
33731
33732         * modules/snprintf-posix-tests: New file.
33733         * tests/test-snprintf-posix.c: New file.
33734
33735         * modules/snprintf-posix: New file.
33736         * m4/snprintf-posix.m4: New file.
33737         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
33738         gl_FUNC_SNPRINTF.
33739         (gl_FUNC_SNPRINTF): Invoke it.
33740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
33741         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
33742         is set.
33743         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
33744
33745 2007-03-06  Bruno Haible  <bruno@clisp.org>
33746
33747         * modules/vsnprintf-posix-tests: New file.
33748         * tests/test-vsnprintf-posix.c: New file.
33749         * tests/test-snprintf-posix.h: New file.
33750
33751         * modules/vsnprintf-posix: New file.
33752         * m4/vsnprintf-posix.m4: New file.
33753         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
33754         gl_FUNC_VSNPRINTF.
33755         (gl_FUNC_VSNPRINTF): Invoke it.
33756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
33757         * lib/stdio_.h (vsnprintf): Define as a replacement if
33758         REPLACE_VSNPRINTF is set.
33759         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
33760
33761 2007-03-06  Bruno Haible  <bruno@clisp.org>
33762
33763         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
33764         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
33765
33766 2007-03-06  Bruno Haible  <bruno@clisp.org>
33767
33768         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
33769         (asinl): Declare also if HAVE_DECL_ASINL is set.
33770         (atanl): Declare also if HAVE_DECL_ATANL is set.
33771         (ceill): Declare also if HAVE_DECL_CEILL is set.
33772         (cosl): Declare also if HAVE_DECL_COSL is set.
33773         (expl): Declare also if HAVE_DECL_EXPL is set.
33774         (floorl): Declare also if HAVE_DECL_FLOORL is set.
33775         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
33776         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
33777         (logl): Declare also if HAVE_DECL_LOGL is set.
33778         (sinl): Declare also if HAVE_DECL_SINL is set.
33779         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
33780         (tanl): Declare also if HAVE_DECL_TANL is set.
33781         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
33782         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
33783         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
33784         declaration of frexpl, ldexpl.
33785         * modules/printf-frexpl (Depends-on): Add math.
33786         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
33787
33788 2007-03-05  Bruno Haible  <bruno@clisp.org>
33789
33790         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
33791         frexpl and ldexpl are declared.
33792         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
33793
33794 2007-03-05  Bruno Haible  <bruno@clisp.org>
33795
33796         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
33797         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
33798
33799 2007-03-05  Bruno Haible  <bruno@clisp.org>
33800
33801         * lib/stdio_.h: Include <stddef.h>.
33802
33803 2007-03-05  Bruno Haible  <bruno@clisp.org>
33804
33805         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
33806
33807 2007-03-05  Bruno Haible  <bruno@clisp.org>
33808
33809         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
33810         NetBSD 4, from Ralf Wildenhues.
33811
33812 2007-03-04  Bruno Haible  <bruno@clisp.org>
33813
33814         * lib/vasprintf.h: Update #if logic for the case when the functions
33815         exist but are overridden.
33816
33817 2007-03-04  Bruno Haible  <bruno@clisp.org>
33818
33819         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
33820         implementations: glibc-2.4 and MacOS X 10.3.
33821         * tests/test-vasnprintf-posix.c (test_function): Test also the case
33822         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
33823         * tests/test-vasprintf-posix.c (test_function): Likewise.
33824
33825 2007-03-04  Bruno Haible  <bruno@clisp.org>
33826
33827         * modules/vasprintf-posix-tests: New file.
33828         * tests/test-vasprintf-posix.c: New file.
33829
33830         * modules/vasprintf-posix: New file.
33831         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
33832         defined.
33833         * m4/vasprintf-posix.m4: New file.
33834         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
33835         gl_FUNC_VASPRINTF.
33836         (gl_FUNC_VASPRINTF): Invoke it.
33837         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
33838         here.
33839         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
33840
33841 2007-03-04  Bruno Haible  <bruno@clisp.org>
33842
33843         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
33844         REPLACE_GETTIMEOFDAY.
33845         * modules/sys_time (Makefile.am): Likewise.
33846         * m4/sys_time_h.m4: Likewise.
33847         * m4/gettimeofday.m4: Likewise.
33848
33849 2007-03-04  Bruno Haible  <bruno@clisp.org>
33850
33851         * modules/vasnprintf-posix-tests: New file.
33852         * tests/test-vasnprintf-posix.c: New file.
33853
33854         * modules/vasnprintf-posix: New file.
33855         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
33856         printf-frexpl.h.
33857         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
33858         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
33859         REPLACE_VASNPRINTF is defined.
33860         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
33861         gl_FUNC_VASNPRINTF.
33862         (gl_FUNC_VASNPRINTF): Invoke it.
33863         * m4/vasnprintf-posix.m4: New file.
33864         * m4/printf.m4: New file.
33865
33866 2007-03-04  Bruno Haible  <bruno@clisp.org>
33867
33868         Compile progreloc.c only if --enable-relocatable is specified.
33869         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
33870         if --enable-relocatable was specified.
33871         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
33872         lib_SOURCES.
33873
33874 2007-03-04  Jim Meyering  <jim@meyering.net>
33875
33876         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
33877         Use it consistently, rather than enumerating errno constants.
33878
33879 2007-03-04  Bruno Haible  <bruno@clisp.org>
33880
33881         * modules/xvasprintf-tests: New file.
33882         * tests/test-xvasprintf.c: New file.
33883
33884         * modules/vasprintf-tests: New file.
33885         * tests/test-vasprintf.c: New file.
33886
33887         * modules/vasnprintf-tests: New file.
33888         * tests/test-vasnprintf.c: New file.
33889
33890         * modules/vsnprintf-tests: New file.
33891         * tests/test-vsnprintf.c: New file.
33892
33893         * modules/snprintf-tests: New file.
33894         * tests/test-snprintf.c: New file.
33895
33896 2007-03-04  Bruno Haible  <bruno@clisp.org>
33897
33898         Compile relocatable.c only if --enable-relocatable is specified.
33899         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
33900         gl_RELOCATABLE_LIBRARY.
33901         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
33902         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
33903         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
33904         gl_RELOCATABLE_LIBRARY.
33905         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
33906         (Makefile.am): Remove lib_SOURCES.
33907         * modules/relocatable-lib-lgpl (configure.ac): Invoke
33908         gl_RELOCATABLE_LIBRARY.
33909         (Makefile.am): Remove lib_SOURCES.
33910         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
33911         always.
33912         * modules/relocatable-prog-wrapper (configure.ac): Invoke
33913         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
33914
33915 2007-03-04  Bruno Haible  <bruno@clisp.org>
33916
33917         * modules/argmatch-tests: New file.
33918         * tests/test-argmatch.c: New file.
33919
33920         * tests/test-allocsa.c (main): Halve the number of loop runs.
33921
33922         * modules/alloca-opt-tests: New file.
33923         * tests/test-alloca-opt.c: New file.
33924
33925 2007-03-04  Jim Meyering  <jim@meyering.net>
33926
33927         Work around difference between Linux ACLs and Solaris 10 ZFS.
33928         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
33929         for EINVAL.
33930
33931 2007-03-03  Bruno Haible  <bruno@clisp.org>
33932
33933         * modules/relocatable-prog (Depends-on): Add back progreloc's
33934         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
33935
33936 2007-03-03  Bruno Haible  <bruno@clisp.org>
33937
33938         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
33939         * modules/relocatable-lib: New file.
33940
33941 2007-03-03  Bruno Haible  <bruno@clisp.org>
33942
33943         * modules/relocatable-prog: Renamed from modules/relocatable.
33944         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
33945
33946 2007-03-03  Bruno Haible  <bruno@clisp.org>
33947
33948         * modules/relocatable-script (Files): Add doc/relocatable.texi,
33949         m4/relocatable-lib.m4.
33950         (Depends-on): Remove 'relocatable'.
33951         (configure.ac): Add gl_RELOCATABLE_NOP.
33952
33953 2007-03-03  Bruno Haible  <bruno@clisp.org>
33954
33955         * modules/relocatable-prog-wrapper: New file.
33956         * modules/relocatable (Depends-on): Add it. Remove all other
33957         dependencies except progname.
33958         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
33959
33960         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
33961         (gl_FUNC_STRERROR): Nop.
33962         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
33963
33964         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
33965         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
33966
33967         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
33968         (gl_FUNC_READLINK): Update.
33969
33970         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
33971
33972 2007-03-03  Bruno Haible  <bruno@clisp.org>
33973
33974         * lib/xreadlink.c: Include <unistd.h> unconditionally.
33975         * modules/xreadlink (Depends-on): Add unistd.
33976         * modules/xreadlink-with-size (Depends-on): Likewise.
33977
33978 2007-03-03  Bruno Haible  <bruno@clisp.org>
33979
33980         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
33981         extracted from gt_FUNC_SETENV.
33982         (gt_FUNC_SETENV): Remove macro.
33983         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
33984         remove gt_FUNC_SETENV.
33985
33986 2007-03-03  Bruno Haible  <bruno@clisp.org>
33987
33988         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
33989         ENABLE_RELOCATABLE here.
33990         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
33991
33992 2007-03-03  Bruno Haible  <bruno@clisp.org>
33993
33994         * modules/rbtreehash-list-tests (Depends-on): Add progname.
33995         * tests/test-rbtreehash_list.c: Include progname.h.
33996         (main): Call set_program_name.
33997
33998         * modules/rbtree-oset-tests (Depends-on): Add progname.
33999         * tests/test-rbtree_oset.c: Include progname.h.
34000         (main): Call set_program_name.
34001
34002         * modules/rbtree-list-tests (Depends-on): Add progname.
34003         * tests/test-rbtree_list.c: Include progname.h.
34004         (main): Call set_program_name.
34005
34006         * modules/linked-list-tests (Depends-on): Add progname.
34007         * tests/test-linked_list.c: Include progname.h.
34008         (main): Call set_program_name.
34009
34010 2007-03-03  Bruno Haible  <bruno@clisp.org>
34011
34012         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
34013         All uses of __restrict changed to _Restrict_.
34014         * lib/glob_.h (__restrict): Remove macro.
34015
34016 2007-03-02  Bruno Haible  <bruno@clisp.org>
34017
34018         * modules/gettext (configure.ac): Require gettext infrastructure
34019         from version 0.16.1.
34020
34021 2007-03-02  Bruno Haible  <bruno@clisp.org>
34022
34023         * modules/linkedhash-list-tests (Depends-on): Add progname.
34024         * tests/test-linkedhash_list.c: Include progname.h.
34025         (main): Call set_program_name.
34026
34027         * modules/carray-list-tests (Depends-on): Add progname.
34028         * tests/test-carray_list.c: Include progname.h.
34029         (main): Call set_program_name.
34030
34031         * modules/avltreehash-list-tests (Depends-on): Add progname.
34032         * tests/test-avltreehash_list.c: Include progname.h.
34033         (main): Call set_program_name.
34034
34035         * modules/avltree-oset-tests (Depends-on): Add progname.
34036         * tests/test-avltree_oset.c: Include progname.h.
34037         (main): Call set_program_name.
34038
34039         * modules/avltree-list-tests (Depends-on): Add progname.
34040         * tests/test-avltree_list.c: Include progname.h.
34041         (main): Call set_program_name.
34042
34043         * modules/array-oset-tests (Depends-on): Add progname.
34044         * tests/test-array_oset.c: Include progname.h.
34045         (main): Call set_program_name.
34046
34047         * modules/array-list-tests (Depends-on): Add progname.
34048         * tests/test-array_list.c: Include progname.h.
34049         (main): Call set_program_name.
34050
34051         * modules/argp-tests (Depends-on): Add progname.
34052         * tests/test-argp.c: Include argp.h first. Include progname.h.
34053         (main): Call set_program_name.
34054
34055 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
34056
34057         * doc/gnulib-tool.texi (Initial import): Reword description of
34058         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
34059         limited effect even if defined after the first system include.
34060
34061 2007-03-01  Bruno Haible  <bruno@clisp.org>
34062
34063         * build-aux/config.libpath: Update to libtool-1.5.22.
34064         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34065
34066 2007-03-01  Bruno Haible  <bruno@clisp.org>
34067
34068         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
34069         foo_CFLAGS.
34070         Reported by Ralf Wildenhues.
34071
34072 2007-03-01  Bruno Haible  <bruno@clisp.org>
34073
34074         * build-aux/install-reloc: Remove object files left over by some
34075         compilers.
34076         Reported by Ralf Wildenhues.
34077
34078 2007-03-01  Bruno Haible  <bruno@clisp.org>
34079
34080         * build-aux/install-reloc: Break long lines.
34081
34082 2007-03-01  Bruno Haible  <bruno@clisp.org>
34083
34084         * doc/relocatable.texi: Document that it may not work on OpenBSD.
34085         Reported by Ralf Wildenhues.
34086
34087 2007-03-01  Bruno Haible  <bruno@clisp.org>
34088
34089         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
34090         include ordering constraints.
34091
34092 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
34093
34094         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
34095         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
34096         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
34097         as another example.
34098         * lib/time_.h: Fix misspelling.
34099         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
34100         Require gl_HEADER_TIME_H_DEFAULTS.
34101         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
34102         * m4/time_r.m4 (gl_TIME_R): Likewise.
34103         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
34104
34105 2007-03-01  Bruno Haible  <bruno@clisp.org>
34106
34107         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
34108         * m4/utimens.m4 (gl_UTIMENS): Likewise.
34109
34110 2007-03-01  Jim Meyering  <jim@meyering.net>
34111
34112         * modules/xreadlink (Maintainer): Add my name.
34113         * modules/xreadlink-with-size (Depends-on): Alphabetize.
34114
34115 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
34116             Bruno Haible  <bruno@clisp.org>
34117
34118         * build-aux/install-reloc: Compile also c-ctype.c.
34119         * build-aux/relocatable.sh.in: New file.
34120         * doc/relocatable.texi: New file.
34121         * doc/relocatable-maint.texi: New file.
34122         * doc/gnulib.texi: Include relocatable-maint.texi.
34123         * lib/progreloc.c: Include unistd.h unconditionally.
34124         * lib/relocwrapper.c: Include unistd.h unconditionally.
34125         Include c-ctype.h.
34126         (add_dotbin): Use c_tolower.
34127         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
34128         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
34129         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
34130         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
34131         to m4/relocatable-lib.m4.
34132         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
34133         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
34134         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
34135         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
34136         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
34137         * modules/relocatable: New file.
34138         * modules/relocatable-lib: New file.
34139         * modules/relocatable-script: New file.
34140
34141 2007-02-28  Bruno Haible  <bruno@clisp.org>
34142
34143         Import --enable-relocatable infrastructure.
34144         * build-aux/config.libpath: New file, from GNU gettext.
34145         * build-aux/install-reloc: New file, from GNU gettext.
34146         * build-aux/reloc-ldflags: New file, from GNU gettext.
34147         * lib/relocatable.h: New file, from GNU gettext.
34148         * lib/relocatable.c: New file, from GNU gettext.
34149         * lib/relocwrapper.c: New file, from GNU gettext.
34150         * m4/relocatable.m4: New file, from GNU gettext.
34151
34152 2007-02-28  Bruno Haible  <bruno@clisp.org>
34153
34154         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
34155
34156         * modules/xreadlink: New file, from GNU gettext with modifications.
34157         * lib/xreadlink.c: New file, from GNU gettext.
34158         * lib/xreadlink.h: Add comments.
34159         (xreadlink): New declaration.
34160
34161         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
34162         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
34163         lib/xreadlink-with-size.c.
34164         (configure.ac): Remove gl_XREADLINK invocation.
34165         (Makefile.am): Augment lib_SOURCES.
34166         * m4/xreadlink.m4: Remove file.
34167         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
34168         (xreadlink_with_size): Renamed from xreadink.
34169         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
34170         * modules/canonicalize (Depends-on): Replace xreadlink with
34171         xreadlink-with-size.
34172         * lib/canonicalize.c (canonicalize_filename_mode): Update.
34173
34174 2007-02-25  Jim Meyering  <jim@meyering.net>
34175
34176         * build-aux/announce-gen: When complaining about excess arguments,
34177         list them.
34178
34179 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
34180
34181         * README: Document signed integer overflow situation more
34182         accurately.
34183
34184 2007-02-25  Bruno Haible  <bruno@clisp.org>
34185
34186         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
34187         'a' or 'A' conversion.
34188
34189 2007-02-25  Bruno Haible  <bruno@clisp.org>
34190
34191         * modules/filename: Renamed from modules/pathname.
34192         (Files): Replace lib/pathname.h with lib/filename.h. Replace
34193         lib/concatpath.c with lib/concat-filename.c.
34194         (Makefile.am): Update.
34195         (Include): Replace pathname.h with filename.h.
34196         * lib/filename.h: Renamed from lib/pathname.h.
34197         (concatenated_filename): Renamed from concatenated_pathname.
34198         * lib/concat-filename.c: Renamed from lib/concatpath.c.
34199         (concatenated_filename): Renamed from concatenated_pathname.
34200         * lib/findprog.c: Include filename.h instead of pathname.h.
34201         (find_in_path): Update.
34202         * lib/javacomp.c: Include filename.h instead of pathname.h.
34203         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
34204         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
34205         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
34206         is_oldgcj_14_13_usable, is_javac_usable): Update.
34207         * lib/javaexec.c: Include filename.h instead of pathname.h.
34208         (execute_java_class): Update.
34209         * modules/findprog: Update.
34210         * modules/javacomp: Update.
34211         * modules/javaexec: Update.
34212         * MODULES.html.sh (File system functions): Add 'filename', remove
34213         'pathname'.
34214
34215 2007-02-25  Bruno Haible  <bruno@clisp.org>
34216
34217         * modules/printf-frexpl-tests: New file.
34218         * tests/test-printf-frexpl.c: New file.
34219
34220         * modules/printf-frexpl: New file.
34221         * lib/printf-frexpl.h: New file.
34222         * lib/printf-frexpl.c: New file.
34223         * m4/printf-frexpl.m4: New file.
34224
34225 2007-02-25  Bruno Haible  <bruno@clisp.org>
34226
34227         * modules/printf-frexp-tests: New file.
34228         * tests/test-printf-frexp.c: New file.
34229
34230         * modules/printf-frexp: New file.
34231         * lib/printf-frexp.h: New file.
34232         * lib/printf-frexp.c: New file.
34233         * m4/printf-frexp.m4: New file.
34234
34235 2007-02-25  Bruno Haible  <bruno@clisp.org>
34236
34237         Assume automake >= 1.10 for the tests.
34238         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
34239         * modules/arctwo-tests: Likewise.
34240         * modules/argp-tests: Likewise.
34241         * modules/avltree-list-tests: Likewise.
34242         * modules/avltree-oset-tests: Likewise.
34243         * modules/avltreehash-list-tests: Likewise.
34244         * modules/carray-list-tests: Likewise.
34245         * modules/crc-tests: Likewise.
34246         * modules/des-tests: Likewise.
34247         * modules/gc-arcfour-tests: Likewise.
34248         * modules/gc-arctwo-tests: Likewise.
34249         * modules/gc-des-tests: Likewise.
34250         * modules/gc-hmac-md5-tests: Likewise.
34251         * modules/gc-hmac-sha1-tests: Likewise.
34252         * modules/gc-md2-tests: Likewise.
34253         * modules/gc-md4-tests: Likewise.
34254         * modules/gc-md5-tests: Likewise.
34255         * modules/gc-pbkdf2-sha1-tests: Likewise.
34256         * modules/gc-rijndael-tests: Likewise.
34257         * modules/gc-sha1-tests: Likewise.
34258         * modules/gc-tests: Likewise.
34259         * modules/getaddrinfo-tests: Likewise.
34260         * modules/hmac-md5-tests: Likewise.
34261         * modules/hmac-sha1-tests: Likewise.
34262         * modules/linked-list-tests: Likewise.
34263         * modules/linkedhash-list-tests: Likewise.
34264         * modules/lock-tests: Likewise.
34265         * modules/md2-tests: Likewise.
34266         * modules/md4-tests: Likewise.
34267         * modules/md5-tests: Likewise.
34268         * modules/rbtree-list-tests: Likewise.
34269         * modules/rbtree-oset-tests: Likewise.
34270         * modules/rbtreehash-list-tests: Likewise.
34271         * modules/read-file-tests: Likewise.
34272         * modules/rijndael-tests: Likewise.
34273         * modules/stdint-tests: Likewise.
34274         * modules/tls-tests: Likewise.
34275
34276 2007-02-24  Bruno Haible  <bruno@clisp.org>
34277
34278         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
34279         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
34280         function; instead check whether isnan with a double argument links.
34281         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
34282         function; instead check whether isnan with a 'long double' argument
34283         links.
34284         Reported by Eric Blake <ebb9@byu.net>.
34285
34286 2007-02-24  Bruno Haible  <bruno@clisp.org>
34287
34288         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
34289         defined.
34290         * lib/isnanl.c: Remove all code. Just include isnan.c.
34291         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
34292
34293 2007-02-25  Jim Meyering  <jim@meyering.net>
34294
34295         Avoid conflicting types for 'unsetenv' on FreeBSD.
34296         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
34297         conflicting with FreeBSD's (5.0 and 6.1) function declaration
34298         in stdlib.h.
34299
34300 2007-02-24  Bruno Haible  <bruno@clisp.org>
34301
34302         * modules/isnanl-nolibm-tests: New file.
34303         * tests/test-isnanl.c: New file.
34304
34305         * modules/isnanl-nolibm: New file.
34306         * lib/isnanl.h: New file.
34307         * lib/isnanl.c: New file.
34308         * m4/isnanl.m4: New file.
34309
34310 2007-02-24  Bruno Haible  <bruno@clisp.org>
34311
34312         * modules/isnan-nolibm-tests: New file.
34313         * tests/test-isnan.c: New file.
34314
34315         * modules/isnan-nolibm: New file.
34316         * lib/isnan.h: New file.
34317         * lib/isnan.c: New file.
34318         * m4/isnan.m4: New file.
34319
34320 2007-02-24  Bruno Haible  <bruno@clisp.org>
34321
34322         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
34323         assume that an exponent fits in 20 bits.
34324
34325 2007-02-24  Jim Meyering  <jim@meyering.net>
34326
34327         * m4/regex.m4: Update the description of the configure-time option,
34328         --without-included-regex, to state accurately what the defaults are,
34329         and perhaps to give people an idea why using this option is risky.
34330
34331 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
34332
34333         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
34334         loops on small arguments.  This attempts to avoid the problem
34335         Bruno Haible reported for AIX 4.3.2 in
34336         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
34337
34338 2007-02-23  Bruno Haible  <bruno@clisp.org>
34339
34340         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
34341         Needed for help2man.
34342
34343 2007-02-23  Karl Berry  <karl@gnu.org>
34344
34345         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
34346         exists, foo.h should be cvs-ignored, not committed.
34347
34348 2007-02-23  Eric Blake  <ebb9@byu.net>
34349
34350         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
34351         * lib/stat-time.h (includes): Likewise.
34352         * lib/utimecmp.c (includes): Likewise.
34353         * lib/utimens.h (includes): Likewise.
34354         * lib/getdate.y (includes): Also include "timespec.h" for use
34355         internal to the module.
34356         * modules/utimens (Depends-on): Revert yesterday's patch.
34357         * modules/nanosleep (Depends-on): Add missing dependency.
34358
34359 2007-02-22  Bruno Haible  <bruno@clisp.org>
34360
34361         * lib/glob.c: Don't include getlogin_r.h.
34362
34363 2007-02-22  Jim Meyering  <jim@meyering.net>
34364
34365         * modules/utimens (Depends-on): Add timespec, required for
34366         utimens.h's inclusion of timespec.h.
34367
34368 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
34369
34370         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
34371         long unreadable paths in GNU/Linux.  Problem reported by Andreas
34372         Schwab in
34373         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
34374         I'll try to think of a better way to fix the Solaris problem.
34375
34376         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
34377         like glibc; on Solaris 10, it fails with errno == EINVAL.
34378         POSIX says the behavior is unspecified if the first argument is NULL,
34379         so play it safe and never pass NULL to the system getcwd.
34380
34381 2007-02-21  Jim Meyering  <jim@meyering.net>
34382
34383         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
34384         of gettimeofday.  It would conflict with the one now always
34385         provided via sys_time_.h.  Reported by Matthew Woehlke, as
34386         an IRIX 6.5 build failure.
34387
34388 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
34389
34390         Minor fixups to port to Solaris 10 with Sun C 5.8.
34391         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
34392         * modules/getcwd (Depends-on): Add dirfd.
34393         * lib/putenv.c (putenv): #undef it.
34394         (rpl_putenv): New decl.
34395         (malloc, free): Include <stdlib.h> rather than prototyping separately.
34396
34397 2007-02-20  Bruno Haible  <bruno@clisp.org>
34398
34399         * modules/stdio-tests: New file.
34400         * tests/test-stdio.c: New file.
34401
34402         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
34403         (Depends-on): Add stdio.
34404         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34405         (Include): Use <stdio.h> instead of vsnprintf.h.
34406         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
34407         HAVE_DECL_VSNPRINTF.
34408         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
34409
34410         * modules/snprintf (Files): Remove lib/snprintf.h.
34411         (Depends-on): Add stdio.
34412         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34413         (Include): Use <stdio.h> instead of snprintf.h.
34414         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
34415         HAVE_DECL_SNPRINTF.
34416         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
34417         * lib/getaddrinfo.c: Likewise.
34418
34419         * modules/stdio: New file.
34420         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
34421         * lib/snprintf.h: Remove file.
34422         * lib/vsnprintf.h: Remove file.
34423         * lib/.cppi-disable: Remove snprintf.h.
34424         * m4/stdio_h.m4: New file.
34425         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
34426
34427 2007-02-20  Jim Meyering  <jim@meyering.net>
34428
34429         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
34430         used by e.g., mingw.  From Bruno Haible.
34431
34432 2007-02-19  Bruno Haible  <bruno@clisp.org>
34433
34434         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
34435         warnings.
34436         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34437
34438 2007-02-19  Bruno Haible  <bruno@clisp.org>
34439
34440         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
34441         from mingw users.
34442
34443 2007-02-19  Bruno Haible  <bruno@clisp.org>
34444
34445         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
34446         warnings.
34447         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
34448
34449 2007-02-19  Jim Meyering  <jim@meyering.net>
34450
34451         Don't use FD after a successful "fdopendir (fd)".
34452         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
34453         Reset it by calling dirfd on the just-obtained DIR*.
34454
34455         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
34456         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
34457
34458 2007-02-18  Bruno Haible  <bruno@clisp.org>
34459
34460         * lib/readlink.c: Include <unistd.h>.
34461         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
34462         HAVE_READLINK.
34463         * modules/readlink (Depends-on): Add unistd.
34464         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34465         (Include): Add <unistd.h>.
34466
34467         * lib/getlogin_r.h: Remove file.
34468         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
34469         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
34470         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
34471         HAVE_DECL_GETLOGIN_R.
34472         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
34473         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34474         (Include): Use <unistd.h> instead of getlogin_r.h.
34475
34476         * lib/getcwd.h: Remove file.
34477         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
34478         * lib/xgetcwd.c: Likewise.
34479         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
34480         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
34481         * modules/getcwd (Files): Remove lib/getcwd.h.
34482         (Depends-on): Add unistd.
34483         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34484         (Include): Use <unistd.h> instad of getcwd.h.
34485
34486         * lib/ftruncate.c: Include <unistd.h> first.
34487         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
34488         Set HAVE_FTRUNCATE.
34489         * modules/ftruncate (Depends-on): Add unistd.
34490         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34491
34492         * lib/fchdir.c: Include <unistd.h> first.
34493         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
34494         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
34495         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
34496         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34497         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
34498
34499         * lib/dup2.c: Include <unistd.h> first.
34500         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
34501         HAVE_DUP2.
34502         * modules/dup2 (Depends-on): Add unistd.
34503         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34504
34505         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
34506         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
34507         REPLACE_CHOWN. Don't define chown as a macro here.
34508         * modules/chown (Depends-on): Add unistd.
34509         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34510
34511         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
34512         Add definition for GL_LINK_WARNING.
34513         (chown, dup2): New declarations.
34514         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
34515         link warning.
34516         (ftruncate): New declaration.
34517         (getcwd): New declaration, taken from old getcwd.h.
34518         (getlogin_r): New declaration, taken from old getlogin_r.h.
34519         (readlink): New declaration.
34520         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
34521         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
34522         (gl_PREREQ_UNISTD): Remove macro.
34523         (gl_UNISTD_MODULE_INDICATOR): New macro.
34524         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
34525         many new variables. Don't set UNISTD_H.
34526         * modules/unistd (Description): Change.
34527         (Depends-on): Add link-warning.
34528         (configure.ac): Update.
34529         (Makefile.am): Create unistd.h always. Substitute many new variables
34530         into it.
34531
34532 2007-02-18  Bruno Haible  <bruno@clisp.org>
34533
34534         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
34535         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
34536         HAVE_GETSUBOPT.
34537         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
34538         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
34539         * lib/getsubopt.h: Remove file.
34540         * modules/getsubopt (Files): Remove lib/getsubopt.h.
34541         (Depends-on): Add stdlib.
34542         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34543         (Includes): Use <stdlib.h> instead of getsubopt.h.
34544         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
34545         Set HAVE_GETSUBOPT.
34546         * lib/getsubopt.c: Don't include getsubopt.h.
34547
34548 2007-02-18  Bruno Haible  <bruno@clisp.org>
34549
34550         * modules/fchdir (Depends-on): Add dup2.
34551
34552 2007-02-18  Bruno Haible  <bruno@clisp.org>
34553
34554         * lib/stdlib_.h: Handle glibc's special invocation convention
34555         specially.
34556
34557 2007-02-18  Bruno Haible  <bruno@clisp.org>
34558
34559         * modules/stdlib-tests: New file.
34560         * tests/test-stdlib.c: New file.
34561
34562         * modules/mkstemp (Files): Remove lib/mkstemp.h.
34563         (Depends-on): Add stdlib.
34564         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34565         (Includes): Use <stdlib.h> instead of mkstemp.h.
34566         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
34567         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
34568         * lib/mkstemp.c: Don't include mkstemp.h.
34569         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
34570         * lib/stdlib--.h: Don't include mkstemp.h.
34571
34572         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
34573         (Depends-on): Add stdlib.
34574         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34575         (Includes): Use <stdlib.h> instead of mkdtemp.h.
34576         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
34577         HAVE_MKDTEMP.
34578         * lib/mkdtemp.c: Don't include mkdtemp.h.
34579         * lib/clean-temp.c: Don't include mkdtemp.h.
34580
34581         * modules/exit (Files): Remove lib/exit.h.
34582         (Depends-on): Add stdlib.
34583         (Makefile.am): Remove lib_SOURCES.
34584         (Include): Use <stdlib.h> instead of exit.h.
34585         * lib/argmatch.c: Don't include exit.h.
34586         * lib/execute.c: Likewise.
34587         * lib/pagealign_alloc.c: Likewise.
34588         * lib/pipe.c: Likewise.
34589         * lib/wait-process.c: Likewise.
34590         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
34591         * lib/exitfail.c: Likewise.
34592         * lib/savewd.c: Likewise.
34593         * lib/xsetenv.c: Likewise.
34594
34595         * modules/stdlib: New file.
34596         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
34597         and extra comments about mkstemp().
34598         * lib/exit.h: Remove file.
34599         * lib/mkdtemp.h: Remove file.
34600         * lib/mkstemp.h: Remove file.
34601         * m4/stdlib_h.m4: New file.
34602         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
34603
34604 2007-02-18  Bruno Haible  <bruno@clisp.org>
34605
34606         * modules/math-tests: New file.
34607         * tests/test-math.c: New file.
34608
34609         * modules/math: New file.
34610         * modules/mathl (Files): Remove lib/mathl.h.
34611         (Depends-on): Add math.
34612         (Makefile.am): Don't mention mathl.h.
34613         (Include): Use <math.h> instead of mathl.h.
34614         * lib/math_.h: New file.
34615         * lib/mathl.h: Remove file.
34616         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
34617         mathl.h.
34618         * lib/asinl.c: Likewise.
34619         * lib/atanl.c: Likewise.
34620         * lib/ceill.c: Likewise.
34621         * lib/cosl.c: Likewise.
34622         * lib/expl.c: Likewise.
34623         * lib/floorl.c: Likewise.
34624         * lib/frexpl.c: Likewise.
34625         * lib/ldexpl.c: Likewise.
34626         * lib/logl.c: Likewise.
34627         * lib/sincosl.c: Likewise.
34628         * lib/sinl.c: Likewise.
34629         * lib/sqrtl.c: Likewise.
34630         * lib/tanl.c: Likewise.
34631         * lib/trigl.c: Likewise.
34632         * m4/math_h.m4: New file.
34633         * MODULES.html.sh (Mathematics): Add math.
34634
34635 2007-02-17  Bruno Haible  <bruno@clisp.org>
34636
34637         * modules/wctype-tests: New file.
34638         * tests/test-wctype.c: New file.
34639
34640         * modules/wchar-tests: New file.
34641         * tests/test-wchar.c: New file.
34642
34643         * modules/unistd-tests: New file.
34644         * tests/test-unistd.c: New file.
34645
34646         * modules/time-tests: New file.
34647         * tests/test-time.c: New file.
34648
34649         * modules/sysexits-tests: New file.
34650         * tests/test-sysexits.c: New file.
34651
34652         * modules/sys_time-tests: New file.
34653         * tests/test-sys_time.c: New file.
34654
34655         * modules/sys_stat-tests: New file.
34656         * tests/test-sys_stat.c: New file.
34657
34658         * modules/sys_socket-tests: New file.
34659         * tests/test-sys_socket.c: New file.
34660
34661         * modules/sys_select-tests: New file.
34662         * tests/test-sys_select.c: New file.
34663
34664         * modules/string-tests: New file.
34665         * tests/test-string.c: New file.
34666
34667         * modules/stdbool-tests: New file.
34668         * tests/test-stdbool.c: New file.
34669
34670         * modules/netinet_in-tests: New file.
34671         * tests/test-netinet_in.c: New file.
34672
34673         * modules/inttypes-tests: New file.
34674         * tests/test-inttypes.c: New file.
34675
34676         * modules/fcntl-tests: New file.
34677         * tests/test-fcntl.c: New file.
34678
34679         * modules/byteswap-tests: New file.
34680         * tests/test-byteswap.c: New file.
34681
34682         * modules/arpa_inet-tests: New file.
34683         * tests/test-arpa_inet.c: New file.
34684
34685 2007-02-17  Bruno Haible  <bruno@clisp.org>
34686
34687         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
34688         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
34689         if the corresponding module is not enabled. Emit link warnings if
34690         the function is used nevertheless.
34691         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
34692         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
34693         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
34694         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
34695         * modules/inttypes (Depends-on): Add link-warning.
34696         (Makefile.am): Copy the contents of build-aux/link-warning.h into
34697         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
34698         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
34699         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
34700         * modules/imaxdiv (configure.ac): Likewise.
34701         * modules/strtoimax (configure.ac): Likewise.
34702         * modules/strtoumax (configure.ac): Likewise.
34703
34704 2007-02-17  Bruno Haible  <bruno@clisp.org>
34705
34706         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
34707         gl_STRING_MODULE_INDICATOR_DEFAULTS.
34708         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
34709         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
34710
34711 2007-02-17  Bruno Haible  <bruno@clisp.org>
34712
34713         * modules/link-warning: New file.
34714         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
34715         * lib/string_.h (GL_LINK_WARNING): Remove definition.
34716         * modules/string (Depends-on): Add link-warning.
34717         (Makefile.am): Copy the contents of build-aux/link-warning.h into
34718         string.h.
34719         * MODULES.html.sh (Support for building libraries and executables): Add
34720         link-warning.
34721
34722 2007-02-17  Bruno Haible  <bruno@clisp.org>
34723
34724         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
34725         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
34726         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
34727         long lines.
34728
34729 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
34730             Bruno Haible  <bruno@clisp.org>
34731
34732         * modules/tmpfile: New file.
34733         * lib/tmpfile.c: New file.
34734         * m4/tmpfile.m4: New file.
34735         * MODULES.html.sh (func_all_modules): New section "Input/output".
34736
34737 2007-02-15  Bruno Haible  <bruno@clisp.org>
34738
34739         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
34740         (supports_delete_on_close): New function.
34741         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
34742
34743 2007-02-14  Bruno Haible  <bruno@clisp.org>
34744
34745         * modules/mbspcasecmp-tests: New file.
34746         * tests/test-mbspcasecmp.sh: New file.
34747         * tests/test-mbspcasecmp.c: New file.
34748
34749         New module mbspcasecmp.
34750         * modules/mbspcasecmp: New file.
34751         * lib/mbspcasecmp.c: New file.
34752         * lib/string_.h (strncasecmp): Change warning message.
34753         (mbspcasecmp): New declaration.
34754         * m4/mbspcasecmp.m4: New file.
34755         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34756         GNULIB_MBSPCASECMP.
34757         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
34758         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
34759
34760 2007-02-14  Bruno Haible  <bruno@clisp.org>
34761
34762         * modules/mbsncasecmp-tests: New file.
34763         * tests/test-mbsncasecmp.sh: New file.
34764         * tests/test-mbsncasecmp.c: New file.
34765
34766         New module mbsncasecmp.
34767         * modules/mbsncasecmp: New file.
34768         * lib/mbsncasecmp.c: New file.
34769         * lib/string_.h (mbsncasecmp): New declaration.
34770         * m4/mbsncasecmp.m4: New file.
34771         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34772         GNULIB_MBSNCASECMP.
34773         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
34774         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
34775
34776 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
34777
34778         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
34779         Verify that it doesn't overlap with our flags.
34780         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
34781         do not have the desired effect in multibyte locales; instead, use
34782         mbscasecmp.
34783         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
34784         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
34785         we don't require GNU fnmatch ourselves (if our users require it, they
34786         should do so explicitly).
34787
34788         Fix regex code so it doesn't rely on strcasecmp.
34789         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
34790         Otherwise, include gnulib's langinfo.h.
34791         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
34792         undesirable behavior in non-C locales.  Instead, rely on localecharset.
34793         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
34794         * modules/regex (FILES): Remove m4/codeset.m4.
34795         (Depends-on): Add localcharset.  Remove strcase.
34796
34797 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34798
34799         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
34800         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
34801
34802 2007-02-13  Bruno Haible  <bruno@clisp.org>
34803
34804         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
34805         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34806
34807 2007-02-12  Bruno Haible  <bruno@clisp.org>
34808
34809         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
34810         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
34811         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
34812         time warning rather than a link error.
34813
34814 2007-02-12  Bruno Haible  <bruno@clisp.org>
34815
34816         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
34817         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34818         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34819
34820 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
34821
34822         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
34823         args, not 2.
34824
34825 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
34826
34827         New module 'time', so that apps can include <time.h> as per
34828         POSIX and GNU instead of separate include files like time_r.h
34829         and timegm.h.  This implementation tries out a simpler approach
34830         for replacing decls in standard include files (as compared to
34831         the string module), somewhat as an experiment.
34832
34833         * config/srclist.txt: Comment out mktime.c for now.
34834         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
34835         since it doesn't apply any more.  Use generic wording instead.
34836         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
34837         'time'.
34838         * lib/time_.h, m4/time_h.m4, modules/time: New files.
34839         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
34840         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
34841         Don't include <sys/types.h>; no longer needed since we assume C89.
34842         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
34843         * lib/strftime.c: Likewise.
34844         * lib/time_r.c: Likewise.
34845         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
34846         * lib/nanosleep.c: Include <time.h> first, to check interface.
34847         * lib/strptime.c: Likewise.
34848         * lib/time_r.c: Likewise.
34849         * lib/timegm.c: Likewise.
34850         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
34851         needed.
34852         * lib/timegm.c: Don't include timegm.h; no longer needed.
34853         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
34854         time.h now handles any problems in that area.
34855         (struct timespec, nanosleep): Remove; time.h now arranges for these.
34856         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
34857         that time.h defines struct timespec.
34858         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
34859         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
34860         handles that.
34861         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
34862         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
34863         needed.  Set REPLACE_LOCALTIME.
34864         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
34865         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
34866         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
34867         nanosleep; time_h.m4 now does that.  Don't require
34868         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
34869         module handles this now.
34870         * modules/getdate (Depends-on): Remove timespec.  Add time.
34871         * modules/nanosleep (Depends-on): Likewise.
34872         * modules/stat-time (Depends-on): Likewise.
34873         * modules/nanosleep (Include): Include time.h, not timespec.h.
34874         * modules/strptime (Files): Remove lib/strptime.h.
34875         (Depends-on): Add extensions, time.
34876         (Include): Include time.h, not strptime.h.
34877         * modules/time_r (Files): Remove lib/time_r.h.
34878         (Depends-on): Add time.
34879         (Include): Include time.h, not time_r.h.
34880         * modules/timegm: Likewise.
34881         * modules/timespec (Description): Now does timespec-related decls
34882         of our own, instead of struct timespec itself.
34883         (Depends-on): Add time; remove extensions.
34884         (Maintainer): Add self.
34885         * modules/utimecmp (Depends-on): Add time; remove timespec.
34886         * modules/utimens (Depends-on): Likewise.
34887         * modules/xnanosleep (Depends-on): Likewise.
34888
34889 2007-02-11  Bruno Haible  <bruno@clisp.org>
34890
34891         * lib/c-strstr.c: Include allocsa.h.
34892         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34893         * lib/c-strcasestr.c: Include allocsa.h.
34894         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34895         * lib/strcasestr.c: Include allocsa.h.
34896         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34897         * lib/mbsstr.c: Include allocsa.h.
34898         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
34899         allocsa/freesa instead of malloc/free.
34900         * lib/mbscasestr.c: Include allocsa.h.
34901         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
34902         allocsa/freesa instead of malloc/free.
34903         * modules/c-strstr (Depends-on): Add allocsa.
34904         * modules/c-strcasestr (Depends-on): Likewise.
34905         * modules/strcasestr (Depends-on): Likewise.
34906         * modules/mbsstr (Depends-on): Likewise.
34907         * modules/mbscasestr (Depends-on): Likewise.
34908
34909 2007-02-11  Bruno Haible  <bruno@clisp.org>
34910
34911         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
34912
34913         * modules/mbsspn-tests: New file.
34914         * tests/test-mbsspn.sh: New file.
34915         * tests/test-mbsspn.c: New file.
34916
34917 2007-02-11  Bruno Haible  <bruno@clisp.org>
34918
34919         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
34920
34921         * modules/mbspbrk-tests: New file.
34922         * tests/test-mbspbrk.sh: New file.
34923         * tests/test-mbspbrk.c: New file.
34924
34925 2007-02-11  Bruno Haible  <bruno@clisp.org>
34926
34927         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
34928         unneeded cast.
34929
34930         * modules/mbscspn-tests: New file.
34931         * tests/test-mbscspn.sh: New file.
34932         * tests/test-mbscspn.c: New file.
34933
34934 2007-02-11  Bruno Haible  <bruno@clisp.org>
34935
34936         * modules/mbscasecmp-tests: New file.
34937         * tests/test-mbscasecmp.sh: New file.
34938         * tests/test-mbscasecmp.c: New file.
34939
34940 2007-02-11  Bruno Haible  <bruno@clisp.org>
34941
34942         Ensure O(n) worst-case complexity of mbscasestr.
34943         * lib/mbscasestr.c: Include stdbool.h.
34944         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
34945         functions.
34946         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
34947         the bookkeeping indicates that it's worth it.
34948         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
34949
34950         * modules/mbscasestr-tests: New file.
34951         * tests/test-mbscasestr1.c: New file.
34952         * tests/test-mbscasestr2.sh: New file.
34953         * tests/test-mbscasestr2.c: New file.
34954         * tests/test-mbscasestr3.sh: New file.
34955         * tests/test-mbscasestr3.c: New file.
34956         * tests/test-mbscasestr4.sh: New file.
34957         * tests/test-mbscasestr4.c: New file.
34958         * m4/locale-tr.m4: New file.
34959
34960 2007-02-11  Bruno Haible  <bruno@clisp.org>
34961
34962         Ensure O(n) worst-case complexity of mbsstr.
34963         * lib/mbsstr.c: Include stdbool.h.
34964         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
34965         functions.
34966         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
34967         bookkeeping indicates that it's worth it.
34968         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
34969
34970         * modules/mbsstr-tests: New file.
34971         * tests/test-mbsstr1.c: New file.
34972         * tests/test-mbsstr2.sh: New file.
34973         * tests/test-mbsstr2.c: New file.
34974         * tests/test-mbsstr3.sh: New file.
34975         * tests/test-mbsstr3.c: New file.
34976         * m4/locale-fr.m4: New file.
34977
34978 2007-02-11  Bruno Haible  <bruno@clisp.org>
34979
34980         * lib/mbsrchr.c (mbsrchr): Fix bug.
34981
34982         * modules/mbsrchr-tests: New file.
34983         * tests/test-mbsrchr.sh: New file.
34984         * tests/test-mbsrchr.c: New file.
34985
34986 2007-02-11  Bruno Haible  <bruno@clisp.org>
34987
34988         * lib/mbschr.c (mbschr): Fix bug.
34989
34990         * modules/mbschr-tests: New file.
34991         * tests/test-mbschr.sh: New file.
34992         * tests/test-mbschr.c: New file.
34993         * m4/locale-zh.m4: New file.
34994
34995 2007-02-11  Bruno Haible  <bruno@clisp.org>
34996
34997         Support for copying multibyte string iterators.
34998         * lib/mbiter.h: Include <string.h>.
34999         (mbiter_multi_copy): New function.
35000         (mbi_copy): New macro.
35001         * lib/mbuiter.h: Include <string.h>.
35002         (mbuiter_multi_copy): New function.
35003         (mbui_copy): New macro.
35004
35005 2007-02-11  Bruno Haible  <bruno@clisp.org>
35006
35007         New module mbslen.
35008         * modules/mbslen: New file.
35009         * lib/mbslen.c: New file.
35010         * lib/string_.h (mbslen): New declaration.
35011         * m4/mbslen.m4: New file.
35012         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35013         GNULIB_MBSLEN.
35014         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
35015         * MODULES.html.sh (Internationalization functions): Add mbslen.
35016
35017 2007-02-11  Bruno Haible  <bruno@clisp.org>
35018
35019         Ensure O(n) worst-case complexity of strcasestr substitute.
35020         * lib/strcasestr.c: Include stdbool.h.
35021         (knuth_morris_pratt): New function.
35022         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
35023         bookkeeping indicates that it's worth it.
35024         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
35025
35026         * modules/strcasestr-tests: New file.
35027         * tests/test-strcasestr.c: New file.
35028
35029 2007-02-11  Bruno Haible  <bruno@clisp.org>
35030
35031         Ensure O(n) worst-case complexity of c_strcasestr.
35032         * lib/c-strcasestr.c: Include stdbool.h, string.h.
35033         (knuth_morris_pratt): New function.
35034         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
35035         the bookkeeping indicates that it's worth it.
35036         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
35037
35038         * modules/c-strcasestr-tests: New file.
35039         * tests/test-c-strcasestr.c: New file.
35040
35041 2007-02-11  Bruno Haible  <bruno@clisp.org>
35042
35043         Ensure O(n) worst-case complexity of c_strstr.
35044         * lib/c-strstr.c: Include stdbool.h, string.h.
35045         (knuth_morris_pratt): New function.
35046         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
35047         bookkeeping indicates that it's worth it.
35048         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
35049
35050         * lib/c-strstr.c: Complete rewrite for maintainability.
35051
35052         * modules/c-strstr-tests: New file.
35053         * tests/test-c-strstr.c: New file.
35054
35055 2007-02-11  Bruno Haible  <bruno@clisp.org>
35056
35057         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
35058         5.2.1 and earlier, whereby \055 was treated just like the range
35059         delimiter '-'.
35060         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
35061
35062 2007-02-08  Bruno Haible  <bruno@clisp.org>
35063
35064         * modules/regex (Depends-on): Add stdbool.
35065         Reported by Dalibor Topic <robilad@kaffe.org>.
35066
35067 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
35068
35069         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
35070         Prefer returning from main to exiting from it.
35071         Remove unnecessary parens after sizeof.
35072
35073 2007-02-05  Bruno Haible  <bruno@clisp.org>
35074
35075         New module mbssep.
35076         * modules/mbssep: New file.
35077         * lib/mbssep.c: New file.
35078         * lib/string_.h (strsep): Add a conditional link warning.
35079         (mbssep): New declaration.
35080         * m4/mbssep.m4: New file.
35081         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35082         GNULIB_MBSSEP.
35083         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
35084         * MODULES.html.sh (Internationalization functions): Add mbssep.
35085
35086 2007-02-05  Bruno Haible  <bruno@clisp.org>
35087
35088         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
35089         Optimize search in case of 1 delimiter.
35090
35091 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
35092
35093         * lib/acl.h: Include sys/types.h before sys/acl.h.
35094
35095 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
35096
35097         Merge upstream fix for glibc bugzilla #3957:
35098
35099         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
35100
35101         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
35102         bit for RE_HAT_LISTS_NOT_NEWLINE.
35103         (build_charclass_op): Remove bogus comment.
35104
35105 2007-02-05  Simon Josefsson  <simon@josefsson.org>
35106
35107         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
35108
35109 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
35110
35111         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
35112         * lib/memmem.c [!defined _LIBC]: Include config.h.
35113
35114 2007-02-04  Bruno Haible  <bruno@clisp.org>
35115
35116         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
35117         warning message.
35118
35119 2007-02-04  Bruno Haible  <bruno@clisp.org>
35120
35121         New module mbstok_r.
35122         * modules/mbstok_r: New file.
35123         * lib/mbstok_r.c: New file.
35124         * lib/string_.h (strtok_r): Change argument names to match the
35125         comments. Add a conditional link warning.
35126         (mbstok_r): New declaration.
35127         * m4/mbstok_r.m4: New file.
35128         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35129         GNULIB_MBSTOK_R.
35130         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
35131         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
35132
35133 2007-02-04  Bruno Haible  <bruno@clisp.org>
35134
35135         New module mbsspn.
35136         * modules/mbsspn: New file.
35137         * lib/mbsspn.c: New file.
35138         * lib/string_.h (strspn): Add a conditional link warning.
35139         (mbsspn): New declaration.
35140         * m4/mbsspn.m4: New file.
35141         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35142         GNULIB_MBSSPN.
35143         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
35144         * MODULES.html.sh (Internationalization functions): Add mbsspn.
35145
35146 2007-02-04  Bruno Haible  <bruno@clisp.org>
35147
35148         New module mbspbrk.
35149         * modules/mbspbrk: New file.
35150         * lib/mbspbrk.c: New file.
35151         * lib/string_.h (strpbrk): Add a conditional link warning.
35152         (mbspbrk): New declaration.
35153         * m4/mbspbrk.m4: New file.
35154         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35155         GNULIB_MBSPBRK.
35156         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
35157         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
35158
35159 2007-02-04  Bruno Haible  <bruno@clisp.org>
35160
35161         New module mbscspn.
35162         * modules/mbscspn: New file.
35163         * lib/mbscspn.c: New file.
35164         * lib/string_.h (strcspn): Add a conditional link warning.
35165         (mbscspn): New declaration.
35166         * m4/mbscspn.m4: New file.
35167         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35168         GNULIB_MBSCSPN.
35169         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
35170         * MODULES.html.sh (Internationalization functions): Add mbscspn.
35171
35172 2007-02-04  Bruno Haible  <bruno@clisp.org>
35173
35174         New module mbscasestr, reduced goal of strcasestr.
35175         * modules/mbscasestr: New file.
35176         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
35177         (mbscasestr): Renamed from strcasestr.
35178         * lib/strcasestr.c: Don't include mbuiter.h.
35179         (strcasestr): Remove support for multibyte locales.
35180         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
35181         Change the conditional link warning.
35182         (mbscasestr): New declaration.
35183         * m4/mbscasestr.m4: New file.
35184         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
35185         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
35186         REPLACE_STRCASESTR.
35187         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
35188         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35189         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
35190         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
35191         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
35192         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
35193         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
35194         (Depends-on): Remove mbuiter.
35195         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
35196
35197 2007-02-04  Bruno Haible  <bruno@clisp.org>
35198
35199         Simplify handling of strncasecmp.
35200         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
35201         the conditional link warning.
35202         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35203         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
35204         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
35205         * modules/strcase (configure.ac): Don't invoke
35206         gl_STRING_MODULE_INDICATOR.
35207         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
35208
35209 2007-02-04  Bruno Haible  <bruno@clisp.org>
35210
35211         New module mbscasecmp, reduced goal of strcasecmp.
35212         * modules/mbscasecmp: New file.
35213         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
35214         (mbscasecmp): Renamed from strcasecmp.
35215         * lib/strcasecmp.c: Don't include mbuiter.h.
35216         (strcasecmp): Remove support for multibyte locales.
35217         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
35218         Change the conditional link warning.
35219         (mbscasecmp): New declaration.
35220         * m4/mbscasecmp.m4: New file.
35221         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
35222         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
35223         REPLACE_STRCASECMP.
35224         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
35225         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35226         GNULIB_MBSCASECMP.
35227         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
35228         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
35229         * modules/strcase (Files): Remove m4/mbrtowc.m4.
35230         (Depends-on): Remove mbuiter.
35231         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
35232
35233 2007-02-04  Bruno Haible  <bruno@clisp.org>
35234
35235         New module mbsstr. Remove module strstr.
35236         * modules/mbsstr: New file.
35237         * modules/strstr: Remove file.
35238         * lib/mbsstr.c: Renamed from lib/strstr.c.
35239         (mbsstr): Renamed from strstr.
35240         * lib/string_.h (strstr): Remove declaration. Change the conditional
35241         link warning.
35242         (mbsstr): New declaration.
35243         * m4/mbsstr.m4: New file.
35244         * m4/strstr.m4: Remove file.
35245         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35246         REPLACE_STRSTR.
35247         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
35248         Don't initialize GNULIB_STRSTR.
35249         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
35250         substitute GNULIB_STRSTR and REPLACE_STRSTR.
35251         * MODULES.html.sh (Internationalization functions): Add mbsstr.
35252         (Support for systems lacking ANSI C 89): Remove strstr.
35253
35254 2007-02-04  Bruno Haible  <bruno@clisp.org>
35255
35256         New module mbsrchr.
35257         * modules/mbsrchr: New file.
35258         * lib/mbsrchr.c: New file.
35259         * lib/string_.h (strrchr): Add a conditional link warning.
35260         (mbsrchr): New declaration.
35261         * m4/mbsrchr.m4: New file.
35262         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35263         GNULIB_MBSRCHR.
35264         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
35265         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
35266
35267 2007-02-04  Bruno Haible  <bruno@clisp.org>
35268
35269         New module mbschr.
35270         * modules/mbschr: New file.
35271         * lib/mbschr.c: New file.
35272         * lib/string_.h (strchr): Add a conditional link warning.
35273         (mbschr): New declaration.
35274         * m4/mbschr.m4: New file.
35275         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35276         GNULIB_MBSCHR.
35277         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
35278         * MODULES.html.sh (Internationalization functions): Add mbschr.
35279
35280 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
35281
35282         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
35283
35284         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
35285
35286 2007-02-04  Bruno Haible  <bruno@clisp.org>
35287
35288         New module description section 'configure.ac-early'.
35289         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
35290         (func_get_autoconf_early_snippet): New function.
35291         (func_import, func_create_testdir): Use it. Remove special cases for
35292         modules 'extensions' and 'lock'.
35293         * modules/extensions (configure.ac-early): Require
35294         gl_USE_SYSTEM_EXTENSIONS.
35295         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
35296
35297 2007-02-04  Bruno Haible  <bruno@clisp.org>
35298
35299         Make use of gcj-4.3's -fsource and -ftarget option.
35300         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
35301         and if so try the options -fsource and -ftarget.
35302         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
35303         source_version, ftarget_option, target_version arguments.
35304         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
35305         (is_envjavac_oldgcj_14_14_usable): Renamed from
35306         is_envjavac_gcj_14_14_usable.
35307         (is_envjavac_oldgcj_14_13_usable): Renamed from
35308         is_envjavac_gcj_14_13_usable.
35309         (is_gcj_present): Update.
35310         (is_gcj_43, is_gcj43_usable): New functions.
35311         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
35312         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
35313         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
35314         try the options -fsource and -ftarget.
35315
35316 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
35317
35318         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
35319         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
35320         larger value.
35321
35322 2007-02-03  Jim Meyering  <jim@meyering.net>
35323
35324         Give tools a better chance to allocate space for very large buffers.
35325         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
35326
35327         Make pwd and readlink work also when run with an unreadable parent dir
35328         on systems with openat support.
35329         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
35330         provided getcwd function, even when we have openat support.
35331         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
35332
35333 2007-02-02  Bruno Haible  <bruno@clisp.org>
35334
35335         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
35336         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
35337         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
35338         portability problems if one of these functions is only used on specific
35339         platforms.
35340         Reported by Paul Eggert.
35341
35342 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
35343
35344         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
35345         is causing more trouble than it's curing.
35346         * lib/regex_internal.h (__mempcpy): Remove.
35347         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
35348         (and make the code a tad smaller to boot).
35349         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
35350
35351 2007-02-02  Jim Meyering  <jim@meyering.net>
35352
35353         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
35354         section, not in the Makefile.am: one.
35355
35356 2007-02-02  Eric Blake  <ebb9@byu.net>
35357
35358         * lib/strchrnul.c: Always include config.h first.
35359
35360         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
35361         gnulib strstr is not necessary here.
35362
35363 2007-02-02  Simon Josefsson  <simon@josefsson.org>
35364
35365         * m4/socklen.m4: Fix typo.
35366
35367 2007-02-02  Eric Blake  <ebb9@byu.net>
35368
35369         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
35370         * modules/netinet_in (Makefile.am): Likewise.
35371
35372 2007-02-01  Bruno Haible  <bruno@clisp.org>
35373
35374         * lib/string_.h (GL_LINK_WARNING): New macro.
35375         (strcasecmp, strstr, strcasestr): If provided by the system,
35376         conditionally define as a macro that leads to a warning instead of to
35377         an error.
35378         (strncasecmp): Conditionally define as a macro that leads to a warning.
35379
35380 2007-02-01  Karl Berry  <karl@gnu.org>
35381
35382         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
35383
35384 2007-02-01  Bruno Haible  <bruno@clisp.org>
35385
35386         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
35387         renamings.
35388
35389 2007-02-01  Eric Blake  <ebb9@byu.net>
35390
35391         * modules/regex (Depends-on): Revert dependence on mempcpy.
35392         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
35393         module's definition of mempcpy.
35394         Reported by Paul Eggert.
35395
35396 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
35397
35398         * lib/string_.h: If the gnulib module XYZ is not present, undefine
35399         the symbol XYZ before redefining it.  This fixes a problem with
35400         programs that don't use XYZ, when compiled on systems that define
35401         XYZ to something else.
35402
35403 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
35404
35405         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
35406         occurs when "mkdir -m foo" creates a setgid directory that is (1)
35407         writeable to group or other and (2) is intended to have a special
35408         mode bit that is set or cleared.  In such a case, the directory
35409         should be neither group- nor other-writeable until the special
35410         mode bits are right.
35411
35412 2007-01-31  Eric Blake  <ebb9@byu.net>
35413
35414         * modules/mountlist (Depends-on): Add strstr.
35415
35416         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
35417         bug.
35418         * modules/string (Makefile.am): Remove redundant replacement.
35419         * modules/regex (Depends-on): Add mempcpy.
35420
35421 2007-01-31  Bruno Haible  <bruno@clisp.org>
35422
35423         New module description field 'Link'.
35424         * gnulib-tool (func_usage): Document --extract-link-directive.
35425         (sed_extract_prog): Recognize 'Link' directive.
35426         (func_get_link_directive): New function.
35427         (func_import): Show summary of link directives.
35428         Handle --extract-link-directive option.
35429         * modules/acl (Link): New section.
35430         * modules/clock-time (Link): New section.
35431         * modules/euidaccess (Link): New section.
35432         * modules/gettext (Link): New section.
35433         * modules/iconv (Link): New section.
35434         * modules/lock (Link): New section.
35435         * modules/nanosleep (Link): New section.
35436         * modules/readline (Link): New section.
35437
35438 2007-01-27  Bruno Haible  <bruno@clisp.org>
35439
35440         Enforce the use of gnulib modules for unportable <string.h> functions.
35441         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
35442         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
35443         (gl_HEADER_STRING_H_BODY): Require it.
35444         * lib/string_.h: If the gnulib module XYZ is not present, redefine
35445         the symbol XYZ to one that gives a link error.
35446         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
35447         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
35448         * modules/mempcpy (configure.ac): Likewise.
35449         * modules/memrchr (configure.ac): Likewise.
35450         * modules/stpcpy (configure.ac): Likewise.
35451         * modules/stpncpy (configure.ac): Likewise.
35452         * modules/strcase (configure.ac): Likewise.
35453         * modules/strcasestr (configure.ac): Likewise.
35454         * modules/strchrnul (configure.ac): Likewise.
35455         * modules/strdup (configure.ac): Likewise.
35456         * modules/strndup (configure.ac): Likewise.
35457         * modules/strnlen (configure.ac): Likewise.
35458         * modules/strpbrk (configure.ac): Likewise.
35459         * modules/strsep (configure.ac): Likewise.
35460         * modules/strstr (configure.ac): Likewise.
35461         * modules/strtok_r (configure.ac): Likewise.
35462
35463 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
35464
35465         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
35466
35467 2007-01-30  Jim Meyering  <jim@meyering.net>
35468
35469         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
35470
35471 2007-01-29  Bruno Haible  <bruno@clisp.org>
35472
35473         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
35474         * lib/execute.c: Likewise.
35475         * lib/pipe.c: Likewise.
35476         * lib/printf-args.h: Likewise.
35477         * lib/printf-args.c: Likewise.
35478         * lib/printf-parse.c: Likewise.
35479         * lib/vasnprintf.c: Likewise.
35480
35481 2007-01-29  Eric Blake  <ebb9@byu.net>
35482
35483         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
35484         declaration.
35485
35486 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
35487
35488         * lib/strptime.h (strptime): Use 'restrict' for args where
35489         POSIX requires this.
35490         * lib/strptime.c (strptime): Likewise.
35491         Change license notice from LGPL to GPL, since gnulib-tool will
35492         change this as needed.
35493         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
35494         defined.
35495         Include "strptime.h" first, to check interface.
35496         Do not #undef _LIBC and _NL_CURRENT.
35497         Do not include <stdlib.h>; no longer needed.
35498         Include "time_r.h" and declare ptime_locale_status
35499         only if _LIBC is not defined.
35500         (__P): Remove unused macro.
35501         (match_string): Bring back glibc version, but use it only if _LIBC
35502         is defined.
35503         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
35504         Remove unnecessary assertion and abort() call.
35505         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
35506         * m4/strptime.m4: Fix serial number comment.
35507         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
35508         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
35509         (Depends-on): Add time_r.
35510
35511 2007-01-29  Bruno Haible  <bruno@clisp.org>
35512
35513         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35514         strptime.
35515         * modules/strptime (Depends-on): Add stdbool.
35516         * lib/strptime.h: Include <time.h> always. Add comments.
35517
35518 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35519
35520         * modules/strptime: New file.
35521         * lib/strptime.h: New file.
35522         * lib/strptime.c: New file.
35523         * m4/strptime.m4: New file.
35524
35525 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
35526
35527         * MODULES.html.sh: New module mpsort.
35528         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
35529
35530         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
35531         a circularity problem with HP-UX ia64 reported by Bob Proulx in
35532         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
35533         All uses changed.
35534         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
35535         All uses changed.
35536         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
35537         to _Restrict_.
35538         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
35539         the parameter matches the prototype.
35540
35541 2007-01-28  Jim Meyering  <jim@meyering.net>
35542
35543         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
35544         sys/time.h here, reverting that part of the previous patch:
35545         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
35546
35547 2007-01-28  Bruno Haible  <bruno@clisp.org>
35548
35549         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
35550         value of $(SYS_TIME_H).
35551         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
35552         remove it conditionally, too. [added by Jim Meyering]
35553         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
35554         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
35555         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
35556         GETTIMEOFDAY_REPLACEMENT to 1.
35557
35558 2007-01-28  Bruno Haible  <bruno@clisp.org>
35559
35560         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
35561         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
35562         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
35563         Set UNISTD_H instead of UNISTD_H2.
35564         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
35565
35566 2007-01-28  Bruno Haible  <bruno@clisp.org>
35567
35568         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
35569         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
35570
35571 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35572
35573         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
35574         (func_create_testdir): Ensure C locale for `grep' and `tr'
35575         character ranges.
35576         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
35577         ACLOCAL_AMFLAGS parsing state machine.
35578
35579 2007-01-27  Bruno Haible  <bruno@clisp.org>
35580
35581         * modules/unistr/base: Update.
35582
35583 2007-01-27  Bruno Haible  <bruno@clisp.org>
35584
35585         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
35586         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
35587         * modules/unistr/u32-mbtouc-unsafe: Renamed from
35588         modules/unistr/u32-mbtouc.
35589         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
35590         * lib/unistr.h: Update.
35591         * lib/linebreak.c: Update.
35592         * modules/unistr/u32-mbtouc: Renamed from
35593         modules/unistr/u32-mbtouc-safe.
35594         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
35595         * lib/unistr.h: Update.
35596         * lib/unistr/u32-to-u8.c: Update.
35597         * lib/unistr/u32-to-u16.c: Update.
35598
35599 2007-01-27  Bruno Haible  <bruno@clisp.org>
35600
35601         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
35602         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
35603         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
35604         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
35605         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
35606         * modules/unistr/u16-mbtouc-unsafe: Renamed from
35607         modules/unistr/u16-mbtouc.
35608         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
35609         * lib/unistr.h: Update.
35610         * lib/linebreak.c: Update.
35611         * modules/linebreak: Update.
35612         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
35613         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
35614         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
35615         * modules/unistr/u16-mbtouc: Renamed from
35616         modules/unistr/u16-mbtouc-safe.
35617         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
35618         * lib/unistr.h: Update.
35619         * lib/unistr/u16-to-u8.c: Update.
35620         * modules/unistr/u16-to-u8: Update.
35621         * lib/unistr/u16-to-u32.c: Update.
35622         * modules/unistr/u16-to-u32: Update.
35623
35624 2007-01-27  Bruno Haible  <bruno@clisp.org>
35625
35626         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
35627         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
35628         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
35629         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
35630         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
35631         * modules/unistr/u8-mbtouc-unsafe: Renamed from
35632         modules/unistr/u8-mbtouc.
35633         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
35634         * lib/unistr.h: Update.
35635         * lib/striconveh.c: Update.
35636         * modules/striconveh: Update.
35637         * lib/linebreak.c: Update.
35638         * modules/linebreak: Update.
35639         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
35640         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
35641         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
35642         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
35643         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
35644         * lib/unistr.h: Update.
35645         * lib/striconveh.c: Update.
35646         * modules/striconveh: Update.
35647         * lib/unistr/u8-to-u16.c: Update.
35648         * modules/unistr/u8-to-u16: Update.
35649         * lib/unistr/u8-to-u32.c: Update.
35650         * modules/unistr/u8-to-u32: Update.
35651
35652 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35653
35654         Sync from Libtool.
35655         * lib/argz.c: Do not include strings.h nor memory.h, include
35656         string.h unconditionally.  Patch by Simon Josefsson.
35657
35658 2007-01-27  Bruno Haible  <bruno@clisp.org>
35659
35660         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
35661         from gl_HEADER_STRING_H_BODY.
35662         (gl_HEADER_STRING_H_BODY): Require it.
35663         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
35664         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
35665         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
35666         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
35667         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35668         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
35669         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35670         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
35671         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
35672         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35673         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
35674         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
35675         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
35676         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35677         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35678
35679 2007-01-27  Bruno Haible  <bruno@clisp.org>
35680
35681         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
35682         check_PROGRAMS into noinst_PROGRAMS.
35683         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
35684         check_PROGRAMS in this case.
35685         (func_import): Set for_test to false.
35686         (func_create_testdir): Set for_test to true.
35687
35688 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
35689             Bruno Haible  <bruno@clisp.org>
35690
35691         * modules/strcasestr (Files): Remove lib/strcasestr.h.
35692         (Depends-on): Add string.
35693         (Includes): Use <string.h> instead of strcasestr.h.
35694         * modules/string (Makefile.am): Also substitute the value of
35695         REPLACE_STRCASESTR.
35696         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
35697         assume strcasestr is declared in <string.h> not <strings.h>. Also
35698         set REPLACE_STRCASESTR.
35699         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
35700         REPLACE_STRCASESTR.
35701         * lib/strcasestr.h: Remove file.
35702         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
35703         * lib/string_.h (strcasestr): New declaration.
35704
35705 2007-01-27  Bruno Haible  <bruno@clisp.org>
35706
35707         * lib/string_.h: Use 'extern'.
35708
35709 2007-01-27  Jim Meyering  <jim@meyering.net>
35710
35711         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
35712         of set-but-not-used local, "q".
35713
35714         * lib/mempcpy.c: Include <config.h> before <string.h>.
35715         This fixes a compilation error on HP-UX, due to the system's
35716         "restrict"-using mempcpy prototype.
35717
35718 2007-01-26  Bruno Haible  <bruno@clisp.org>
35719
35720         Small optimization.
35721         * lib/javacomp.c: Include c-strstr.h.
35722          (is_envjavac_gcj): Use c_strstr instead of strstr.
35723         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
35724
35725 2007-01-26  Bruno Haible  <bruno@clisp.org>
35726
35727         * MODULES.html.sh (Unicode string functions): Add the new modules.
35728
35729         * modules/uniconv/u32-strconv-to-locale: New file.
35730         * lib/uniconv/u32-strconv-to-locale.c: New file.
35731
35732         * modules/uniconv/u16-strconv-to-locale: New file.
35733         * lib/uniconv/u16-strconv-to-locale.c: New file.
35734
35735         * modules/uniconv/u8-strconv-to-locale: New file.
35736         * lib/uniconv/u8-strconv-to-locale.c: New file.
35737
35738         * modules/uniconv/u32-strconv-from-locale: New file.
35739         * lib/uniconv/u32-strconv-from-locale.c: New file.
35740
35741         * modules/uniconv/u16-strconv-from-locale: New file.
35742         * lib/uniconv/u16-strconv-from-locale.c: New file.
35743
35744         * modules/uniconv/u8-strconv-from-locale: New file.
35745         * lib/uniconv/u8-strconv-from-locale.c: New file.
35746
35747         * modules/uniconv/u32-strconv-to-enc: New file.
35748         * lib/uniconv/u32-strconv-to-enc.c: New file.
35749         * modules/uniconv/u32-strconv-to-enc-tests: New file.
35750         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
35751
35752         * modules/uniconv/u16-strconv-to-enc: New file.
35753         * lib/uniconv/u16-strconv-to-enc.c: New file.
35754         * lib/uniconv/u-strconv-to-enc.h: New file.
35755         * modules/uniconv/u16-strconv-to-enc-tests: New file.
35756         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
35757
35758         * modules/uniconv/u8-strconv-to-enc: New file.
35759         * lib/uniconv/u8-strconv-to-enc.c: New file.
35760         * modules/uniconv/u8-strconv-to-enc-tests: New file.
35761         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
35762
35763         * modules/uniconv/u32-strconv-from-enc: New file.
35764         * lib/uniconv/u32-strconv-from-enc.c: New file.
35765         * modules/uniconv/u32-strconv-from-enc-tests: New file.
35766         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
35767
35768         * modules/uniconv/u16-strconv-from-enc: New file.
35769         * lib/uniconv/u16-strconv-from-enc.c: New file.
35770         * modules/uniconv/u16-strconv-from-enc-tests: New file.
35771         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
35772
35773         * modules/uniconv/u8-strconv-from-enc: New file.
35774         * lib/uniconv/u8-strconv-from-enc.c: New file.
35775         * lib/uniconv/u-strconv-from-enc.h: New file.
35776         * modules/uniconv/u8-strconv-from-enc-tests: New file.
35777         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
35778
35779         * modules/uniconv/u32-conv-from-enc: New file.
35780         * lib/uniconv/u32-conv-from-enc.c: New file.
35781         * modules/uniconv/u32-conv-from-enc-tests: New file.
35782         * tests/uniconv/test-u32-conv-from-enc.c: New file.
35783
35784         * modules/uniconv/u16-conv-from-enc: New file.
35785         * lib/uniconv/u16-conv-from-enc.c: New file.
35786         * lib/uniconv/u-conv-from-enc.h: New file.
35787         * modules/uniconv/u16-conv-from-enc-tests: New file.
35788         * tests/uniconv/test-u16-conv-from-enc.c: New file.
35789
35790         * modules/uniconv/u8-conv-from-enc: New file.
35791         * lib/uniconv/u8-conv-from-enc.c: New file.
35792         * modules/uniconv/u8-conv-from-enc-tests: New file.
35793         * tests/uniconv/test-u8-conv-from-enc.c: New file.
35794
35795         * modules/uniconv/base: New file.
35796         * lib/uniconv.h: New file.
35797
35798 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
35799
35800         * doc/gnulib-tool.texi (Initial import): Update to match current
35801         behavior with strdup module.
35802         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
35803         * lib/memmem.h: Remove; all uses removed.  This is now done
35804         by <string.h>.
35805         * lib/mempcpy.h: Likewise.
35806         * lib/memrchr.h: Likewise.
35807         * lib/stpcpy.h: Likewise.
35808         * lib/stpncpy.h: Likewise.
35809         * lib/strcase.h: Likewise.
35810         * lib/strchrnul.h: Likewise.
35811         * lib/strdup.h: Likewise.
35812         * lib/strndup.h: Likewise.
35813         * lib/strnlen.h: Likewise.
35814         * lib/strpbrk.h: Likewise.
35815         * lib/strsep.h: Likewise.
35816         * lib/strstr.h: Likewise.
35817         * lib/strtok_r.h: Likewise.
35818         * lib/string_.h: New file.
35819         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
35820         Rely on <string.h> instead.
35821         * lib/canon-host.c: Likewise.
35822         * lib/chdir-long.c: Likewise.
35823         * lib/concatpath.c: Likewise.
35824         * lib/exclude.c: Likewise.
35825         * lib/fchdir.c: Likewise.
35826         * lib/getaddrinfo.c: Likewise.
35827         * lib/getcwd.c: Likewise.
35828         * lib/getsubopt.c: Likewise.
35829         * lib/glob.c: Likewise.
35830         * lib/hard-locale.c: Likewise.
35831         * lib/iconvme.c: Likewise.
35832         * lib/javacomp.c: Likewise.
35833         * lib/mempcpy.c: Likewise.
35834         * lib/memrchr.c: Likewise.
35835         * lib/regex_internal.h: Likewise.
35836         * lib/stpncpy.c: Likewise.
35837         * lib/strcasecmp.c: Likewise.
35838         * lib/strchrnul.c: Likewise.
35839         * lib/strdup.c: Likewise.
35840         * lib/striconv.c: Likewise.
35841         * lib/striconveh.c: Likewise.
35842         * lib/striconveha.c: Likewise.
35843         * lib/strncasecmp.c: Likewise.
35844         * lib/strndup.c: Likewise.
35845         * lib/strnlen.c: Likewise.
35846         * lib/strsep.c: Likewise.
35847         * lib/strstr.c: Likewise.
35848         * lib/strtok_r.c: Likewise.
35849         * lib/userspec.c: Likewise.
35850         * lib/w32spawn.h: Likewise.
35851         * lib/xstrndup.c: Likewise.
35852         * lib/mountlist.c (strstr): Remove decl.
35853         * m4/string_h.m4: New file.
35854         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
35855         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
35856         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
35857         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
35858         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
35859         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
35860         Set REPLACE_STRCASECMP if necessary.
35861         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
35862         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
35863         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
35864         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
35865         HAVE_DECL_STRDUP if necessary.
35866         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
35867         since gl_FUNC_STRNDUP does that now.
35868         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
35869         Check for decl here...
35870         (gl_PREREQ_STRNLEN): ... not here.
35871         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
35872         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
35873         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
35874         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
35875         necessary.
35876         * modules/string: New file.
35877         * modules/memmem (Files): Remove special-purpose include file.
35878         (Depends-on): Add string.
35879         (Include): Include <string.h>, not the removed file.
35880         * modules/mempcpy: Likewise.
35881         * modules/memrchr: Likewise.
35882         * modules/stpcpy: Likewise.
35883         * modules/stpncpy: Likewise.
35884         * modules/strcase: Likewise.
35885         * modules/strchrnul: Likewise.
35886         * modules/strdup: Likewise.
35887         * modules/strndup: Likewise.
35888         * modules/strnlen: Likewise.
35889         * modules/strpbrk: Likewise.
35890         * modules/strsep: Likewise.
35891         * modules/strstr: Likewise.
35892         * modules/strtok_r: Likewise.
35893         * tests/test-dirname.c: Don't include "strdup.h", since
35894         <string.h> now suffices.
35895         * tests/test-memmem.c: Don't include "memmem.h", since
35896         <string.h> now suffices.
35897
35898 2007-01-25  Bruno Haible  <bruno@clisp.org>
35899
35900         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
35901         *resultp is 0.
35902
35903         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
35904         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
35905         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
35906         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
35907
35908         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
35909         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
35910         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
35911         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
35912         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
35913         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
35914
35915 2007-01-24  Bruno Haible  <bruno@clisp.org>
35916
35917         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
35918         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
35919         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
35920         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
35921         gl_FUNC_FTS_CORE.
35922         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
35923         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
35924         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35925         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
35926         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
35927         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
35928         gl_FUNC_FCHOWNAT.
35929         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
35930         gl_FUNC_STRFTIME.
35931         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
35932         Reported by Ralf Wildenhues.
35933
35934 2007-01-24  Bruno Haible  <bruno@clisp.org>
35935
35936         Drop AC_REQUIRE calls that are redundant with the module dependencies.
35937         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
35938         gl_GETADDRINFO.
35939         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
35940         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
35941         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
35942
35943 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
35944
35945         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
35946         Don't use 'exit'; just return from 'main'.
35947         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
35948
35949         * lib/fnmatch_.h: Readjust white space and comments to match
35950         glibc, to avoid spurious diffs.
35951
35952 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35953
35954         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
35955         2004-12-01 change by Jakub Jelinek, since this code won't compile
35956         if !LIBC.  Problem reported by Bob Proulx.
35957
35958 2007-01-23  Bruno Haible  <bruno@clisp.org>
35959
35960         * lib/striconveh.c: Include c-strcaseeq.h.
35961         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
35962         * modules/striconveh (Depends-on): Add c-strcaseeq.
35963
35964 2007-01-23  Bruno Haible  <bruno@clisp.org>
35965
35966         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
35967
35968         * modules/c-strcaseeq: New file.
35969         * lib/c-strcaseeq.h: New file.
35970
35971         * modules/streq: New file.
35972         * lib/streq.h: New file.
35973
35974 2007-01-23  Bruno Haible  <bruno@clisp.org>
35975
35976         * modules/striconveha-tests: New file.
35977         * tests/test-striconveha.c: New file.
35978
35979         * lib/striconveha.h: Include <stdbool.h>.
35980         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
35981         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
35982         (mem_iconveha_notranslit): Renamed from mem_iconveha.
35983         (mem_iconveha): New function.
35984         (str_iconveha_notranslit): Renamed from str_iconveha.
35985         (str_iconveha): New function.
35986         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
35987         c-strcase.
35988
35989 2007-01-23  Bruno Haible  <bruno@clisp.org>
35990
35991         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
35992         encodings without forgiving before trying any encoding with handler.
35993         (str_iconveha): Try all encodings without forgiving before trying any
35994         encoding with handler.
35995
35996 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35997
35998         Import the following changes from libc.
35999
36000         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
36001
36002         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
36003
36004         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
36005
36006         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
36007         normal_bracket label.
36008
36009         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
36010
36011         [BZ #361]
36012         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
36013         to normal_bracket after fetching the next character.
36014
36015 2007-01-22  Bruno Haible  <bruno@clisp.org>
36016
36017         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
36018         argument.
36019         * lib/striconveh.c (iconv_carefully_1): New function.
36020         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
36021         argument.
36022         (str_cd_iconveh): Update.
36023         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
36024         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
36025         * tests/test-striconveh.c (MAGIC): New macro.
36026         (new_offsets): New function.
36027         (main): Test call with and without offsets.
36028
36029 2007-01-22  Bruno Haible  <bruno@clisp.org>
36030
36031         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
36032         * modules/sys_select (Makefile.am): Likewise.
36033         * modules/sys_socket (Makefile.am): Likewise.
36034         * modules/sys_time (Makefile.am): Likewise.
36035
36036 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
36037
36038         * modules/gettimeofday (License): Change from GPL to LGPL, since
36039         gettimeofday is a library function.
36040
36041 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36042
36043         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
36044
36045 2007-01-21  Bruno Haible  <bruno@clisp.org>
36046
36047         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
36048
36049 2007-01-21  Bruno Haible  <bruno@clisp.org>
36050
36051         * modules/striconveha: New file.
36052         * lib/striconveha.h: New file.
36053         * lib/striconveha.c: New file.
36054         * MODULES.html.sh (Internationalization functions): Add striconveha.
36055         * lib/striconv.c (str_iconv): Optimize the case of an empty input
36056         string.
36057         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
36058
36059 2007-01-21  Bruno Haible  <bruno@clisp.org>
36060
36061         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
36062         * lib/striconveh.c (str_iconveh): Likewise.
36063
36064 2007-01-21  Bruno Haible  <bruno@clisp.org>
36065
36066         * lib/striconveh.h (mem_iconveh): New declaration.
36067         * lib/striconveh.c (mem_iconveh): New function.
36068         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
36069
36070 2007-01-21  Bruno Haible  <bruno@clisp.org>
36071
36072         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
36073
36074         * lib/striconveh.h (mem_cd_iconveh): Change specification.
36075         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
36076         original result buffer.
36077         (str_cd_iconveh): Update.
36078         * tests/test-striconveh.c (main): Update.
36079
36080         * lib/striconv.h (mem_cd_iconv): Change specification.
36081         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
36082         result buffer.
36083         (str_cd_iconv): Update.
36084         * tests/test-striconv.c (main): Update.
36085
36086 2007-01-21  Bruno Haible  <bruno@clisp.org>
36087
36088         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
36089
36090 2007-01-20  Jim Meyering  <jim@meyering.net>
36091
36092         * lib/userspec.c (parse_with_separator): If a user or group string
36093         starts with "+", skip the corresponding name-to-ID look-up, since
36094         such a look-up must fail: user and group names may not include "+".
36095
36096 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
36097
36098         * lib/poll.c: Include sys/time.h and time.h unconditionally,
36099         since we now assume the sys_time module.
36100         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
36101         check for sys/time.h; no longer needed.
36102         * modules/poll (Depends-on): Depend on sys_time.
36103
36104 2007-01-18  Bruno Haible  <bruno@clisp.org>
36105
36106         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
36107         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
36108
36109         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
36110         gettimeofday.
36111
36112         * tests/test-gettimeofday.c: Include <time.h>.
36113         (dummy): Remove variable.
36114
36115         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
36116         gl_HEADER_SYS_TIME_H.
36117         (gl_HEADER_SYS_TIME_H): New macro.
36118
36119         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
36120         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36121         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
36122         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
36123         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36124         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
36125         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
36126         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36127         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
36128         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
36129         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36130
36131         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
36132         last change; it caused a compilation error when cross-compiling to
36133         Cygwin.
36134
36135 2007-01-18  Jim Meyering  <jim@meyering.net>
36136
36137         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
36138         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
36139         than the race-prone "test -d sys || mkdir sys".
36140         (configure.ac): Use AC_PROG_MKDIR_P.
36141         * modules/sys_select: Likewise.
36142         * modules/sys_socket: Likewise.
36143         * modules/sys_time: Likewise.
36144
36145 2007-01-18  Eric Blake  <ebb9@byu.net>
36146
36147         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
36148         replace gettimeofday.
36149         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
36150         name, to avoid infinite recursion.
36151
36152 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
36153
36154         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
36155         module sys_time.
36156         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
36157         assume timespec.h defines struct timeval.
36158         * lib/settime.c: Likewise.
36159         * lib/utimens.c: Likewise.
36160         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
36161         since we now assume the gettimeofday module.
36162         * lib/tempname.c (__gen_tempname): Likewise.
36163         * lib/gettimeofday.h: Remove.
36164         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
36165         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
36166         Include <time.h>, for 'time()'.
36167         (localtime_buffer_addr): Also use this workaround if
36168         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
36169         to simplify the uses.  All uses changed.
36170         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
36171         that #undef is inside {}, and 'const' follows type name consistently.
36172         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
36173         (gettimeofday): Do not use the maximum possible value for
36174         tv->tv_usec, since that might break usages other than ls.c.
36175         Instead, we'll leave ls.c alone.  This undoes today's patch
36176         by Bruno.  Add a compile-time warning for 1s-clock resolution;
36177         we've never observed the problem but might as well keep the
36178         canary.
36179         * lib/nanosleep.c: Include timespec.h first, for interface check.
36180         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
36181         now assume the sys_time module.
36182         * lib/tempname.c: Likewise.
36183         * lib/timespec.h: Likewise.
36184         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
36185         needed.
36186         * lib/strftime.c: Likewise.
36187         * lib/timespec.h: Likewise.
36188         * lib/posixtm.c: Include posixtm.h first, for interface check.
36189         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
36190         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
36191         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
36192         * lib/sys_time_.h: New file.
36193         * lib/timespec.h (struct timespec): Use long int, not long.
36194         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
36195         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
36196         Remove obsolescent call to AC_HEADER_TIME.
36197         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
36198         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36199         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
36200         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
36201         Likewise.
36202         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
36203         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
36204         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
36205         into the sys_time module.  Check for gettimeofday just once.
36206         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
36207         for gettimeofday signature to just check the signature.  Merely
36208         compile it, since linking doesn't test signature.  Improve test for
36209         whether gettimeofday.o is actually needed.
36210         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
36211         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
36212         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
36213         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36214         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
36215         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
36216         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
36217         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
36218         than worrying about sys/time.h.
36219         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36220         Don't bother worrying about TIME_WITH_SYS_TIME.
36221         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36222         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
36223         * m4/sys_time_h.m4: New file.
36224         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
36225         Don't include sys/time.h.  Return from main rather than exiting.
36226         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
36227         all uses changed.
36228         * modules/gethrxtime (Depends-on): Add sys_time.
36229         * modules/gettime (Depends-on): Likewise.
36230         * modules/gettimeofday (Depends-on): Likewise.
36231         * modules/nanosleep (Depends-on): Likewise.
36232         * modules/settime (Depends-on): Likewise.
36233         * modules/tempname (Depends-on): Likewise.
36234         * modules/utimens (Depends-on): Likewise.
36235         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
36236         (Include:) Change back to <sys/time.h>.
36237         (Maintainer:) Add self.
36238         * modules/sys_time: New file.
36239         * modules/tempname (Depends-on): Add gettimeofday.
36240         * tests/test-gettimeofday.c: Include <sys/time.h>
36241         rather than gettimeofday.h.
36242
36243 2007-01-17  Bruno Haible  <bruno@clisp.org>
36244
36245         * gnulib-tool (func_get_license): Revert last patch. Instead, let
36246         the license default to GPL.
36247         (func_create_testdir): Don't complain if a module is LGPL and its
36248         tests module depends on GPLed modules.
36249
36250 2007-01-17  Bruno Haible  <bruno@clisp.org>
36251
36252         * lib/gettimeofday.c (gettimeofday): Add code for the case
36253         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
36254         maximum possible value for tv->tv_usec, rather than the minimum one.
36255
36256 2005-10-08  Martin Lambers  <marlam@marlam.de>
36257 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
36258 2007-01-16  Bruno Haible  <bruno@clisp.org>
36259
36260         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
36261         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
36262         gl_FUNC_GETTIMEOFDAY.
36263         (Include): Add gettimeofday.h.
36264         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
36265         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
36266         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
36267         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
36268         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
36269         * lib/gettimeofday.h: New file.
36270         * lib/gettimeofday.c: Include <sys/timeb.h>.
36271         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
36272         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36273         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
36274         fall back on time().
36275
36276         * tests/test-gettimeofday.c: New file.
36277         * modules/gettimeofday-tests: New file.
36278
36279 2007-01-16  Eric Blake  <ebb9@byu.net>
36280
36281         * modules/fnmatch (Depends-on): Depend on wchar.
36282         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
36283         * m4/fnmatch.m4: Likewise.
36284         * modules/mbchar (Makefile.am): Assume <wchar.h>.
36285         * m4/mbchar.m4: Likewise.
36286         * modules/mbswidth (Depends-on): Depend on wchar.
36287         * lib/mbswidth.c: Assume <wchar.h>.
36288         * m4/mbswidth.m4: Likewise.
36289         * modules/quotearg (Depends-on): Depend on wchar.
36290         * lib/quotearg.c: Assume <wchar.h>.
36291         * m4/quotearg.m4: Likewise.
36292         * modules/regex (Depends-on): Depend on wchar.
36293         * lib/regex_internal.h: Assume <wchar.h>.
36294         * m4/regex.m4: Likewise.
36295         * modules/stdint (Depends-on): Depend on wchar.
36296         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
36297         * m4/stdint.m4: Likewise.
36298         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
36299         * modules/strftime (Depends-on): Depend on wchar.
36300         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
36301         * modules/strtol (Depends-on): Depend on wchar.
36302         * lib/strtol.c: Assume <wchar.h>.
36303         * modules/wcwidth (Depends-on): Depend on wchar.
36304         * lib/wcwidth.h: Assume <wchar.h>.
36305         * m4/wcwidth.m4: Likewise.
36306
36307 2007-01-16  Bruno Haible  <bruno@clisp.org>
36308
36309         * modules/csharpexec-script: New, created from...
36310         * modules/csharpexec: ... this.
36311
36312 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
36313
36314         * modules/javaexec-script: New, created from...
36315         * modules/javaexec: ... this.
36316
36317 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36318
36319         * modules/poll (Dependencies): Add sys_select.
36320
36321 2007-01-15  Jim Meyering  <jim@meyering.net>
36322
36323         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
36324         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
36325         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
36326         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
36327
36328 2007-01-15  Bruno Haible  <bruno@clisp.org>
36329
36330         * modules/striconveh: New file.
36331         * lib/striconveh.h: New file.
36332         * lib/striconveh.c: New file.
36333         * MODULES.html.sh (Internationalization functions): Add striconveh.
36334
36335         * modules/striconveh-tests: New file.
36336         * tests/test-striconveh.c: New file.
36337
36338 2007-01-15  Bruno Haible  <bruno@clisp.org>
36339
36340         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
36341         not from GNU libiconv or GNU libc.
36342
36343 2007-01-15  Bruno Haible  <bruno@clisp.org>
36344
36345         * doc/gnulib-intro.texi (Copyright): Explain the different license
36346         terms for module descriptions, autoconf macros, tests, documentation.
36347
36348 2007-01-14  Bruno Haible  <bruno@clisp.org>
36349
36350         * modules/striconv-tests: New file.
36351         * tests/test-striconv.c: New file.
36352
36353 2007-01-14  Bruno Haible  <bruno@clisp.org>
36354
36355         * modules/iconv-tests: New file.
36356         * tests/test-iconv.c: New file.
36357
36358 2007-01-14  Bruno Haible  <bruno@clisp.org>
36359
36360         * gnulib-tool (func_get_license): For test modules, use the license of
36361         the main module.
36362
36363 2007-01-14  Bruno Haible  <bruno@clisp.org>
36364
36365         * modules/iconv (Include): Clarify that <iconv.h> can only be included
36366         if iconv is found to exist.
36367
36368 2007-01-14  Bruno Haible  <bruno@clisp.org>
36369
36370         * modules/c-ctype-tests: New file.
36371         * tests/test-c-ctype.c: New file.
36372
36373 2007-01-14  Bruno Haible  <bruno@clisp.org>
36374
36375         * modules/binary-io-tests: New file.
36376         * tests/test-binary-io.sh: New file.
36377         * tests/test-binary-io.c: New file.
36378
36379 2007-01-14  Bruno Haible  <bruno@clisp.org>
36380
36381         * modules/array-oset-tests: New file.
36382         * tests/test-array_oset.c: New file.
36383
36384 2007-01-14  Bruno Haible  <bruno@clisp.org>
36385
36386         * modules/array-list-tests: New file.
36387         * tests/test-array_list.c: New file.
36388
36389 2007-01-14  Bruno Haible  <bruno@clisp.org>
36390
36391         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
36392         and make.
36393         Reported by Simon Josefsson in
36394         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
36395
36396 2007-01-14  Bruno Haible  <bruno@clisp.org>
36397
36398         * modules/allocsa-tests: New file.
36399         * tests/test-allocsa.c: New file.
36400
36401 2007-01-14  Bruno Haible  <bruno@clisp.org>
36402
36403         * modules/fchdir (Depends-on): Add absolute-header.
36404         * modules/unistd (Depends-on): Likewise.
36405
36406 2006-12-30  Bruno Haible  <bruno@clisp.org>
36407
36408         * modules/fchdir: New file.
36409         * modules/unistd (Files): Add lib/unistd_.h.
36410         (Makefile.am): Generate unistd.h from unistd_.h.
36411         * lib/fchdir.c: New file.
36412         * lib/dirent_.h: New file.
36413         * lib/unistd_.h: New file.
36414         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
36415         * m4/fchdir.m4: New file.
36416         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
36417         (gl_HEADER_UNISTD): Invoke it.
36418         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
36419         function.
36420         * lib/backupfile.c (opendir, closedir): Undefine.
36421         * lib/chown.c (open, close): Undefine.
36422         * lib/clean-temp.c (open, close): Undefine.
36423         * lib/copy-file.c (open, close): Undefine.
36424         * lib/execute.c (open, close): Undefine.
36425         * lib/fsusage.c (open, close): Undefine.
36426         * lib/gc-gnulib.c (open, close): Undefine.
36427         * lib/getcwd.c (opendir, closedir): Undefine.
36428         * lib/glob.c (opendir, closedir): Undefine.
36429         * lib/javacomp.c (open, close): Undefine.
36430         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
36431         * lib/openat-proc.c (open, close): Undefine.
36432         * lib/pagealign_alloc.c (open, close): Undefine.
36433         * lib/pipe.c (open, close): Undefine.
36434         * lib/progreloc.c (open, close): Undefine.
36435         * lib/savedir.c (opendir, closedir): Undefine.
36436         * lib/utime.c (open, close): Undefine.
36437         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
36438
36439 2007-01-10  Bruno Haible  <bruno@clisp.org>
36440
36441         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
36442
36443 2007-01-12  Eric Blake  <ebb9@byu.net>
36444
36445         Provide a robust <wchar.h>.  Further simplifications are now
36446         possible in other modules, but not included here.
36447         * modules/wchar: New module.
36448         * m4/wchar.m4: New file.
36449         * lib/wchar_.h: Likewise.
36450         * modules/mbchar (Depends-on): Depend on wchar, as the first use
36451         of the new module.
36452         * MODULES.html.sh (Extended multibyte and wide character utilities):
36453         New section.
36454
36455 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
36456
36457         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
36458         to a reasonable default for memory allocation.
36459         (xreadlink): Don't allocate a huge buffer, to work around a buggy
36460         file system that reports garbage st_size values for symlinks.
36461         Problem reported by Liyang Hu.
36462
36463 2007-01-11  Simon Josefsson  <simon@josefsson.org>
36464
36465         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
36466         Emacs .#* auto-save files).
36467
36468 2007-01-11  Bruno Haible  <bruno@clisp.org>
36469
36470         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
36471         directory.
36472
36473 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36474
36475         Use @...@ consistently in lib/wctype_.h.
36476         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
36477         on it being set to 1 or 0.
36478         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
36479         go back to AC_SUBSTing it.
36480         * modules/wctype (Makefile.am): Undo previous change.
36481
36482 2007-01-10  Eric Blake  <ebb9@byu.net>
36483
36484         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
36485         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
36486         * modules/wctype (Makefile.am): Likewise.
36487         Reported by Chris McGuire.
36488
36489 2007-01-10  Jim Meyering  <jim@meyering.net>
36490
36491         fts.c: a small readability/maintainability improvement
36492         * lib/fts.c (fts_read): Make this code slightly more readable and
36493         maintainable by hoisting the "sp->fts_cur = p" assignments to
36494         immediately follow the statements that set P.  Derived from
36495         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
36496
36497 2007-01-10  Eric Blake  <ebb9@byu.net>
36498
36499         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
36500         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
36501         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
36502         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
36503         Reported by Chris McGuire.
36504
36505 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36506
36507         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
36508         in sed script.
36509
36510 2007-01-09  Bruno Haible  <bruno@clisp.org>
36511
36512         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
36513         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
36514         variables.
36515         (func_module): Use them.
36516
36517 2007-01-09  Bruno Haible  <bruno@clisp.org>
36518
36519         * modules/unistr/base: New file.
36520         * lib/unistr.h: New file.
36521
36522         * modules/unistr/u8-to-u16: New file.
36523         * lib/unistr/u8-to-u16.c: New file.
36524
36525         * modules/unistr/u8-to-u32: New file.
36526         * lib/unistr/u8-to-u32.c: New file.
36527
36528         * modules/unistr/u16-to-u8: New file.
36529         * lib/unistr/u16-to-u8.c: New file.
36530
36531         * modules/unistr/u16-to-u32: New file.
36532         * lib/unistr/u16-to-u32.c: New file.
36533
36534         * modules/unistr/u32-to-u8: New file.
36535         * lib/unistr/u32-to-u8.c: New file.
36536
36537         * modules/unistr/u32-to-u16: New file.
36538         * lib/unistr/u32-to-u16.c: New file.
36539
36540         * modules/unistr/u8-check: New file.
36541         * modules/unistr/u16-check: New file.
36542         * modules/unistr/u32-check: New file.
36543         * lib/unistr/u8-check.c: New file.
36544         * lib/unistr/u16-check.c: New file.
36545         * lib/unistr/u32-check.c: New file.
36546
36547         * modules/unistr/u8-chr: New file.
36548         * modules/unistr/u16-chr: New file.
36549         * modules/unistr/u32-chr: New file.
36550         * lib/unistr/u8-chr.c: New file.
36551         * lib/unistr/u16-chr.c: New file.
36552         * lib/unistr/u32-chr.c: New file.
36553
36554         * modules/unistr/u8-cmp: New file.
36555         * modules/unistr/u16-cmp: New file.
36556         * modules/unistr/u32-cmp: New file.
36557         * lib/unistr/u8-cmp.c: New file.
36558         * lib/unistr/u16-cmp.c: New file.
36559         * lib/unistr/u32-cmp.c: New file.
36560
36561         * modules/unistr/u8-cpy: New file.
36562         * modules/unistr/u16-cpy: New file.
36563         * modules/unistr/u32-cpy: New file.
36564         * lib/unistr/u8-cpy.c: New file.
36565         * lib/unistr/u16-cpy.c: New file.
36566         * lib/unistr/u32-cpy.c: New file.
36567         * lib/unistr/u-cpy.h: New file.
36568
36569         * modules/unistr/u8-cpy-alloc: New file.
36570         * modules/unistr/u16-cpy-alloc: New file.
36571         * modules/unistr/u32-cpy-alloc: New file.
36572         * lib/unistr/u8-cpy-alloc.c: New file.
36573         * lib/unistr/u16-cpy-alloc.c: New file.
36574         * lib/unistr/u32-cpy-alloc.c: New file.
36575         * lib/unistr/u-cpy-alloc.h: New file.
36576
36577         * modules/unistr/u8-endswith: New file.
36578         * modules/unistr/u16-endswith: New file.
36579         * modules/unistr/u32-endswith: New file.
36580         * lib/unistr/u8-endswith.c: New file.
36581         * lib/unistr/u16-endswith.c: New file.
36582         * lib/unistr/u32-endswith.c: New file.
36583         * lib/unistr/u-endswith.h: New file.
36584
36585         * modules/unistr/u8-mblen: New file.
36586         * modules/unistr/u16-mblen: New file.
36587         * modules/unistr/u32-mblen: New file.
36588         * lib/unistr/u8-mblen.c: New file.
36589         * lib/unistr/u16-mblen.c: New file.
36590         * lib/unistr/u32-mblen.c: New file.
36591
36592         * modules/unistr/u8-mbtouc: New file.
36593         * modules/unistr/u16-mbtouc: New file.
36594         * modules/unistr/u32-mbtouc: New file.
36595         * lib/unistr/u8-mbtouc.c: New file.
36596         * lib/unistr/u16-mbtouc.c: New file.
36597         * lib/unistr/u32-mbtouc.c: New file.
36598
36599         * modules/unistr/u8-mbtouc-safe: New file.
36600         * modules/unistr/u16-mbtouc-safe: New file.
36601         * modules/unistr/u32-mbtouc-safe: New file.
36602         * lib/unistr/u8-mbtouc-safe.c: New file.
36603         * lib/unistr/u16-mbtouc-safe.c: New file.
36604         * lib/unistr/u32-mbtouc-safe.c: New file.
36605
36606         * modules/unistr/u8-move: New file.
36607         * modules/unistr/u16-move: New file.
36608         * modules/unistr/u32-move: New file.
36609         * lib/unistr/u8-move.c: New file.
36610         * lib/unistr/u16-move.c: New file.
36611         * lib/unistr/u32-move.c: New file.
36612         * lib/unistr/u-move.h: New file.
36613
36614         * modules/unistr/u8-next: New file.
36615         * modules/unistr/u16-next: New file.
36616         * modules/unistr/u32-next: New file.
36617         * lib/unistr/u8-next.c: New file.
36618         * lib/unistr/u16-next.c: New file.
36619         * lib/unistr/u32-next.c: New file.
36620
36621         * modules/unistr/u8-prev: New file.
36622         * modules/unistr/u16-prev: New file.
36623         * modules/unistr/u32-prev: New file.
36624         * lib/unistr/u8-prev.c: New file.
36625         * lib/unistr/u16-prev.c: New file.
36626         * lib/unistr/u32-prev.c: New file.
36627
36628         * modules/unistr/u8-set: New file.
36629         * modules/unistr/u16-set: New file.
36630         * modules/unistr/u32-set: New file.
36631         * lib/unistr/u8-set.c: New file.
36632         * lib/unistr/u16-set.c: New file.
36633         * lib/unistr/u32-set.c: New file.
36634         * lib/unistr/u-set.h: New file.
36635
36636         * modules/unistr/u8-startswith: New file.
36637         * modules/unistr/u16-startswith: New file.
36638         * modules/unistr/u32-startswith: New file.
36639         * lib/unistr/u8-startswith.c: New file.
36640         * lib/unistr/u16-startswith.c: New file.
36641         * lib/unistr/u32-startswith.c: New file.
36642         * lib/unistr/u-startswith.h: New file.
36643
36644         * modules/unistr/u8-stpcpy: New file.
36645         * modules/unistr/u16-stpcpy: New file.
36646         * modules/unistr/u32-stpcpy: New file.
36647         * lib/unistr/u8-stpcpy.c: New file.
36648         * lib/unistr/u16-stpcpy.c: New file.
36649         * lib/unistr/u32-stpcpy.c: New file.
36650         * lib/unistr/u-stpcpy.h: New file.
36651
36652         * modules/unistr/u8-stpncpy: New file.
36653         * modules/unistr/u16-stpncpy: New file.
36654         * modules/unistr/u32-stpncpy: New file.
36655         * lib/unistr/u8-stpncpy.c: New file.
36656         * lib/unistr/u16-stpncpy.c: New file.
36657         * lib/unistr/u32-stpncpy.c: New file.
36658         * lib/unistr/u-stpncpy.h: New file.
36659
36660         * modules/unistr/u8-strcat: New file.
36661         * modules/unistr/u16-strcat: New file.
36662         * modules/unistr/u32-strcat: New file.
36663         * lib/unistr/u8-strcat.c: New file.
36664         * lib/unistr/u16-strcat.c: New file.
36665         * lib/unistr/u32-strcat.c: New file.
36666         * lib/unistr/u-strcat.h: New file.
36667
36668         * modules/unistr/u8-strchr: New file.
36669         * modules/unistr/u16-strchr: New file.
36670         * modules/unistr/u32-strchr: New file.
36671         * lib/unistr/u8-strchr.c: New file.
36672         * lib/unistr/u16-strchr.c: New file.
36673         * lib/unistr/u32-strchr.c: New file.
36674
36675         * modules/unistr/u8-strcmp: New file.
36676         * modules/unistr/u16-strcmp: New file.
36677         * modules/unistr/u32-strcmp: New file.
36678         * lib/unistr/u8-strcmp.c: New file.
36679         * lib/unistr/u16-strcmp.c: New file.
36680         * lib/unistr/u32-strcmp.c: New file.
36681
36682         * modules/unistr/u8-strcpy: New file.
36683         * modules/unistr/u16-strcpy: New file.
36684         * modules/unistr/u32-strcpy: New file.
36685         * lib/unistr/u8-strcpy.c: New file.
36686         * lib/unistr/u16-strcpy.c: New file.
36687         * lib/unistr/u32-strcpy.c: New file.
36688         * lib/unistr/u-strcpy.h: New file.
36689
36690         * modules/unistr/u8-strcspn: New file.
36691         * modules/unistr/u16-strcspn: New file.
36692         * modules/unistr/u32-strcspn: New file.
36693         * lib/unistr/u8-strcspn.c: New file.
36694         * lib/unistr/u16-strcspn.c: New file.
36695         * lib/unistr/u32-strcspn.c: New file.
36696         * lib/unistr/u-strcspn.h: New file.
36697
36698         * modules/unistr/u8-strdup: New file.
36699         * modules/unistr/u16-strdup: New file.
36700         * modules/unistr/u32-strdup: New file.
36701         * lib/unistr/u8-strdup.c: New file.
36702         * lib/unistr/u16-strdup.c: New file.
36703         * lib/unistr/u32-strdup.c: New file.
36704         * lib/unistr/u-strdup.h: New file.
36705
36706         * modules/unistr/u8-strlen: New file.
36707         * modules/unistr/u16-strlen: New file.
36708         * modules/unistr/u32-strlen: New file.
36709         * lib/unistr/u8-strlen.c: New file.
36710         * lib/unistr/u16-strlen.c: New file.
36711         * lib/unistr/u32-strlen.c: New file.
36712         * lib/unistr/u-strlen.h: New file.
36713
36714         * modules/unistr/u8-strmblen: New file.
36715         * modules/unistr/u16-strmblen: New file.
36716         * modules/unistr/u32-strmblen: New file.
36717         * lib/unistr/u8-strmblen.c: New file.
36718         * lib/unistr/u16-strmblen.c: New file.
36719         * lib/unistr/u32-strmblen.c: New file.
36720
36721         * modules/unistr/u8-strmbtouc: New file.
36722         * modules/unistr/u16-strmbtouc: New file.
36723         * modules/unistr/u32-strmbtouc: New file.
36724         * lib/unistr/u8-strmbtouc.c: New file.
36725         * lib/unistr/u16-strmbtouc.c: New file.
36726         * lib/unistr/u32-strmbtouc.c: New file.
36727
36728         * modules/unistr/u8-strncat: New file.
36729         * modules/unistr/u16-strncat: New file.
36730         * modules/unistr/u32-strncat: New file.
36731         * lib/unistr/u8-strncat.c: New file.
36732         * lib/unistr/u16-strncat.c: New file.
36733         * lib/unistr/u32-strncat.c: New file.
36734         * lib/unistr/u-strncat.h: New file.
36735
36736         * modules/unistr/u8-strncmp: New file.
36737         * modules/unistr/u16-strncmp: New file.
36738         * modules/unistr/u32-strncmp: New file.
36739         * lib/unistr/u8-strncmp.c: New file.
36740         * lib/unistr/u16-strncmp.c: New file.
36741         * lib/unistr/u32-strncmp.c: New file.
36742
36743         * modules/unistr/u8-strncpy: New file.
36744         * modules/unistr/u16-strncpy: New file.
36745         * modules/unistr/u32-strncpy: New file.
36746         * lib/unistr/u8-strncpy.c: New file.
36747         * lib/unistr/u16-strncpy.c: New file.
36748         * lib/unistr/u32-strncpy.c: New file.
36749         * lib/unistr/u-strncpy.h: New file.
36750
36751         * modules/unistr/u8-strnlen: New file.
36752         * modules/unistr/u16-strnlen: New file.
36753         * modules/unistr/u32-strnlen: New file.
36754         * lib/unistr/u8-strnlen.c: New file.
36755         * lib/unistr/u16-strnlen.c: New file.
36756         * lib/unistr/u32-strnlen.c: New file.
36757         * lib/unistr/u-strnlen.h: New file.
36758
36759         * modules/unistr/u8-strpbrk: New file.
36760         * modules/unistr/u16-strpbrk: New file.
36761         * modules/unistr/u32-strpbrk: New file.
36762         * lib/unistr/u8-strpbrk.c: New file.
36763         * lib/unistr/u16-strpbrk.c: New file.
36764         * lib/unistr/u32-strpbrk.c: New file.
36765         * lib/unistr/u-strpbrk.h: New file.
36766
36767         * modules/unistr/u8-strrchr: New file.
36768         * modules/unistr/u16-strrchr: New file.
36769         * modules/unistr/u32-strrchr: New file.
36770         * lib/unistr/u8-strrchr.c: New file.
36771         * lib/unistr/u16-strrchr.c: New file.
36772         * lib/unistr/u32-strrchr.c: New file.
36773
36774         * modules/unistr/u8-strspn: New file.
36775         * modules/unistr/u16-strspn: New file.
36776         * modules/unistr/u32-strspn: New file.
36777         * lib/unistr/u8-strspn.c: New file.
36778         * lib/unistr/u16-strspn.c: New file.
36779         * lib/unistr/u32-strspn.c: New file.
36780         * lib/unistr/u-strspn.h: New file.
36781
36782         * modules/unistr/u8-strstr: New file.
36783         * modules/unistr/u16-strstr: New file.
36784         * modules/unistr/u32-strstr: New file.
36785         * lib/unistr/u8-strstr.c: New file.
36786         * lib/unistr/u16-strstr.c: New file.
36787         * lib/unistr/u32-strstr.c: New file.
36788         * lib/unistr/u-strstr.h: New file.
36789
36790         * modules/unistr/u8-strtok: New file.
36791         * modules/unistr/u16-strtok: New file.
36792         * modules/unistr/u32-strtok: New file.
36793         * lib/unistr/u8-strtok.c: New file.
36794         * lib/unistr/u16-strtok.c: New file.
36795         * lib/unistr/u32-strtok.c: New file.
36796         * lib/unistr/u-strtok.h: New file.
36797
36798         * modules/unistr/u8-uctomb: New file.
36799         * modules/unistr/u16-uctomb: New file.
36800         * modules/unistr/u32-uctomb: New file.
36801         * lib/unistr/u8-uctomb.c: New file.
36802         * lib/unistr/u16-uctomb.c: New file.
36803         * lib/unistr/u32-uctomb.c: New file.
36804
36805         * MODULES.html.sh (Unicode string functions): Add the new modules.
36806
36807 2007-01-08  Bruno Haible  <bruno@clisp.org>
36808
36809         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
36810         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
36811         subdirectories.
36812
36813 2007-01-08  Karl Berry  <karl@gnu.org>
36814
36815         * doc/error.texi: mention that main() fns must set program_name
36816         when progname is used.
36817
36818 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
36819
36820         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
36821         WCTYPE_H is empty, for the benefit of builds from non-distclean
36822         directories.  Problem reported by Eric Blake in
36823         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
36824
36825 2007-01-08  Bruno Haible  <bruno@clisp.org>
36826
36827         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
36828         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
36829         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
36830         PROVIDE_CANONICALIZE_FILENAME_MODE.
36831         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
36832
36833 2007-01-08  Bruno Haible  <bruno@clisp.org>
36834
36835         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
36836         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
36837         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
36838         * lib/fts.c: Likewise.
36839         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
36840
36841 2006-12-25  Bruno Haible  <bruno@clisp.org>
36842
36843         * modules/utf8-ucs4-safe: New file.
36844         * lib/utf8-ucs4-safe.h: New file.
36845         * lib/unistr/utf8-ucs4-safe.c: New file.
36846
36847         * modules/utf16-ucs4-safe: New file.
36848         * lib/utf16-ucs4-safe.h: New file.
36849         * lib/unistr/utf16-ucs4-safe.c: New file.
36850
36851         * MODULES.html.sh (Unicode string functions): Add the new modules.
36852
36853 2007-01-08  Bruno Haible  <bruno@clisp.org>
36854
36855         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
36856         (Depends-on): Add unitypes.
36857         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
36858         (u8_mbtouc_aux): Move out to separate file.
36859         (u8_mbtouc): Use ucs4_t, uint8_t types.
36860         * lib/unistr/utf8-ucs4.c: New file.
36861
36862         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
36863         (Depends-on): Add unitypes.
36864         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
36865         (u16_mbtouc_aux): Move out to separate file.
36866         (u16_mbtouc): Use ucs4_t, uint16_t types.
36867         * lib/unistr/utf16-ucs4.c: New file.
36868
36869         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
36870         (Depends-on): Add unitypes.
36871         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
36872         (u8_uctomb_aux): Move out to separate file.
36873         (u8_uctomb): Use ucs4_t, uint8_t types.
36874         * lib/unistr/ucs4-utf8.c: New file.
36875
36876         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
36877         (Depends-on): Add unitypes.
36878         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
36879         (u16_uctomb_aux): Move out to separate file.
36880         (u16_uctomb): Use ucs4_t, uint16_t types.
36881         * lib/unistr/ucs4-utf16.c: New file.
36882
36883 2006-12-25  Bruno Haible  <bruno@clisp.org>
36884
36885         * modules/unitypes: New file.
36886         * lib/unitypes.h: New file.
36887         * MODULES.html.sh (func_all_modules): New section "Unicode string
36888         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
36889         this section. Add unitypes.
36890
36891 2007-01-08  Bruno Haible  <bruno@clisp.org>
36892
36893         Avoid variable names that conflict with those from libtool.
36894         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
36895         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
36896         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
36897         library_names_spec to acl_library_names_spec, hardcode_* to
36898         acl_hardcode_*.
36899         Reported by Ralf Wildenhues.
36900
36901 2007-01-08  Bruno Haible  <bruno@clisp.org>
36902
36903         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
36904         definition.
36905         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
36906         definition.
36907         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
36908         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
36909         definition.
36910         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
36911         definition.
36912         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
36913         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
36914         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
36915         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
36916         definition.
36917         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
36918         definition.
36919         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
36920         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
36921         GC_USE_<algorithm>.
36922         * lib/gc-libgcrypt.c: Likewise.
36923         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
36924         * modules/gc-arctwo (configure.ac): Likewise.
36925         * modules/gc-des (configure.ac): Likewise.
36926         * modules/gc-hmac-md5 (configure.ac): Likewise.
36927         * modules/gc-hmac-sha1 (configure.ac): Likewise.
36928         * modules/gc-md2 (configure.ac): Likewise.
36929         * modules/gc-md4 (configure.ac): Likewise.
36930         * modules/gc-md5 (configure.ac): Likewise.
36931         * modules/gc-random (configure.ac): Likewise.
36932         * modules/gc-rijndael (configure.ac): Likewise.
36933         * modules/gc-sha1 (configure.ac): Likewise.
36934
36935 2007-01-08  Bruno Haible  <bruno@clisp.org>
36936
36937         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
36938         macro definition.
36939         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
36940         definition.
36941         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
36942         definition.
36943         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
36944         * modules/fcntl-safer (configure.ac): Likewise.
36945         * modules/fopen-safer (configure.ac): Likewise.
36946         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
36947         GNULIB_FWRITEERROR macro definition.
36948
36949 2007-01-08  Bruno Haible  <bruno@clisp.org>
36950
36951         * m4/gnulib-common.m4: New file.
36952         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
36953         (func_get_filelist): Add m4/gnulib-common.m4.
36954
36955 2007-01-08  Bruno Haible  <bruno@clisp.org>
36956
36957         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
36958         command.
36959
36960 2007-01-08  Jim Meyering  <jim@meyering.net>
36961
36962         Use a more robust test for a "can't happen" condition.
36963         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
36964         narrowed the st_size value.  Presuming the "can't happen" condition
36965         is true, that narrowing could conceivably convert an invalid st_size
36966         value into a valid one.  Instead, use a change based on Matthew
36967         Woehlke's original patch.
36968
36969         Slight readability improvement: use an assert-like macro
36970         in place of literal "abort ()" uses.
36971         * lib/fts.c (fts_assert): Define.
36972         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
36973         Use this macro instead of a bare 'abort'.
36974
36975 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
36976
36977         Don't worry about using IRIX 5.3's wctype.h broken definitions;
36978         simply work around them.
36979         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
36980         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
36981         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
36982         declaring.
36983         Don't bother to define as macros, since the standard doesn't require it.
36984         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
36985         longer worry about IRIX 5.3.
36986         (HAVE_WCTYPE_CTMP_BUG): Remove.
36987
36988 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36989
36990         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
36991         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
36992         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36993         Problems reported by Georg Schwarz for IRIX 5.3.
36994
36995         * gnulib-tool (autoconf_minversion): Take the maximum version number
36996         found, not the minimum.  Problem reported by James Youngman.
36997
36998 2007-01-03  Karl Berry  <karl@gnu.org>
36999
37000         * doc/error.texi: new file, explaining interaction with progname.
37001         * doc/gnulib.texi: include it.  Update copyright.
37002
37003 2007-01-03  Simon Josefsson  <simon@josefsson.org>
37004
37005         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
37006         AC_CANONICAL_HOST, to improve autobuild outputs.
37007
37008 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
37009             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37010
37011         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
37012         sockets, server sockets, and other file descriptors.  Count errors
37013         to compute the return value.  Reorder the code a bit to be easier
37014         to follow.  Don't set event bits that were not requested (except
37015         POLLERR and POLLHUP).
37016
37017 2007-01-01  Bruno Haible  <bruno@clisp.org>
37018
37019         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
37020
37021 2007-01-03  Jim Meyering  <jim@meyering.net>
37022
37023         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
37024
37025 2007-01-02  Bruno Haible  <bruno@clisp.org>
37026
37027         * modules/settime (Include): Require timespec.h.
37028         * modules/nanosleep (Include): Likewise.
37029
37030 2007-01-01  Bruno Haible  <bruno@clisp.org>
37031
37032         * gnulib-tool (func_emit_copyright_notice): Bump year.
37033         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
37034
37035 2007-01-01  Bruno Haible  <bruno@clisp.org>
37036
37037         Improve support for OpenBSD.
37038         * build-aux/config.rpath (libname_spec): Export.
37039         (library_names_spec): New variable. Export.
37040         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
37041         library_names_spec from the config.rpath output. Locate shared library
37042         through the name pattern in library_names_spec.
37043
37044 2007-01-01  Eric Blake  <ebb9@byu.net>
37045
37046         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
37047
37048 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
37049
37050         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
37051         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
37052         assume the C locale, and avoid an "eval" that could cause trouble.
37053         Problem with SORT reported by Bob Proulx.
37054
37055         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
37056         Define.  Trivial patch from Henning Nielsen Lund, originally
37057         sent to bug-grep@gnu.org today.
37058
37059 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
37060
37061         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
37062         struct stat.  Problem reported by Henning Nielsen Lund.
37063         * lib/acl.c: Include acl.h first, to check interface.  Don't
37064         bother to include sys/types.h and sys/stat.h again.
37065
37066 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
37067
37068         Import the following change from libc; problem reported by
37069         Sven Verdoolaege.
37070
37071         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
37072
37073         [BZ #1373]
37074         * lib/argp.h: Remove __NTH for __argp_usage inline function.
37075
37076 2006-12-28  Jim Meyering  <jim@meyering.net>
37077
37078         * build-aux/announce-gen: Do not assume that the package
37079         builds any of tar.gz, tar.bz2, and .xdelta files.
37080         Suggestion from Simon Josefsson.
37081
37082 2006-12-28  Simon Josefsson  <simon@josefsson.org>
37083
37084         * modules/announce-gen: New file.
37085
37086 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
37087
37088         * lib/mbchar.h: Just include <wctype.h>; the wctype module
37089         handles its gotchas now.
37090         * lib/mbswidth.c: Likewise.
37091         * lib/wcwidth.h: Likewise.
37092         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
37093         and iswcntrl; the wctype module does this stuff now.
37094         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37095         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37096         * modules/mbchar (Depends-on): Add wctype.
37097         * modules/mbswidth (Depends-on): Likewise.
37098         * modules/wcwidth (Depends-on): Likewise.
37099
37100 2006-12-27  Eric Blake  <ebb9@byu.net>
37101
37102         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
37103         module uses more than what <wctype.h> is required to provide.
37104
37105 2006-12-26  Eric Blake  <ebb9@byu.net>
37106
37107         * gnulib-tool (sed_extract_prog): Avoid space-tab.
37108
37109 2006-12-26  Eric Blake  <ebb9@byu.net>
37110
37111         * modules/absolute-header: New module.
37112         * modules/fcntl (Depends-on): Depend on it.
37113         * modules/inttypes (Depends-on): Likewise.
37114         * modules/stdint (Depends-on): Likewise.
37115         * modules/sys_stat (Depends-on): Likewise.
37116         * modules/wctype (Depends-on): Likewise.
37117         * MODULES.html.sh (Support for building libraries and
37118         executables): Document it.
37119
37120 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
37121
37122         * gnulib-tool (SED): Remove, undoing previous change.
37123         The problem was that it broke coreutils on Solaris, because
37124         "sed --posix" leaked into a makefile.
37125         (sed): New alias, if 'alias' and GNU sed.
37126
37127 2006-12-24  Jim Meyering  <jim@meyering.net>
37128
37129         Work around an fchownat bug in glibc-2.4:
37130         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
37131         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
37132         in spite of the -P option.
37133         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
37134         New macros.
37135         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
37136         * modules/openat (Files): Add lib/fchownat.c.
37137         * lib/openat.c (fchownat): Don't define here.  Move to...
37138         * lib/fchownat.c: ...this new file.
37139
37140 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
37141
37142         Fix bug reported by Bruno Haible in
37143         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
37144         where quotearg.c didn't compile on Mac OS X 10.2 because it
37145         lacks <wchar.h> and wint_t.
37146         * lib/wctype_.h (__wctype_wint_t): New type.
37147         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
37148         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
37149         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
37150         Arg is now of type __wctype_wint_t, not wint_t.
37151         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
37152         substitute HAVE_WINT_T.
37153         * modules/wctype (Files): Add m4/wint_t.m4.
37154         (wctype.h): Substitute HAVE_WINT_T.
37155
37156 2006-12-23  Bruno Haible  <bruno@clisp.org>
37157
37158         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
37159
37160 2006-12-23  Bruno Haible  <bruno@clisp.org>
37161
37162         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
37163         S_ISLNK.
37164         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
37165         mingw.
37166
37167 2006-12-22  Bruno Haible  <bruno@clisp.org>
37168
37169         * lib/copy-file.c: Include acl.h.
37170         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
37171         Close the file descriptors only after being done with copy_acl.
37172         * modules/copy-file (Depends-on): Add acl.
37173
37174 2006-12-22  Bruno Haible  <bruno@clisp.org>
37175
37176         * gnulib-tool (SED): New variable.
37177         Use $SED instead of sed everywhere.
37178
37179 2006-12-22  Bruno Haible  <bruno@clisp.org>
37180
37181         * modules/no-c++: New file.
37182         * m4/no-c++.m4: New file.
37183         * MODULES.html.sh (Support for building libraries and executables):
37184         Add no-c++.
37185
37186 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
37187
37188         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
37189         Include <limits.h>, and use its INT_MAX to rewrite the
37190         j loop so that it does not overflow 'int'.  Problem reported by
37191         Ralf Wildenhues in
37192         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
37193         Play it safe by shifting left by 1 rather than multiplying by 2,
37194         as GCC is less likely to optimize this away when the value
37195         is signed (when it assumes overflow leads to undefined behavior).
37196         Also, don't assume time_t uses two's complement.
37197
37198 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
37199
37200         * MODULES.html.sh: New module wctype.
37201         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
37202         * lib/fnmatch.c: Don't bother to include <wchar.h> before
37203         <wctype.h>, since the new wctype module should fix this.
37204         * lib/quotearg.c: Include <wctype.h> unconditionally, since
37205         the wctype module should arrange for it.
37206         * lib/regex_internal.h: Likewise.
37207         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
37208         since the wctype module should handle this now.
37209         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
37210         * modules/fnmatch (Depends-on): Add wctype.
37211         * modules/quotearg (Depends-on): Likewise.
37212         * modules/regex (Depends-on): Likewise.
37213
37214 2006-12-19  Bruno Haible  <bruno@clisp.org>
37215
37216         * lib/strdup.h [C++]: Wrap definitions in extern "C".
37217         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
37218
37219 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37220
37221         * modules/savewd (Depends-on): Fix dependency on fcntl.
37222
37223 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37224
37225         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
37226         conforms to C99, rather than relying on the user's environment
37227         setting of STDINT_H.
37228
37229 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37230         and Eric Blake  <ebb9@byu.net>
37231
37232         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
37233         This is more consistent with the other defines here.
37234         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
37235         Port to z/OS.  Problem reported by Paul Gilmartin.
37236         Change local vars to use gl_ prefix rather than ac_.
37237         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
37238         with other defines.
37239         * modules/double-slash-root: New module.
37240         * modules/dirname (Files): Remove m4/double-slash-root.m4.
37241         (Depends-on): Add double-slash-root.
37242         * MODULES.html.sh (File system functions): Mention new module.
37243
37244 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
37245
37246         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
37247         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
37248         This is for the benefit of gzip, which doesn't do i18n.
37249
37250 2006-12-12  Jim Meyering  <jim@meyering.net>
37251
37252         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
37253         Reported by Andreas Schwab <schwab@suse.de>.
37254
37255 2006-12-12  Bruno Haible  <bruno@clisp.org>
37256
37257         Merge these changes.
37258         2006-09-05  Bruno Haible  <bruno@clisp.org>
37259         * lib/iconvme.c (iconv_string): No need to save and restore errno when
37260         iconv_alloc succeeded.
37261         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
37262         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
37263         test for " && dest " at the end - dest is always != NULL there. Call
37264         iconv with 4xNULL arguments initially, to reset the state. Call iconv
37265         with 2xNULL arguments, also to flush the state storage. Handle the
37266         IRIX iconv behaviour. Realloc the final result, to throw away unused
37267         memory.
37268
37269 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
37270
37271         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
37272         and fchmodat unconditionally, since glibc 2.4 has them.
37273         Problem reported by Arkadiusz Miskiewicz.
37274
37275 2006-12-10  Bruno Haible  <bruno@clisp.org>
37276
37277         * gnulib-tool (func_import): Show the include files only for those
37278         modules that are copied and specified.
37279         Reported by Karl Berry.
37280
37281 2006-12-08  Jim Meyering  <jim@meyering.net>
37282
37283         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
37284         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
37285
37286         * build-aux/announce-gen: Add two new options, both optional:
37287         --bootstrap-tools=TOOL_LIST
37288               a comma-separated list of tools, e.g.,
37289               autoconf,automake,bison,gnulib
37290         --gnulib-snapshot-date=DATE
37291               if gnulib is in the bootstrap tool list,
37292               then report this as the snapshot date.
37293               If not specified, use the current date/time.
37294               If you specify a date here, be sure it's UTC.
37295
37296 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37297
37298         * tests/test-argp-2.sh: Fix test to match actual output.
37299         (func_compare): Fix sed script to be portable.
37300
37301 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
37302
37303         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
37304         workaround for this case.  It is not autoconfigured now; offhand
37305         it's hard to see how to autoconfigure it.
37306
37307 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
37308
37309         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
37310         a directory that is about to be chowned.  Such a directory's
37311         initial file permissions should permit the owner only and this
37312         should not be changed until after the chown, since the group and
37313         other bits would be incorrect if they granted permission before
37314         the chown.
37315
37316         Fix porting problem for iswctype reported by Georg Schwarz in:
37317         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
37318         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
37319         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
37320         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
37321         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37322
37323 2006-12-03  Jim Meyering  <jim@meyering.net>
37324
37325         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
37326         p->fts_statp may not yet be defined.
37327         (fts_read): Instead, set it in the caller, once p->fts_statp is
37328         sure to be defined, and corresponds to a top-level directory.
37329         This bug made du -x fail.  Here's the coreutils test case:
37330         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
37331         Reported by Mike Frysinger.
37332
37333 2006-12-01  Jim Meyering  <jim@meyering.net>
37334
37335         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
37336         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
37337         Reported by Simon Josefsson.
37338
37339 2006-11-30  Jim Meyering  <jim@meyering.net>
37340
37341         * m4/warning.m4: Use the all-permissive copyright notice
37342         recommended by RMS (rather than LGPL).
37343         * m4/vararrays.m4: Likewise.
37344         * m4/flexmember.m4: Likewise.
37345
37346 2006-11-29  Bruno Haible  <bruno@clisp.org>
37347
37348         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37349         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
37350         using +=.
37351         Reported by Simon Josefsson <simon@josefsson.org>.
37352
37353 2006-11-28  James Youngman <jay@gnu.org>
37354
37355         * README: Advise users that they might find the bug-gnulib@gnu.org
37356         and autotools-announce@gnu.org mailing lists useful.
37357
37358 2006-11-28  Bruno Haible  <bruno@clisp.org>
37359
37360         * m4/ptrdiff_max.m4: Remove file.
37361
37362 2006-11-21  Bruno Haible  <bruno@clisp.org>
37363
37364         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
37365         _AC_COMPUTE_INT.
37366         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37367         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
37368         _AC_COMPUTE_INT.
37369         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37370         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
37371         _AC_COMPUTE_INT.
37372         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37373
37374 2006-11-28  Jim Meyering  <jim@meyering.net>
37375
37376         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
37377         warning from "gcc -Wshadow" about shadowing the builtin.
37378
37379 2006-11-27  Bruno Haible  <bruno@clisp.org>
37380
37381         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
37382         _AC_COMPUTE_INT.
37383         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37384
37385 2006-11-27  Bruno Haible  <bruno@clisp.org>
37386             Paul Eggert  <eggert@cs.ucla.edu>
37387
37388         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
37389
37390 2006-11-26  Bruno Haible  <bruno@clisp.org>
37391
37392         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37393         noinst_LTLIBRARIES.
37394
37395 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
37396             Bruno Haible  <bruno@clisp.org>
37397
37398         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
37399         if compiling with "gcc -ansi".
37400
37401 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
37402
37403         Fix some incompatibilities with gcc -ansi -pedantic.
37404         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
37405         if compiling pedantically with GCC, unless it's C99 or later.
37406         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
37407         it mishandles gcc -ansi -pedantic as well.
37408         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
37409         if gcc -pedantic.
37410         * lib/regexec.c (check_node_accept_bytes): Don't use auto
37411         initializers for struct if -pedantic, unless it's C99 or later.
37412
37413 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
37414
37415         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
37416         Don't close an fd more than once. Identical atimes indicate
37417         success, not failure.
37418
37419 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
37420
37421         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
37422
37423 2006-11-23  Jim Meyering  <jim@meyering.net>
37424
37425         * build-aux/announce-gen: New file.  From coreutils.
37426
37427 2006-11-22  Jim Meyering  <jim@meyering.net>
37428
37429         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
37430         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
37431         (fts_read): Use a temporary to narrow the overused st_size member
37432         before using it in a switch statement.  Reported by Matthew Woehlke.
37433
37434         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
37435         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
37436
37437 2006-11-20  Bruno Haible  <bruno@clisp.org>
37438
37439         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
37440         changequote instead of pairs of brackets.
37441         Reported by Andreas Schwab <schwab@suse.de>.
37442
37443 2006-11-21  Jim Meyering  <jim@meyering.net>
37444
37445         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
37446         so as to remain compatible with older compilers.
37447         Patch from Michael Deutschmann.
37448
37449 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
37450
37451         * MODULES.html.sh (File system functions): Add openat.
37452
37453         * lib/openat.h (rpl_fstatat): New macro, if
37454         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
37455         (fstatat): Define to rpl_fstatat under the same conditions,
37456         unless COMPILING_FSTATAT.
37457         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
37458         seems to have the bug.
37459         * lib/fstatat.c: New file.
37460         * modules/openat (Files): Add it.
37461
37462 2006-11-20  Bruno Haible  <bruno@clisp.org>
37463
37464         * Makefile: New file.
37465
37466 2006-11-20  Jim Meyering  <jim@meyering.net>
37467
37468         The beginnings of syntax-related checks for gnulib.
37469         * lib/Makefile: New file.
37470         * lib/t-idcache: New script.  Ensure that the two halves of
37471         idcache.c stay in sync.
37472
37473         * lib/idcache.c: Adjust comments in user- and group- portions to
37474         be more accurate, and to be consistent with one another.
37475
37476 2006-11-20  Jim Meyering  <jim@meyering.net>
37477
37478         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
37479         continue using the flexible array member (thus, this module performs
37480         half as many malloc calls), with the addition that...
37481         (getgroup, getuser): Consistently record a non-match via an empty
37482         "name" string, and map an empty string match to a NULL return value.
37483         * modules/idcache (Depends-on): Re-add flexmember.
37484
37485         * lib/idcache.c (getuser): Remove all uses of the register keyword.
37486         (getuidbyname, getgroup, getgidbyname): Likewise.
37487
37488         Use cleaner syntax: NULL rather than 0.
37489         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
37490
37491 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
37492
37493         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
37494         It mishandled the case where the group was missing.
37495         Problem reported by Greg Schafer.
37496         * modules/idcache: Likewise.
37497
37498 2006-11-18  Jim Meyering  <jim@meyering.net>
37499
37500         * check-module (%exempt_header): Add exception for some
37501         conditionally-included headers.
37502
37503         * modules/i-ring (Depends-on): Add verify.
37504         (License): Change to LGPL.
37505
37506 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
37507
37508         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
37509         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
37510         and inttostr.h.  Use snprintf rather than uinttostr, so that
37511         LGPLed code doesn't depend on GPLed.
37512
37513 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
37514
37515         * modules/inline (License): Change from GPL to LGPL.
37516
37517 2006-11-17  Jim Meyering  <jim@meyering.net>
37518
37519         * modules/d-type (License): Switch to LGPL.
37520
37521 2006-11-15  Bruno Haible  <bruno@clisp.org>
37522
37523         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
37524
37525 2006-11-15  Eric Blake  <ebb9@byu.net>
37526
37527         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
37528         the module dependency.
37529
37530 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37531             Bruno Haible  <bruno@clisp.org>
37532
37533         * gnulib-tool (func_create_testdir): Add license consistency check.
37534
37535 2006-11-15  Eric Blake  <ebb9@byu.net>
37536
37537         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
37538         random "(cached)" in configure output.
37539
37540 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37541
37542         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
37543         test for conforming inttypes.h is both announced and cached.
37544
37545         * MODULES.html.sh (seen_modules, seen_files): New variables.
37546         (func_module): Rewrite to use a few less gnulib-tool and sed
37547         invocations.  Avoid a couple of quadratic algorithms for ...
37548         (missed_modules, missed_files): ... these, with ...
37549         (func_append, func_tmpdir): ... these new functions, from
37550         gnulib-tool.  Analogously, install traps for cleanup.
37551
37552         * tests/test-gc.c (main): Remove unused variables.
37553         * tests/test-read-file.c: Include stdlib.h, for 'free'.
37554
37555 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
37556
37557         * modules/inttostr (License): Change to LGPL.
37558
37559 2006-11-14  Eric Blake  <ebb9@byu.net>
37560
37561         * modules/tempname (License): Change to LGPL.
37562
37563 2006-11-14  Eric Blake  <ebb9@byu.net>
37564
37565         * doc/functions.texi (Function Portability): *printf functions on
37566         Cygwin now understand all POSIX size specifiers.
37567
37568 2006-11-14  Bruno Haible  <bruno@clisp.org>
37569
37570         * modules/c-ctype (License): Change to LGPL.
37571
37572 2006-11-12  Bruno Haible  <bruno@clisp.org>
37573
37574         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
37575         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
37576         for GNOME libraries, for which the include files are installed in
37577         subdirectories of $prefix/include.
37578
37579 2006-11-12  Bruno Haible  <bruno@clisp.org>
37580
37581         * m4/lib-link.m4: Require at least autoconf-2.54.
37582         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
37583         name to underscores for the --with option.
37584
37585 2006-11-13  Bruno Haible  <bruno@clisp.org>
37586
37587         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
37588         the tests directory.
37589         Reported by Ralf Wildenhues.
37590
37591 2006-11-13  Bruno Haible  <bruno@clisp.org>
37592
37593         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
37594         (func_emit_initmacro_end): Undo the override here.
37595         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
37596         Works around the famous automake error in coreutils.
37597
37598 2006-11-13  Eric Blake  <ebb9@byu.net>
37599
37600         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
37601         element, not its node.
37602
37603 2006-11-12  Bruno Haible  <bruno@clisp.org>
37604
37605         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
37606         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
37607
37608 2006-11-12  Bruno Haible  <bruno@clisp.org>
37609
37610         * gnulib-tool: New option --local-symlink.
37611         (func_usage): Document it.
37612         (lsymbolic): New variable.
37613         (func_import, func_create_testdir): If --symlink was not specified,
37614         test whether --local-symlink was specified and the file comes from
37615         the local_gnulib_dir.
37616
37617 2006-11-12  Bruno Haible  <bruno@clisp.org>
37618
37619         * gnulib-tool (func_ln): New function.
37620         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
37621
37622 2006-11-12  Bruno Haible  <bruno@clisp.org>
37623
37624         Finish support for source files in subdirectories.
37625         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
37626         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
37627         AUTOMAKE_OPTIONS.
37628         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
37629
37630 2006-11-12  Bruno Haible  <bruno@clisp.org>
37631
37632         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37633         EXTRA_lib_SOURCES augmentation.
37634         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
37635
37636 2006-11-12  Jim Meyering  <jim@meyering.net>
37637
37638         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
37639         file descriptors.  This also averts a failure on systems with
37640         native openat support when a traversed directory lacks "x" access.
37641         * lib/fts_.h: Include "i-ring.h"
37642         (struct FTS) [fts_fd_ring]: New member.
37643         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
37644         (FCHDIR): Add parentheses.
37645         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
37646         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
37647         When descending, rather than simply closing the previous
37648         fts_cwd_fd value, push that file descriptor onto the ring.
37649         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
37650         (fts_open): Initialize the new fd_ring member.
37651         (fts_close): Clear the ring.
37652         (fts_safe_changedir): When possible, use our new fd_ring to skip
37653         the diropen and fstat and dev/ino comparison that would normally
37654         accompany a virtual `chdir ("..")'.
37655
37656         * modules/fts (Depends-on): Add i-ring.
37657         * modules/i-ring: New module.
37658         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
37659         * m4/i-ring.m4: New file.
37660
37661 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37662
37663         * gnulib-tool (func_create_testdir): Fix replacement of
37664         `build-aux' in configure.ac.  Run autotools in gltests
37665         subdirectory.
37666         (func_create_testdir, func_create_megatestdir, test): There is
37667         no need for '--force' in most autotool invocations in a new
37668         tree.  Actually fail the whole test if any of the tools, or the
37669         configure or make stages fail.
37670
37671         Sync from Automake.
37672         * build-aux/gnupload: Revert last change.  Add pointer to upload
37673         instructions of the GNU Maintenance Instructions.
37674         Suggestion by Karl Berry.
37675
37676 2006-11-10  Jim Meyering  <jim@meyering.net>
37677
37678         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
37679
37680 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37681
37682         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
37683         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
37684         (bind_textdomain_codeset) [! ENABLE_NLS]:
37685         Evaluate all the arguments.  That way, callers get compatible behavior
37686         if the arguments have side effects.  Also, it avoids some GCC
37687         diagnostics in some cases; Joel E. Denny reported problems when Bison
37688         was configured with --enable-gcc-warnigs.
37689
37690 2006-11-10  Jim Meyering  <jim@meyering.net>
37691
37692         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
37693         relevant options in CFLAGS (like -O, -fno-inline) are taken into
37694         account.
37695
37696 2006-11-10  Jim Meyering  <jim@meyering.net>
37697
37698         * modules/inline: New file/module.
37699         * modules/xalloc (Files): Remove m4/inline.m4.
37700         (Depends-on): Add inline, instead.
37701         * modules/oset: Likewise.
37702         * modules/list: Likewise.
37703
37704 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37705
37706         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
37707         Problem reported by Matthew Woehlke.
37708
37709 2006-11-09  Bruno Haible  <bruno@clisp.org>
37710
37711         * lib/tempname.c (gen_tempname): Remove variant that invokes
37712         __gen_tempname.
37713         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
37714         __gen_tempname.
37715
37716 2006-11-08  Bruno Haible  <bruno@clisp.org>
37717
37718         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
37719         to 'yes' instead of 'cross-compiling'.
37720
37721 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
37722
37723         * lib/quotearg.h (quotearg_free): New decl.
37724         * lib/quotearg.c (quotearg_free): New function.
37725         (slot0, nslots, slotvec0, slotvec):
37726         Now file-scope so that quotearg_free can get at them.
37727
37728 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37729
37730         Sync from Automake.
37731         * build-aux/gnupload: Add missing 'gnu' to example URL.
37732         Report by Karl Berry.
37733
37734 2006-11-08  Bruno Haible  <bruno@clisp.org>
37735
37736         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
37737         Suggested by Paul Eggert.
37738
37739 2006-11-08  Jim Meyering  <jim@meyering.net>
37740
37741         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
37742         It's already included if !_LIBC.
37743         (fts_safe_changedir): Add a comment.
37744
37745 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37746
37747         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
37748         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
37749         Matthew Woehlke.
37750
37751         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
37752         definitions up, to avoid colliding with change below.
37753         (static_inline) [HAVE_INLINE]: New macro.
37754         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
37755         Provide extern decls when !HAVE_INLINE.  Do not define unless
37756         static_inline is defined, either by us or by xmalloc.c.  Use
37757         static_inline rather than static inline.
37758         (XCALLOC): Optimize sizeof(T) = 1 case.
37759         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
37760
37761 2006-11-07  Bruno Haible  <bruno@clisp.org>
37762
37763         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
37764         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
37765         AC_C_INLINE.
37766         * modules/xalloc (Files): Add m4/inline.m4.
37767
37768 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37769
37770         * README: Fix typo.
37771         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
37772         (Miscellanous Notes): ...from this.
37773
37774 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37775
37776         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
37777         Mention that offsetof should be used instead of sizeof.
37778         From Bruno Haible.
37779
37780 2006-11-07  Bruno Haible  <bruno@clisp.org>
37781
37782         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
37783
37784 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
37785
37786         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
37787         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
37788         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
37789         (gl_tree_add_before, gl_tree_add_after):
37790         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
37791         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
37792         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37793         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
37794         (gl_linked_add_after, gl_linked_add_at): Likewise.
37795         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
37796         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
37797         (gl_tree_add_before, gl_tree_add_after): Likewise.
37798         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
37799         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
37800         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37801
37802 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37803
37804         * lib/gl_oset.h: Use C comment style, not C++ comment style.
37805
37806 2006-11-06  Bruno Haible  <bruno@clisp.org>
37807
37808         * m4/inline.m4: New file.
37809         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
37810         * modules/list (Files): Add m4/inline.m4.
37811         * modules/oset (Files): Likewise.
37812
37813 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
37814
37815         * lib/idcache.c: Include <stddef.h>, for offsetof.
37816         (struct userid.name): Change from char * to a flexible array member.
37817         All uses changed.
37818         * modules/idcache (Depends-on): Add flexmember.
37819
37820         * MODULES.html.sh (Core language properties): New module flexmember.
37821         * modules/flexmember, m4/flexmember.m4: New files.
37822
37823         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
37824         inline functions that are identical with the old xnmalloc_inline,
37825         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
37826         that we can avoid some unnecessary integer multiplications and
37827         divisions in the common case where the element size is known at
37828         compile time.
37829         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
37830         needed.
37831         (xnboundedmalloc): Remove.
37832         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
37833         arguments, for consistency with rest of this header.
37834         (xcharalloc): Rewrite using XNMALLOC.
37835         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
37836         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
37837         versions have been moved to lib/xalloc.h and renamed to be the
37838         non-*_inline versions.
37839         (xmalloc, xrealloc): Implement without reference to the xnmalloc
37840         and xnrealloc functions, since those functions are now inline and
37841         now call us.
37842         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
37843         renaming described above.
37844         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
37845         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
37846         captures the dependency in AC_C_INLINE.
37847
37848         New module canonicalize-lgpl, proposed by Charles Wilson in
37849         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
37850         with a few small changes afterwards.
37851         * MODULES.html.sh (File system functions): New module
37852         canonicalize-lgpl.
37853         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
37854         and canonicalize_file_name.
37855         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
37856         * modules/canonicalize-lgpl: New files.
37857
37858 2006-11-05  Bruno Haible  <bruno@clisp.org>
37859
37860         * gnulib-tool (func_import, func_create_testdir): Create directories
37861         also for files in subdirectories of lib/.
37862
37863 2006-11-05  Bruno Haible  <bruno@clisp.org>
37864
37865         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
37866         ANSI C compliant.
37867
37868 2006-11-03  Bruno Haible  <bruno@clisp.org>
37869
37870         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
37871         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
37872         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
37873         (xnboundedmalloc): New inline function.
37874         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
37875         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
37876         xmalloc.
37877         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
37878         xmalloc.
37879         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
37880         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
37881         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
37882         xmalloc.
37883         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
37884         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
37885         xmalloc.
37886         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
37887         gl_tree_add_after): Use XMALLOC instead of xmalloc.
37888         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
37889         xmalloc.
37890         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
37891         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
37892         gl_tree_add_after): Use XMALLOC instead of xmalloc.
37893         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
37894         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
37895         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
37896         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
37897
37898 2006-11-03  Bruno Haible  <bruno@clisp.org>
37899
37900         * lib/c-ctype.h [C++]: Define functions without name mangling.
37901         * lib/fwriteerror.h [C++]: Likewise.
37902         * lib/gcd.h [C++]: Likewise.
37903         * lib/linebreak.h [C++]: Likewise.
37904
37905 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
37906
37907         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
37908         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
37909         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
37910         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
37911         Check for functions and headers just once.
37912         Check for declaration of canonicalize_file_name.
37913         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
37914
37915 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
37916
37917         * gnulib-tool (func_import): Fix typo in actioncmd.
37918
37919 2006-11-02  Bruno Haible  <bruno@clisp.org>
37920
37921         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
37922         newline sequence in the Makefile.am snippet as a space, like "make"
37923         does.
37924         Reported by Roger Persson <perrog@gmail.com>.
37925
37926 2006-11-01  Bruno Haible  <bruno@clisp.org>
37927
37928         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
37929         already declared in <string.h>.
37930         * lib/strcase.h (strncasecmp): Don't declare it if yes.
37931
37932 2006-11-01  Bruno Haible  <bruno@clisp.org>
37933
37934         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
37935         * lib/strcase.h: Include <string.h>.
37936         (strcasecmp): Define to rpl_strcasecmp here.
37937
37938 2006-11-01  Bruno Haible  <bruno@clisp.org>
37939
37940         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
37941
37942 2006-11-01  Eric Blake  <ebb9@byu.net>
37943
37944         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
37945
37946         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
37947
37948 2006-10-29  Bruno Haible  <bruno@clisp.org>
37949
37950         Make it compile in C++ mode.
37951         * lib/full-write.c (full_rw): Add a cast.
37952
37953 2006-11-01  Bruno Haible  <bruno@clisp.org>
37954
37955         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
37956         be POSIX compliant.
37957         Reported by Roger Persson <perrog@gmail.com>.
37958
37959 2006-11-01  Eric Blake  <ebb9@byu.net>
37960
37961         * lib/getopt_.h: Fix comments.
37962
37963 2006-10-31  Eric Blake  <ebb9@byu.net>
37964
37965         * modules/tmpdir (Depends-on): Add sys_stat.
37966         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
37967         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
37968         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
37969         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
37970         tempname.
37971
37972 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
37973
37974         Avoid some C++ diagnostics reported by Bruno Haible.
37975         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
37976         xmalloc.
37977         (quotearg_alloc): Use xcharalloc rather than xmalloc.
37978         (struct slotvec): Move to top level.
37979         (quotearg_n_options): Rewrite to avoid xmalloc.
37980         * lib/xalloc.h (xcharalloc): New function.
37981         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
37982         [defined __cplusplus]: Add function template that provides result
37983         type propagation.  This part of the change is from Bruno Haible.
37984
37985 2006-10-29  Bruno Haible  <bruno@clisp.org>
37986
37987         Make it compile in C++ mode.
37988         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
37989         * lib/strnlen1.c (strnlen1): Cast memchr result.
37990         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
37991         * lib/clean-temp.c (string_equals, string_hash): Add casts.
37992         (create_temp_dir): Rename local variable 'template'.
37993         (compile_csharp_using_sscli): Add cast.
37994         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
37995         * lib/findprog.c (find_in_path): Likewise.
37996         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
37997         * lib/wait-process.c (register_slave_subprocess): Likewise.
37998
37999 2006-10-22  Bruno Haible  <bruno@clisp.org>
38000
38001         * modules/tsearch: New file.
38002         * lib/tsearch.h: New file.
38003         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
38004         * m4/tsearch.m4: New file.
38005         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
38006
38007 2006-10-29  Eric Blake  <ebb9@byu.net>
38008
38009         * lib/arcfour.c: Assume config.h.
38010         * lib/arctwo.c: Likewise.
38011         * lib/base64.c: Likewise.
38012         * lib/check-version.c: Likewise.
38013         * lib/crc.c: Likewise.
38014         * lib/des.c: Likewise.
38015         * lib/gc-gnulib.c: Likewise.
38016         * lib/gc-libgcrypt.c: Likewise.
38017         * lib/gc-pbkdf2-sha1.c: Likewise.
38018         * lib/getaddrinfo.c: Likewise.
38019         * lib/getdelim.c: Likewise.
38020         * lib/getline.c: Likewise.
38021         * lib/hmac-md5.c: Likewise.
38022         * lib/hmac-sha1.c: Likewise.
38023         * lib/iconvme.c: Likewise.
38024         * lib/md2.c: Likewise.
38025         * lib/md4.c: Likewise.
38026         * lib/memxor.c: Likewise.
38027         * lib/read-file.c: Likewise.
38028         * lib/readline.c: Likewise.
38029         * lib/rijndael-alg-fst.c: Likewise.
38030         * lib/rijndael-api-fst.c: Likewise.
38031         * lib/xgetdomainname.c: Likewise.
38032
38033 2006-10-28  Eric Blake  <ebb9@byu.net>
38034
38035         * lib/xstrndup.c: Assume config.h.
38036
38037 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
38038
38039         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
38040         stat-macros.h is now for our own macros, whereas stat_h is for
38041         macros in the <sys/stat.h> name space.
38042         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
38043         (STAT_MACROS_H): Remove.
38044         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
38045         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
38046         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
38047         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
38048         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
38049         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
38050         Move these macros to ...
38051         * lib/stat_.h: here.  Don't include stat-macros.h.
38052         * lib/canonicalize.c: Don't include stat-macros.h.
38053         * lib/chown.c: Likewise.
38054         * lib/euidaccess.c: Likewise.
38055         * lib/file-type.c: Likewise.
38056         * lib/filemode.c: Likewise.
38057         * lib/glob.c: Likewise.
38058         * lib/isapipe.c: Likewise.
38059         * lib/lchown.c: Likewise.
38060         * lib/lstat.c: Likewise.
38061         * lib/mkdir-p.c: Likewise.
38062         * lib/rmdir.c: Likewise.
38063         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
38064         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
38065         unless mkdir isn't declared, to speed up 'configure'.
38066         Always create sys/stat.h, since it's unlikely any real sys/stat.h
38067         would define all the S_* symbols.
38068         * modules/canonicalize (Depends-on):
38069         Depend on sys_stat, not stat-macros.
38070         * modules/chown: Likewise.
38071         * modules/euidaccess: Likewise.
38072         * modules/filemode: Likewise.
38073         * modules/file-type: Likewise.
38074         * modules/glob: Likewise.
38075         * modules/isapipe: Likewise.
38076         * modules/lchown: Likewise.
38077         * modules/lstat: Likewise.
38078         * modules/mkancesdirs: Likewise.
38079         * modules/rmdir: Likewise.
38080         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
38081         * modules/modechange: Likewise.
38082         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
38083         (configure.ac): Remove gl_STAT_MACROS.
38084         * modules/sys_stat (Depends-on): Remove stat-macros.
38085
38086 2006-10-27  Bruno Haible  <bruno@clisp.org>
38087
38088         * m4/signed.m4: Remove file.
38089         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
38090         invocation.
38091         * modules/vasnprintf (Files): Remove m4/signed.m4.
38092
38093 2006-10-27  Bruno Haible  <bruno@clisp.org>
38094
38095         Update to GNU gettext 0.16.
38096         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
38097         m4/inttypes-h.m4, m4/signed.m4.
38098         * m4/gettext.m4: Update to GNU gettext 0.16.
38099         * m4/intl.m4: New file, from GNU gettext.
38100         * m4/intldir.m4: New file, from GNU gettext.
38101         * config/srclist.txt: Update
38102
38103 2006-10-27  Eric Blake  <ebb9@byu.net>
38104
38105         * MODULES.html.sh: Document tempname.
38106         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
38107         dependencies.
38108         (Files): Move lib/tempname.c...
38109         * modules/tempname: ...to this new module.
38110         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
38111         (gl_PREREQ_TEMPNAME): Move...
38112         * m4/tempname.m4: ...to this new file.
38113         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
38114         * modules/sys_stat (Depends-on): Add stat-macros.
38115         * lib/stat_.h (includes): Pick up stat macros.
38116         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
38117         if stat macros are broken.
38118         * lib/tempname.c (includes): No need to include "stat-macros.h".
38119         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
38120         (direxists, __path_search) [!_LIBC]: Don't compile these in
38121         gnulib; the tmpdir module covers that.
38122         * lib/tempname.h: New file.
38123
38124 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
38125
38126         * COPYING: Explain how gnulib-tool converts licence headers.
38127         Almost all wording by Eric Blake.
38128
38129 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
38130
38131         * lib/mbchar.h (is_basic_table): Make read-only.
38132         * lib/mbchar.c (is_basic_table): Likewise.
38133         Reported by John Darrington.
38134
38135 2006-10-25  Bruno Haible  <bruno@clisp.org>
38136
38137         * lib/progname.h (set_program_name): Undefine before defining.
38138
38139 2006-10-25  Bruno Haible  <bruno@clisp.org>
38140
38141         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
38142         false for non-gcc C++ compilers.
38143         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38144
38145 2006-10-24  Bruno Haible  <bruno@clisp.org>
38146
38147         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
38148         iconv implementations like Irix iconv.
38149
38150 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38151
38152         * modules/vararrays: New file.
38153         * m4/vararrays.m4: New file, taken from diffutils.
38154         * MODULES.html.sh: New module vararrays.
38155
38156 2006-10-24  Karl Berry  <karl@gnu.org>
38157
38158         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
38159         Don't call GNU Unix.
38160
38161 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38162
38163         * users.txt: Add Libtool.
38164
38165         Sync from Libtool:
38166
38167         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38168
38169         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
38170         to gnulib's policy of including config.h unconditionally.
38171
38172 2006-10-24  Bruno Haible  <bruno@clisp.org>
38173
38174         * modules/wcwidth (Files): Add m4/wint_t.m4.
38175         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
38176         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
38177
38178 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38179
38180         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
38181         to pacify GCC with some -W flags enabled.  Problem reported by
38182         Bruno Haible.
38183
38184 2006-10-24  Jim Meyering  <jim@meyering.net>
38185
38186         * MODULES.html.sh: Remove uinttostr.  It's not a module.
38187         Reported by Karl Berry.
38188
38189 2006-10-23  Bruno Haible  <bruno@clisp.org>
38190
38191         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
38192
38193 2006-10-24  Bruno Haible  <bruno@clisp.org>
38194
38195         * lib/gl_list.h: Use C comment style, not C++ comment style.
38196
38197 2006-10-23  Eric Blake  <ebb9@byu.net>
38198
38199         * lib/getaddrinfo.c (includes): Add missing include.
38200
38201 2006-10-23  Bruno Haible  <bruno@clisp.org>
38202             Paul Eggert  <eggert@cs.ucla.edu>
38203
38204         Ability to rename obstack_free.
38205         * lib/obstack.h (__obstack_free): New macro. Declare instead of
38206         obstack_free.
38207         (obstack_free): Invoke the __obstack_free macro.
38208         * lib/obstack.c (obstack_free): Use __obstack_free macro.
38209
38210 2006-10-23  Bruno Haible  <bruno@clisp.org>
38211             Paul Eggert  <eggert@cs.ucla.edu>
38212
38213         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
38214         __argc, __argv from the declaration. (They are defined as macros on
38215         mingw.)
38216
38217 2006-10-22  Bruno Haible  <bruno@clisp.org>
38218
38219         * doc/gnulib-intro.texi: New file.
38220         * doc/gnulib.texi: Include it.
38221
38222 2006-10-21  Bruno Haible  <bruno@clisp.org>
38223
38224         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
38225         "Introduction", "Miscellanous Notes", "Particular Modules".
38226
38227 2006-10-21  Bruno Haible  <bruno@clisp.org>
38228
38229         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38230         Change mostlyclean-local rule to avoid sh syntax error from bash
38231         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
38232
38233 2006-10-23  Jim Meyering  <jim@meyering.net>
38234
38235         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
38236         in place of snprintf.
38237
38238         * modules/inttostr (Files): Add lib/uinttostr.c.
38239         * lib/uinttostr.c (inttostr): New file/function.
38240         * lib/inttostr.h (uinttostr): Declare.
38241         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
38242         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
38243         Add uinttostr.
38244         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
38245
38246 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
38247
38248         * lib/canonicalize.c (ELOOP): Define if not already defined.
38249         Problem reported by Bruno Haible in
38250         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
38251
38252 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
38253
38254         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
38255         Problem reported by Perry Smith and Ville Laurikari.
38256
38257         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
38258         uses.
38259
38260 2006-10-19  Bruno Haible  <bruno@clisp.org>
38261
38262         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
38263         for mingw.
38264
38265 2006-10-19  Bruno Haible  <bruno@clisp.org>
38266
38267         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
38268         Needed for mingw.
38269
38270 2006-10-19  Bruno Haible  <bruno@clisp.org>
38271
38272         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
38273
38274 2006-10-19  Bruno Haible  <bruno@clisp.org>
38275
38276         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
38277         it.
38278
38279 2006-10-19  Bruno Haible  <bruno@clisp.org>
38280
38281         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
38282         invocation.
38283
38284 2006-10-19  Bruno Haible  <bruno@clisp.org>
38285
38286         * gnulib-tool (func_create_testdir): Don't include ftruncate and
38287         mountlist by default.
38288
38289 2006-10-16  Bruno Haible  <bruno@clisp.org>
38290
38291         * lib/c-strstr.c: Include c-strstr.h.
38292
38293 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
38294
38295         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
38296         in a slash.
38297
38298 2006-10-18  Bruno Haible  <bruno@clisp.org>
38299
38300         * lib/lock.h [C++]: Wrap definitions in extern "C".
38301
38302 2006-10-18  Bruno Haible  <bruno@clisp.org>
38303
38304         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
38305         gl_LIBOBJS list.
38306
38307 2006-10-18  Bruno Haible  <bruno@clisp.org>
38308
38309         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
38310
38311 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
38312
38313         * lib/xstrtol.h: Include gettext.h.
38314         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
38315         Problem reported by Eric Blake.
38316         * modules/xstrtol (Depends-on): Add gettext-h.
38317
38318 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
38319
38320         * lib/strftime.c (advance): New macro.
38321         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
38322         incomplete type, so you can't add 0 to it.  Problem and patch
38323         reported by Eelco Dolstra for dietlibc.
38324
38325 2006-10-18  Jim Meyering  <jim@meyering.net>
38326
38327         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
38328         type for a local, and rename it: s/up/user_proc/.
38329
38330 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
38331
38332         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
38333         READ_UTMP_USER_PROCESS.
38334         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
38335
38336 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
38337
38338         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
38339         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
38340
38341 2006-10-17  Eric Blake  <ebb9@byu.net>
38342
38343         * lib/sigprocmask.c (sigprocmask): Fix typo.
38344
38345         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
38346
38347         * modules/clean-temp (Makefile.am): Don't add to make output...
38348         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
38349         config.h.
38350
38351 2006-10-17  Bruno Haible  <bruno@clisp.org>
38352
38353         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
38354         differently if DEFAULT_TEXT_DOMAIN is set.
38355
38356 2006-10-16  Bruno Haible  <bruno@clisp.org>
38357
38358         * lib/clean-temp.c: Include fwriteerror.h.
38359
38360 2006-10-16  Bruno Haible  <bruno@clisp.org>
38361
38362         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
38363
38364 2006-10-16  Bruno Haible  <bruno@clisp.org>
38365
38366         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
38367         * lib/sigprocmask.h: Include <sys/types.h>.
38368         (sigset_t): Use the system's definition if present.
38369
38370 2006-10-17  Eric Blake  <ebb9@byu.net>
38371
38372         * lib/xvasprintf.c (includes): Assume config.h.
38373         * lib/xasprintf.c (includes): Likewise.
38374
38375 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38376
38377         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
38378         at least as wide as intmax_t.
38379
38380 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
38381
38382         (Imported from Automake.)
38383         * build-aux/gnupload: Update to version 1.1 of directive file.
38384
38385 2006-10-16  Eric Blake  <ebb9@byu.net>
38386
38387         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
38388         match Automake 1.10a.
38389
38390 2006-10-14  Bruno Haible  <bruno@clisp.org>
38391
38392         * modules/sigprocmask: New file.
38393         * lib/sigprocmask.h: New file.
38394         * lib/sigprocmask.c: New file.
38395         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
38396         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
38397         request sigprocmask.o.
38398         (gl_PREREQ_SIGPROCMASK): New macro.
38399         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
38400         (Depends-on): Add sigprocmask.
38401         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
38402         gt_SIGNALBLOCKING. Test for 'raise' only once.
38403         * lib/fatal-signal.c: Include sigprocmask.h.
38404         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
38405         unblock_fatal_signals): Define always.
38406         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38407         sigprocmask.
38408
38409 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
38410
38411         Sync from Automake.
38412         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
38413         which incorrectly sets the mode of an existing destination
38414         directory.  In some cases the unpatched install-sh could do the
38415         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
38416         system.  We hope this is rare in practice, but it's clearly worth
38417         fixing.  Problem reported by Alex Unleashed in
38418         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
38419         Also, don't bother to check for -m bugs unless we're using -m;
38420         suggested by Stepan Kasal.
38421
38422 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38423
38424         Sync from Automake.
38425         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
38426         `-c' flag, so they appear at the same position as in %FASTDEP%
38427         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
38428         which ignores unknown options only after the first non-option.
38429         Bug report against M4 by Nelson H. F. Beebe.
38430
38431 2006-10-13  Jim Meyering  <jim@meyering.net>
38432
38433         Fix a bug in yesterday's change.
38434         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
38435         p->fts_statp->st_dev would be used uninitialized.
38436         Ensures that we always call fts_stat on the very first entry.
38437         Miklos Szeredi reported that find -xdev stopped working.
38438
38439 2006-10-12  Bruno Haible  <bruno@clisp.org>
38440
38441         * gnulib-tool (func_get_automake_snippet): Append an automatically
38442         computed EXTRA_DIST augmentation.
38443         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
38444         * modules/alloca-opt (Makefile.am): Likewise.
38445         * modules/allocsa (Makefile.am): Likewise.
38446         * modules/arcfour (Makefile.am): Likewise.
38447         * modules/arctwo (Makefile.am): Likewise.
38448         * modules/argmatch (Makefile.am): Likewise.
38449         * modules/argz (Makefile.am): Likewise.
38450         * modules/atexit (Makefile.am): Likewise.
38451         * modules/backupfile (Makefile.am): Likewise.
38452         * modules/byteswap (Makefile.am): Likewise.
38453         * modules/c-strtod (Makefile.am): Likewise.
38454         * modules/c-strtold (Makefile.am): Likewise.
38455         * modules/calloc (Makefile.am): Likewise.
38456         * modules/canon-host (Makefile.am): Likewise.
38457         * modules/canonicalize (Makefile.am): Likewise.
38458         * modules/chdir-long (Makefile.am): Likewise.
38459         * modules/chdir-safer (Makefile.am): Likewise.
38460         * modules/check-version (Makefile.am): Likewise.
38461         * modules/chown (Makefile.am): Likewise.
38462         * modules/cloexec (Makefile.am): Likewise.
38463         * modules/close-stream (Makefile.am): Likewise.
38464         * modules/closeout (Makefile.am): Likewise.
38465         * modules/crc (Makefile.am): Likewise.
38466         * modules/csharpexec (Makefile.am): Likewise.
38467         * modules/cycle-check (Makefile.am): Likewise.
38468         * modules/des (Makefile.am): Likewise.
38469         * modules/dev-ino (Makefile.am): Likewise.
38470         * modules/dirfd (Makefile.am): Likewise.
38471         * modules/dirname (Makefile.am): Likewise.
38472         * modules/dup2 (Makefile.am): Likewise.
38473         * modules/eealloc (Makefile.am): Likewise.
38474         * modules/error (Makefile.am): Likewise.
38475         * modules/euidaccess (Makefile.am): Likewise.
38476         * modules/exclude (Makefile.am): Likewise.
38477         * modules/exitfail (Makefile.am): Likewise.
38478         * modules/fcntl-safer (Makefile.am): Likewise.
38479         * modules/fcntl (Makefile.am): Likewise.
38480         * modules/file-type (Makefile.am): Likewise.
38481         * modules/fileblocks (Makefile.am): Likewise.
38482         * modules/filemode (Makefile.am): Likewise.
38483         * modules/filenamecat (Makefile.am): Likewise.
38484         * modules/fnmatch (Makefile.am): Likewise.
38485         * modules/fopen-safer (Makefile.am): Likewise.
38486         * modules/fpending (Makefile.am): Likewise.
38487         * modules/fprintftime (Makefile.am): Likewise.
38488         * modules/free (Makefile.am): Likewise.
38489         * modules/fsusage (Makefile.am): Likewise.
38490         * modules/ftruncate (Makefile.am): Likewise.
38491         * modules/fts (Makefile.am): Likewise.
38492         * modules/gc-arcfour (Makefile.am): Likewise.
38493         * modules/gc-des (Makefile.am): Likewise.
38494         * modules/gc-hmac-md5 (Makefile.am): Likewise.
38495         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
38496         * modules/gc-md4 (Makefile.am): Likewise.
38497         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
38498         * modules/gc-sha1 (Makefile.am): Likewise.
38499         * modules/gc (Makefile.am): Likewise.
38500         * modules/getaddrinfo (Makefile.am): Likewise.
38501         * modules/getcwd (Makefile.am): Likewise.
38502         * modules/getdelim (Makefile.am): Likewise.
38503         * modules/getdomainname (Makefile.am): Likewise.
38504         * modules/getgroups (Makefile.am): Likewise.
38505         * modules/gethostname (Makefile.am): Likewise.
38506         * modules/gethrxtime (Makefile.am): Likewise.
38507         * modules/getline (Makefile.am): Likewise.
38508         * modules/getloadavg (Makefile.am): Likewise.
38509         * modules/getlogin_r (Makefile.am): Likewise.
38510         * modules/getndelim2 (Makefile.am): Likewise.
38511         * modules/getopt (Makefile.am): Likewise.
38512         * modules/getpagesize (Makefile.am): Likewise.
38513         * modules/getpass-gnu (Makefile.am): Likewise.
38514         * modules/getpass (Makefile.am): Likewise.
38515         * modules/getsubopt (Makefile.am): Likewise.
38516         * modules/gettime (Makefile.am): Likewise.
38517         * modules/gettimeofday (Makefile.am): Likewise.
38518         * modules/getugroups (Makefile.am): Likewise.
38519         * modules/getusershell (Makefile.am): Likewise.
38520         * modules/glob (Makefile.am): Likewise.
38521         * modules/group-member (Makefile.am): Likewise.
38522         * modules/hard-locale (Makefile.am): Likewise.
38523         * modules/hash (Makefile.am): Likewise.
38524         * modules/hmac-md5 (Makefile.am): Likewise.
38525         * modules/hmac-sha1 (Makefile.am): Likewise.
38526         * modules/human (Makefile.am): Likewise.
38527         * modules/idcache (Makefile.am): Likewise.
38528         * modules/imaxabs (Makefile.am): Likewise.
38529         * modules/imaxdiv (Makefile.am): Likewise.
38530         * modules/inet_ntop (Makefile.am): Likewise.
38531         * modules/inet_pton (Makefile.am): Likewise.
38532         * modules/intprops (Makefile.am): Likewise.
38533         * modules/inttostr (Makefile.am): Likewise.
38534         * modules/inttypes (Makefile.am): Likewise.
38535         * modules/isapipe (Makefile.am): Likewise.
38536         * modules/javaversion (Makefile.am): Likewise.
38537         * modules/lchmod (Makefile.am): Likewise.
38538         * modules/lchown (Makefile.am): Likewise.
38539         * modules/localcharset (Makefile.am): Likewise.
38540         * modules/long-options (Makefile.am): Likewise.
38541         * modules/lstat (Makefile.am): Likewise.
38542         * modules/malloc (Makefile.am): Likewise.
38543         * modules/mathl (Makefile.am): Likewise.
38544         * modules/mbchar (Makefile.am): Likewise.
38545         * modules/md2 (Makefile.am): Likewise.
38546         * modules/md4 (Makefile.am): Likewise.
38547         * modules/md5 (Makefile.am): Likewise.
38548         * modules/memcasecmp (Makefile.am): Likewise.
38549         * modules/memchr (Makefile.am): Likewise.
38550         * modules/memcmp (Makefile.am): Likewise.
38551         * modules/memcoll (Makefile.am): Likewise.
38552         * modules/memcpy (Makefile.am): Likewise.
38553         * modules/memmem (Makefile.am): Likewise.
38554         * modules/memmove (Makefile.am): Likewise.
38555         * modules/mempcpy (Makefile.am): Likewise.
38556         * modules/memrchr (Makefile.am): Likewise.
38557         * modules/memset (Makefile.am): Likewise.
38558         * modules/memxor (Makefile.am): Likewise.
38559         * modules/mkancesdirs (Makefile.am): Likewise.
38560         * modules/mkdir-p (Makefile.am): Likewise.
38561         * modules/mkdir (Makefile.am): Likewise.
38562         * modules/mkdtemp (Makefile.am): Likewise.
38563         * modules/mkstemp (Makefile.am): Likewise.
38564         * modules/mktime (Makefile.am): Likewise.
38565         * modules/modechange (Makefile.am): Likewise.
38566         * modules/mountlist (Makefile.am): Likewise.
38567         * modules/nanosleep (Makefile.am): Likewise.
38568         * modules/obstack (Makefile.am): Likewise.
38569         * modules/openat (Makefile.am): Likewise.
38570         * modules/pagealign_alloc (Makefile.am): Likewise.
38571         * modules/pathmax (Makefile.am): Likewise.
38572         * modules/physmem (Makefile.am): Likewise.
38573         * modules/poll (Makefile.am): Likewise.
38574         * modules/posixtm (Makefile.am): Likewise.
38575         * modules/posixver (Makefile.am): Likewise.
38576         * modules/putenv (Makefile.am): Likewise.
38577         * modules/quote (Makefile.am): Likewise.
38578         * modules/quotearg (Makefile.am): Likewise.
38579         * modules/raise (Makefile.am): Likewise.
38580         * modules/read-file (Makefile.am): Likewise.
38581         * modules/readline (Makefile.am): Likewise.
38582         * modules/readlink (Makefile.am): Likewise.
38583         * modules/readtokens (Makefile.am): Likewise.
38584         * modules/readutmp (Makefile.am): Likewise.
38585         * modules/realloc (Makefile.am): Likewise.
38586         * modules/regex (Makefile.am): Likewise.
38587         * modules/rename-dest-slash (Makefile.am): Likewise.
38588         * modules/rename (Makefile.am): Likewise.
38589         * modules/rijndael (Makefile.am): Likewise.
38590         * modules/rmdir (Makefile.am): Likewise.
38591         * modules/rpmatch (Makefile.am): Likewise.
38592         * modules/safe-read (Makefile.am): Likewise.
38593         * modules/safe-write (Makefile.am): Likewise.
38594         * modules/same-inode (Makefile.am): Likewise.
38595         * modules/same (Makefile.am): Likewise.
38596         * modules/save-cwd (Makefile.am): Likewise.
38597         * modules/savedir (Makefile.am): Likewise.
38598         * modules/setenv (Makefile.am): Likewise.
38599         * modules/settime (Makefile.am): Likewise.
38600         * modules/sha1 (Makefile.am): Likewise.
38601         * modules/sig2str (Makefile.am): Likewise.
38602         * modules/snprintf (Makefile.am): Likewise.
38603         * modules/stat-macros (Makefile.am): Likewise.
38604         * modules/stat-time (Makefile.am): Likewise.
38605         * modules/stdbool (Makefile.am): Likewise.
38606         * modules/stdint (Makefile.am): Likewise.
38607         * modules/stdlib-safer (Makefile.am): Likewise.
38608         * modules/stpcpy (Makefile.am): Likewise.
38609         * modules/stpncpy (Makefile.am): Likewise.
38610         * modules/strcase (Makefile.am): Likewise.
38611         * modules/strcasestr (Makefile.am): Likewise.
38612         * modules/strchrnul (Makefile.am): Likewise.
38613         * modules/strcspn (Makefile.am): Likewise.
38614         * modules/strdup (Makefile.am): Likewise.
38615         * modules/strerror (Makefile.am): Likewise.
38616         * modules/strftime (Makefile.am): Likewise.
38617         * modules/strndup (Makefile.am): Likewise.
38618         * modules/strnlen (Makefile.am): Likewise.
38619         * modules/strpbrk (Makefile.am): Likewise.
38620         * modules/strsep (Makefile.am): Likewise.
38621         * modules/strstr (Makefile.am): Likewise.
38622         * modules/strtod (Makefile.am): Likewise.
38623         * modules/strtoimax (Makefile.am): Likewise.
38624         * modules/strtok_r (Makefile.am): Likewise.
38625         * modules/strtol (Makefile.am): Likewise.
38626         * modules/strtoll (Makefile.am): Likewise.
38627         * modules/strtoul (Makefile.am): Likewise.
38628         * modules/strtoull (Makefile.am): Likewise.
38629         * modules/strtoumax (Makefile.am): Likewise.
38630         * modules/strverscmp (Makefile.am): Likewise.
38631         * modules/sys_socket (Makefile.am): Likewise.
38632         * modules/sys_stat (Makefile.am): Likewise.
38633         * modules/sysexits (Makefile.am): Likewise.
38634         * modules/time_r (Makefile.am): Likewise.
38635         * modules/timegm (Makefile.am): Likewise.
38636         * modules/timespec (Makefile.am): Likewise.
38637         * modules/tmpfile-safer (Makefile.am): Likewise.
38638         * modules/trim (Makefile.am): Likewise.
38639         * modules/unistd-safer (Makefile.am): Likewise.
38640         * modules/unlinkdir (Makefile.am): Likewise.
38641         * modules/unlocked-io (Makefile.am): Likewise.
38642         * modules/userspec (Makefile.am): Likewise.
38643         * modules/utime (Makefile.am): Likewise.
38644         * modules/utimecmp (Makefile.am): Likewise.
38645         * modules/utimens (Makefile.am): Likewise.
38646         * modules/vasnprintf (Makefile.am): Likewise.
38647         * modules/vasprintf (Makefile.am): Likewise.
38648         * modules/vsnprintf (Makefile.am): Likewise.
38649         * modules/xalloc (Makefile.am): Likewise.
38650         * modules/xgetcwd (Makefile.am): Likewise.
38651         * modules/xnanosleep (Makefile.am): Likewise.
38652         * modules/xreadlink (Makefile.am): Likewise.
38653         * modules/xstrtod (Makefile.am): Likewise.
38654         * modules/xstrtol (Makefile.am): Likewise.
38655         * modules/xstrtold (Makefile.am): Likewise.
38656         * modules/yesno (Makefile.am): Likewise.
38657         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
38658
38659 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38660
38661         * modules/error (Makefile.am): Distribute files through
38662         EXTRA_DIST, not lib_SOURCES.
38663
38664 2006-10-12  Eric Blake  <ebb9@byu.net>
38665
38666         * modules/error (Makefile.am): Distribute files in /lib.
38667         * modules/obstack (Makefile.am): Likewise.
38668
38669 2006-10-12  Bruno Haible  <bruno@clisp.org>
38670
38671         * modules/acl (Makefile.am): Distribute all files in lib/ through
38672         EXTRA_DIST.
38673         * modules/arcfour (Makefile.am): Likewise.
38674         * modules/arctwo (Makefile.am): Likewise.
38675         * modules/argmatch (Makefile.am): Likewise.
38676         * modules/argz (Makefile.am): Likewise.
38677         * modules/atexit (Makefile.am): Likewise.
38678         * modules/backupfile (Makefile.am): Likewise.
38679         * modules/c-strtod (Makefile.am): Likewise.
38680         * modules/c-strtold (Makefile.am): Likewise.
38681         * modules/calloc (Makefile.am): Likewise.
38682         * modules/canon-host (Makefile.am): Likewise.
38683         * modules/canonicalize (Makefile.am): Likewise.
38684         * modules/chdir-long (Makefile.am): Likewise.
38685         * modules/chdir-safer (Makefile.am): Likewise.
38686         * modules/check-version (Makefile.am): Likewise.
38687         * modules/chown (Makefile.am): Likewise.
38688         * modules/cloexec (Makefile.am): Likewise.
38689         * modules/close-stream (Makefile.am): Likewise.
38690         * modules/closeout (Makefile.am): Likewise.
38691         * modules/crc (Makefile.am): Likewise.
38692         * modules/cycle-check (Makefile.am): Likewise.
38693         * modules/des (Makefile.am): Likewise.
38694         * modules/dirfd (Makefile.am): Likewise.
38695         * modules/dirname (Makefile.am): Likewise.
38696         * modules/dup2 (Makefile.am): Likewise.
38697         * modules/euidaccess (Makefile.am): Likewise.
38698         * modules/exclude (Makefile.am): Likewise.
38699         * modules/exitfail (Makefile.am): Likewise.
38700         * modules/fcntl-safer (Makefile.am): Likewise.
38701         * modules/file-type (Makefile.am): Likewise.
38702         * modules/fileblocks (Makefile.am): Likewise.
38703         * modules/filemode (Makefile.am): Likewise.
38704         * modules/filenamecat (Makefile.am): Likewise.
38705         * modules/fnmatch (Makefile.am): Likewise.
38706         * modules/fopen-safer (Makefile.am): Likewise.
38707         * modules/fpending (Makefile.am): Likewise.
38708         * modules/fprintftime (Makefile.am): Likewise.
38709         * modules/free (Makefile.am): Likewise.
38710         * modules/fsusage (Makefile.am): Likewise.
38711         * modules/ftruncate (Makefile.am): Likewise.
38712         * modules/fts (Makefile.am): Likewise.
38713         * modules/gc (Makefile.am): Likewise.
38714         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
38715         * modules/getaddrinfo (Makefile.am): Likewise.
38716         * modules/getcwd (Makefile.am): Likewise.
38717         * modules/getdelim (Makefile.am): Likewise.
38718         * modules/getdomainname (Makefile.am): Likewise.
38719         * modules/getgroups (Makefile.am): Likewise.
38720         * modules/gethostname (Makefile.am): Likewise.
38721         * modules/gethrxtime (Makefile.am): Likewise.
38722         * modules/getline (Makefile.am): Likewise.
38723         * modules/getloadavg (Makefile.am): Likewise.
38724         * modules/getlogin_r (Makefile.am): Likewise.
38725         * modules/getopt (Makefile.am): Likewise.
38726         * modules/getpass (Makefile.am): Likewise.
38727         * modules/getpass-gnu (Makefile.am): Likewise.
38728         * modules/getsubopt (Makefile.am): Likewise.
38729         * modules/gettime (Makefile.am): Likewise.
38730         * modules/gettimeofday (Makefile.am): Likewise.
38731         * modules/getugroups (Makefile.am): Likewise.
38732         * modules/getusershell (Makefile.am): Likewise.
38733         * modules/glob (Makefile.am): Likewise.
38734         * modules/group-member (Makefile.am): Likewise.
38735         * modules/hard-locale (Makefile.am): Likewise.
38736         * modules/hash (Makefile.am): Likewise.
38737         * modules/hmac-md5 (Makefile.am): Likewise.
38738         * modules/hmac-sha1 (Makefile.am): Likewise.
38739         * modules/human (Makefile.am): Likewise.
38740         * modules/idcache (Makefile.am): Likewise.
38741         * modules/imaxabs (Makefile.am): Likewise.
38742         * modules/imaxdiv (Makefile.am): Likewise.
38743         * modules/inet_ntop (Makefile.am): Likewise.
38744         * modules/inet_pton (Makefile.am): Likewise.
38745         * modules/inttostr (Makefile.am): Likewise.
38746         * modules/isapipe (Makefile.am): Likewise.
38747         * modules/lchown (Makefile.am): Likewise.
38748         * modules/long-options (Makefile.am): Likewise.
38749         * modules/lstat (Makefile.am): Likewise.
38750         * modules/malloc (Makefile.am): Likewise.
38751         * modules/mathl (Makefile.am): Likewise.
38752         * modules/mbchar (Makefile.am): Likewise.
38753         * modules/md2 (Makefile.am): Likewise.
38754         * modules/md4 (Makefile.am): Likewise.
38755         * modules/md5 (Makefile.am): Likewise.
38756         * modules/memcasecmp (Makefile.am): Likewise.
38757         * modules/memchr (Makefile.am): Likewise.
38758         * modules/memcmp (Makefile.am): Likewise.
38759         * modules/memcoll (Makefile.am): Likewise.
38760         * modules/memcpy (Makefile.am): Likewise.
38761         * modules/memmem (Makefile.am): Likewise.
38762         * modules/memmove (Makefile.am): Likewise.
38763         * modules/mempcpy (Makefile.am): Likewise.
38764         * modules/memrchr (Makefile.am): Likewise.
38765         * modules/memset (Makefile.am): Likewise.
38766         * modules/memxor (Makefile.am): Likewise.
38767         * modules/mkancesdirs (Makefile.am): Likewise.
38768         * modules/mkdir (Makefile.am): Likewise.
38769         * modules/mkdir-p (Makefile.am): Likewise.
38770         * modules/mkdtemp (Makefile.am): Likewise.
38771         * modules/mkstemp (Makefile.am): Likewise.
38772         * modules/mktime (Makefile.am): Likewise.
38773         * modules/modechange (Makefile.am): Likewise.
38774         * modules/mountlist (Makefile.am): Likewise.
38775         * modules/nanosleep (Makefile.am): Likewise.
38776         * modules/openat (Makefile.am): Likewise.
38777         * modules/pagealign_alloc (Makefile.am): Likewise.
38778         * modules/physmem (Makefile.am): Likewise.
38779         * modules/poll (Makefile.am): Likewise.
38780         * modules/posixtm (Makefile.am): Likewise.
38781         * modules/posixver (Makefile.am): Likewise.
38782         * modules/putenv (Makefile.am): Likewise.
38783         * modules/quote (Makefile.am): Likewise.
38784         * modules/quotearg (Makefile.am): Likewise.
38785         * modules/raise (Makefile.am): Likewise.
38786         * modules/read-file (Makefile.am): Likewise.
38787         * modules/readline (Makefile.am): Likewise.
38788         * modules/readlink (Makefile.am): Likewise.
38789         * modules/readtokens (Makefile.am): Likewise.
38790         * modules/readutmp (Makefile.am): Likewise.
38791         * modules/realloc (Makefile.am): Likewise.
38792         * modules/regex (Makefile.am): Likewise.
38793         * modules/rename (Makefile.am): Likewise.
38794         * modules/rename-dest-slash (Makefile.am): Likewise.
38795         * modules/rijndael (Makefile.am): Likewise.
38796         * modules/rmdir (Makefile.am): Likewise.
38797         * modules/rpmatch (Makefile.am): Likewise.
38798         * modules/safe-read (Makefile.am): Likewise.
38799         * modules/safe-write (Makefile.am): Likewise.
38800         * modules/same (Makefile.am): Likewise.
38801         * modules/save-cwd (Makefile.am): Likewise.
38802         * modules/savedir (Makefile.am): Likewise.
38803         * modules/setenv (Makefile.am): Likewise.
38804         * modules/settime (Makefile.am): Likewise.
38805         * modules/sha1 (Makefile.am): Likewise.
38806         * modules/sig2str (Makefile.am): Likewise.
38807         * modules/snprintf (Makefile.am): Likewise.
38808         * modules/stdlib-safer (Makefile.am): Likewise.
38809         * modules/stpcpy (Makefile.am): Likewise.
38810         * modules/stpncpy (Makefile.am): Likewise.
38811         * modules/strcase (Makefile.am): Likewise.
38812         * modules/strcasestr (Makefile.am): Likewise.
38813         * modules/strchrnul (Makefile.am): Likewise.
38814         * modules/strcspn (Makefile.am): Likewise.
38815         * modules/strdup (Makefile.am): Likewise.
38816         * modules/strerror (Makefile.am): Likewise.
38817         * modules/strftime (Makefile.am): Likewise.
38818         * modules/strndup (Makefile.am): Likewise.
38819         * modules/strnlen (Makefile.am): Likewise.
38820         * modules/strpbrk (Makefile.am): Likewise.
38821         * modules/strsep (Makefile.am): Likewise.
38822         * modules/strstr (Makefile.am): Likewise.
38823         * modules/strtod (Makefile.am): Likewise.
38824         * modules/strtoimax (Makefile.am): Likewise.
38825         * modules/strtok_r (Makefile.am): Likewise.
38826         * modules/strtol (Makefile.am): Likewise.
38827         * modules/strtoll (Makefile.am): Likewise.
38828         * modules/strtoul (Makefile.am): Likewise.
38829         * modules/strtoull (Makefile.am): Likewise.
38830         * modules/strtoumax (Makefile.am): Likewise.
38831         * modules/strverscmp (Makefile.am): Likewise.
38832         * modules/time_r (Makefile.am): Likewise.
38833         * modules/timegm (Makefile.am): Likewise.
38834         * modules/tmpfile-safer (Makefile.am): Likewise.
38835         * modules/unistd-safer (Makefile.am): Likewise.
38836         * modules/unlinkdir (Makefile.am): Likewise.
38837         * modules/userspec (Makefile.am): Likewise.
38838         * modules/utime (Makefile.am): Likewise.
38839         * modules/utimecmp (Makefile.am): Likewise.
38840         * modules/utimens (Makefile.am): Likewise.
38841         * modules/vasnprintf (Makefile.am): Likewise.
38842         * modules/vasprintf (Makefile.am): Likewise.
38843         * modules/vsnprintf (Makefile.am): Likewise.
38844         * modules/xalloc (Makefile.am): Likewise.
38845         * modules/xgetcwd (Makefile.am): Likewise.
38846         * modules/xnanosleep (Makefile.am): Likewise.
38847         * modules/xreadlink (Makefile.am): Likewise.
38848         * modules/xstrtod (Makefile.am): Likewise.
38849         * modules/xstrtol (Makefile.am): Likewise.
38850         * modules/xstrtold (Makefile.am): Likewise.
38851         * modules/yesno (Makefile.am): Likewise.
38852
38853 2006-10-12  Jim Meyering  <jim@meyering.net>
38854
38855         * m4/getloadavg.m4: Revert the change below.
38856
38857         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
38858         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
38859         fail with a symlink, which is what coreutils' ./bootstrap now
38860         creates by default.
38861
38862 2006-10-12  Bruno Haible  <bruno@clisp.org>
38863
38864         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
38865         mingw.
38866         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
38867         MSVC and mingw explicitly.
38868
38869 2006-10-11  Simon Josefsson  <jas@extundo.com>
38870             Bruno Haible  <bruno@clisp.org>
38871
38872         Add support for multiple gnulib-tool invocations in the scope of a
38873         single configure.ac file.
38874         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
38875         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
38876         with the same contents as the _LIBADD variable.
38877         (func_emit_initmacro_start, func_emit_initmacro_end,
38878         func_emit_initmacro_done): New functions.
38879         (func_import, func_create_testdir): Invoke them. Allow the identifiers
38880         gl_LIBOBJS and gl_LTLIBOBJS.
38881
38882 2006-10-11  Bruno Haible  <bruno@clisp.org>
38883
38884         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
38885         (func_create_testdir): Don't create po/Makefile.am, don't invoke
38886         autoreconf. Instead, invoke autopoint explicitly but move back the
38887         *.m4 files from gnulib.
38888
38889 2006-10-11  Bruno Haible  <bruno@clisp.org>
38890
38891         * gnulib-tool (func_usage): Make module names after --create-testdir
38892         optional.
38893         (func_create_testdir): If no module was specified, use nearly all
38894         modules.
38895
38896 2006-10-12  Jim Meyering  <jim@meyering.net>
38897
38898         Big performance improvement for fts-based tools that use FTS_NOSTAT.
38899         Avoid spurious inode-mismatch problems on non-POSIX file systems.
38900         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
38901         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
38902         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
38903         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
38904         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
38905         (fts_set_stat_required): New function.
38906         (fts_open): Defer the calls to fts_stat, if possible or requested.
38907         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
38908         into fts_stat itself.
38909         (fts_read): Perform any required (deferred) fts_stat call.
38910         (fts_build): Likewise, for the directory we're about to open and read.
38911         In the readdir loop, carefully decide whether each entry will require
38912         an eventual call to fts_stat, using dirent.d_type info if available.
38913         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
38914         a command line argument into this function.  Update all callers.
38915         Map a return value of FTS_DOT to FTS_D for a command line argument.
38916         * modules/fts (Depends-on): Add d-type.  Alphabetize.
38917         Thanks to Miklos Szeredi for his tenacity and for the initial
38918         bug report about "find" failing on a FUSE-based file system.
38919
38920         * lib/fts.c (fts_open): Use consistent indentation.
38921
38922 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38923
38924         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
38925         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
38926         reported by Jim Meyering.  All uses of cache variables renamed
38927         to match Autoconf's.
38928         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
38929         the other one.
38930
38931         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
38932         Fix misspelling in diagnostic.
38933
38934 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
38935
38936         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
38937         defined.  Problem reported by Matthew Woehlke.
38938
38939         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
38940         Add support for Tandem NonStop R series.
38941         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
38942         Use new macro.
38943
38944         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
38945         (has_trailing_slash): Omit size arg; all callers changed.
38946         Omit 'inline', since it doesn't help performance and we'd
38947         need to configure it.
38948         Don't count //, ///, etc. as having a trailing slash.
38949         As a side effect, this removes a C99ism reported by Matthew Woehlke.
38950         (rpl_rename_dest_slash): On failure, use rename's errno rather
38951         than (in some cases) an incorrect or junk errno.
38952         Simplify code by removing need to compute length; this does
38953         cause it to make two passes instead of one over the file name,
38954         but it's worth it.
38955
38956         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
38957         change, since Autoconf's version may no longer be appropriate now
38958         that we are using CVS Autoconf's version.  Add support for Tandem.
38959
38960 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
38961             Bruno Haible  <bruno@clisp.org>
38962
38963         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
38964         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
38965         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
38966         gl_AC_TYPE_LONG_LONG.
38967
38968         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
38969         instead of HAVE_LONG_LONG.
38970         * lib/printf-args.c (printf_fetchargs): Likewise.
38971         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
38972         * lib/vasnprintf.c (VASNPRINTF): Likewise.
38973         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
38974         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
38975         gl_AC_TYPE_LONG_LONG.
38976
38977 2006-10-11  Bruno Haible  <bruno@clisp.org>
38978
38979         * m4/longlong.m4: Add comments.
38980         * m4/ulonglong.m4: Likewise.
38981
38982 2006-10-10  Bruno Haible  <bruno@clisp.org>
38983
38984         Make it possible to #define stpcpy, strdup to aliases.
38985         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
38986         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
38987
38988 2006-10-10  Bruno Haible  <bruno@clisp.org>
38989
38990         Make it possible to #define gcd to an alias.
38991         * lib/gcd.c: Include config.h.
38992
38993 2006-10-10  Bruno Haible  <bruno@clisp.org>
38994
38995         Make it possible to #define c_isascii to an alias.
38996         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
38997         defined. Undefine the macros before defining them, to avoid gcc
38998         warnings.
38999         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
39000         define NO_C_CTYPE_MACROS early.
39001
39002 2006-10-10  Bruno Haible  <bruno@clisp.org>
39003
39004         Make it possible to #define set_program_name to an alias.
39005         * lib/progname.c: Don't undefine set_program_name; instead, undefine
39006         ENABLE_RELOCATABLE early.
39007
39008 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
39009
39010         Port to Tandem NSK OSS, which has 64-bit signed int but at most
39011         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
39012         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
39013         More generally, don't assume that 64-bit signed int is available
39014         if unsigned int is, and vice versa.
39015         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
39016         unsigned symbols, not on their signed counterparts.
39017         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
39018         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
39019         (UINT64_C, UINTMAX_C):
39020         Likewise.
39021         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
39022         unsigned counterparts.
39023         (Have_long_long, Unsigned): New macros.
39024         (Int): Renamed from INT.
39025         (strtoimax): Use the new macros.
39026         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
39027         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
39028         * modules/inttypes (inttypes.h): Substitute
39029         HAVE_UNSIGNED_LONG_LONG_INT.
39030         * modules/stdint (stdint.h): Likewise.
39031         (Files): Add m4/ulonglong.m4.
39032
39033 2006-10-10  Bruno Haible  <bruno@clisp.org>
39034
39035         Fix a gcc -Wshadow warning.
39036         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
39037         to 'bucket'.
39038         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
39039         gl_linked_indexof_from_to): Likewise.
39040         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
39041         Likewise.
39042         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
39043         Likewise.
39044         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
39045         Reported by Eric Blake.
39046
39047 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
39048
39049         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
39050         for NetBSD.  Problem reported by Bruno Haible.
39051
39052 2006-10-09  Jim Meyering  <jim@meyering.net>
39053
39054         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
39055         Patch from Bruno Haible.
39056
39057 2006-10-09  Jim Meyering  <jim@meyering.net>
39058
39059         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
39060         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
39061         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
39062
39063 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39064
39065         Don't include <config.h> twice; this doesn't work in some cases,
39066         e.g., when config.h has "#define intmax_t long long int" and
39067         we include <config.h>, <inttypes.h>, <config.h> in that order.
39068         Problem reported by Matthew Woehlke in:
39069         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
39070         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
39071         * lib/fts-cycle.c: Don't include config.h.
39072         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
39073         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
39074         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
39075         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
39076         inttypes.h.
39077         * lib/xstrtoumax.c: Likewise.
39078         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
39079         __strtol and the like, so that this module is more like its siblings.
39080         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
39081         Remove; no longer needed now that we assume gnulib inttypes.h.
39082
39083 2006-10-08  Bruno Haible  <bruno@clisp.org>
39084
39085         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
39086         option.
39087
39088 2006-10-07  Jim Meyering  <jim@meyering.net>
39089
39090         * modules/inttypes (inttypes.h): Revert what seems to have been
39091         an inadvertent part of today's change: use "|", not "/" in the
39092         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
39093
39094 2006-10-07  Bruno Haible  <bruno@clisp.org>
39095
39096         * modules/sublist: New file.
39097
39098 2006-10-07  Bruno Haible  <bruno@clisp.org>
39099
39100         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
39101         * modules/argz (argz.h): Likewise.
39102         * modules/arpa_inet (arpa/inet.h): Likewise.
39103         * modules/byteswap (byteswap.h): Likewise.
39104         * modules/configmake (configmake.h): Likewise.
39105         * modules/fcntl (fcntl.h): Likewise.
39106         * modules/fnmatch (fnmatch.h): Likewise.
39107         * modules/getopt (getopt.h): Likewise.
39108         * modules/glob (glob.h): Likewise.
39109         * modules/inttypes (inttypes.h): Likewise.
39110         * modules/netinet_in (netinet/in.h): Likewise.
39111         * modules/poll (poll.h): Likewise.
39112         * modules/stdbool (stdbool.h): Likewise.
39113         * modules/stdint (stdint.h): Likewise.
39114         * modules/sys_select (sys/select.h): Likewise.
39115         * modules/sys_socket (sys/socket.h): Likewise.
39116         * modules/sys_stat (sys/stat.h): Likewise.
39117         * modules/sysexits (sysexits.h): Likewise.
39118         * modules/unistd (unistd.h): Likewise.
39119         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39120         Add a "DO NOT EDIT" comment to the generated file.
39121         (func_import): Likewise for gnulib-comp.m4.
39122
39123 2006-10-07  Bruno Haible  <bruno@clisp.org>
39124
39125         * lib/gl_sublist.h: New file.
39126         * lib/gl_sublist.c: New file.
39127
39128 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
39129
39130         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
39131         name (relative to the original working directory) and the file
39132         name component (relative to the temporary working directory).  All
39133         callers changed.
39134         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
39135         * lib/mkdir-p.c (make_dir_parents): Likewise.
39136         * lib/mkdir-p.h (make_dir_parents): Likewise.
39137
39138 2006-10-06  Eric Blake  <ebb9@byu.net>
39139
39140         Define several macros for use by the clean-temp module.
39141         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
39142         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
39143         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
39144
39145         * lib/clean-temp.h (close_stream_temp): New declaration.
39146         * lib/clean-temp.c (includes): Pull in headers according to what
39147         other modules are in use.
39148         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
39149
39150 2006-10-06  Bruno Haible  <bruno@clisp.org>
39151
39152         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
39153         instead of fopen, fwriteerror.
39154
39155 2006-10-06  Bruno Haible  <bruno@clisp.org>
39156
39157         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
39158         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
39159         int.
39160         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
39161         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
39162         Return an error indicator.
39163         Suggested by Eric Blake.
39164
39165 2006-10-06  Bruno Haible  <bruno@clisp.org>
39166
39167         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
39168         Reported by Eric Blake.
39169
39170 2006-10-06  Bruno Haible  <bruno@clisp.org>
39171
39172         * modules/closeout (Description): Mention stderr too.
39173
39174 2006-10-06  Bruno Haible  <bruno@clisp.org>
39175         and Paul Eggert  <eggert@cs.ucla.edu>
39176
39177         * lib/closeout.c (close_stdout): Also close stderr.
39178         * lib/closeout.h: Update comment.
39179
39180 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
39181
39182         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
39183         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
39184         * lib/dirchownmod.c: Include lchown.h.
39185         * lib/lchown.c: Don't include files that lchown.h now includes.
39186         Don't declare chown, since lchown.h now does that.
39187         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
39188         (lchown): Define to rpl_chown if lchown is declared but
39189         does not exist.  Declare using a prototype if lchown is not
39190         declared.  Add a copyright notice.
39191         * lib/mkstemp.h: Include <unistd.h>.
39192         * lib/openat.c: Include lchown.h.
39193
39194         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
39195         we now test for that separately.
39196         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
39197         rather than O_NOFOLLOW, when testing whether it's possible to
39198         avoid a race condition reliably.
39199         * lib/savewd.c (savewd_chdir): Likewise.
39200
39201         Remove macros that are no longer needed now that stdint.h is
39202         reliable.
39203         * lib/fsusage.c (UINTMAX_MAX): Remove.
39204         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
39205         * lib/utimecmp.c (SIZE_MAX): Remove.
39206
39207         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
39208
39209         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
39210         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
39211         O_NOATIME works.
39212
39213 2006-10-05  Bruno Haible  <bruno@clisp.org>
39214
39215         * lib/gl_list.h (gl_sortedlist_search_from_to,
39216         gl_sortedlist_indexof_from_to): New declarations.
39217         (gl_list_implementation): New fields sortedlist_search_from_to,
39218         sortedlist_indexof_from_to.
39219         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
39220         inline functions.
39221         * lib/gl_list.c (gl_sortedlist_search_from_to,
39222         gl_sortedlist_indexof_from_to): New functions.
39223         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
39224         function.
39225         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
39226         (gl_array_sortedlist_search_from_to): New function.
39227         (gl_array_list_implementation): Update.
39228         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
39229         function.
39230         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
39231         (gl_carray_sortedlist_search_from_to): New function.
39232         (gl_carray_list_implementation): Update.
39233         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
39234         gl_linked_sortedlist_indexof_from_to): New functions.
39235         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39236         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39237         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
39238         gl_tree_sortedlist_indexof_from_to): New functions.
39239         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39240         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39241         Update.
39242         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39243         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
39244         Update.
39245
39246 2006-10-05  Bruno Haible  <bruno@clisp.org>
39247
39248         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
39249         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
39250         (struct gl_list_implementation): Add fields search_from_to,
39251         indexof_from_to. Remove fields search, indexof.
39252         (gl_list_search): Use the search_from_to method.
39253         (gl_list_search_from, gl_list_search_from_to): New functions.
39254         (gl_list_indexof): Use the indexof_from_to method.
39255         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
39256         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
39257         (gl_list_search_from, gl_list_search_from_to): New functions.
39258         (gl_list_indexof): Use the indexof_from_to method.
39259         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
39260         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
39261         gl_array_indexof. Add start_index, end_index arguments.
39262         (gl_array_search_from_to): Renamed from gl_array_search. Add
39263         start_index, end_index arguments.
39264         (gl_array_remove, gl_array_list_implementation): Update.
39265         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
39266         gl_carray_indexof. Add start_index, end_index arguments.
39267         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
39268         start_index, end_index arguments.
39269         (gl_carray_remove, gl_carray_list_implementation): Update.
39270         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
39271         gl_linked_search. Add start_index, end_index arguments.
39272         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
39273         start_index, end_index arguments.
39274         (gl_linked_remove): Update.
39275         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39276         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39277         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
39278         field to 'size_t'.
39279         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
39280         gl_tree_search. Add start_index, end_index arguments.
39281         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
39282         start_index, end_index arguments.
39283         (gl_tree_remove): Update.
39284         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39285         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39286         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
39287         function.
39288         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
39289         gl_tree_search. Add start_index, end_index arguments.
39290         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
39291         start_index, end_index arguments.
39292         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39293         Update.
39294         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
39295
39296 2006-10-05  Bruno Haible  <bruno@clisp.org>
39297
39298         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
39299
39300         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
39301         fwriteerror_temp): New declarations.
39302         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
39303         (descriptors): New variable.
39304         (cleanup): First, close the descriptors.
39305         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
39306         fclose_temp, fwriteerror_temp): New functions.
39307
39308 2006-10-04  Jim Meyering  <jim@meyering.net>
39309
39310         * lib/fts.c (fts_open): Tiny comment change.
39311
39312 2006-10-04  Bruno Haible  <bruno@clisp.org>
39313
39314         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
39315         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
39316         gl_LOCK_BODY.
39317         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
39318         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
39319         gl_LOCK_EARLY_BODY.
39320         (gl_LOCK): Require gl_LOCK_BODY.
39321
39322 2006-10-04  Bruno Haible  <bruno@clisp.org>
39323
39324         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
39325         (gl_oset_search_atleast): New declaration.
39326         (struct gl_oset_implementation): Add field 'search_atleast'.
39327         (gl_oset_search_atleast): New inline function.
39328         * lib/gl_oset.c (gl_oset_search_atleast): New function.
39329         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
39330         (gl_array_oset_implementation): Update.
39331         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
39332         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
39333         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
39334
39335 2006-10-04  Bruno Haible  <bruno@clisp.org>
39336
39337         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
39338
39339 2006-10-03  Bruno Haible  <bruno@clisp.org>
39340
39341         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
39342         from gl_avltreehash_list_implementation.
39343
39344 2006-10-03  Bruno Haible  <bruno@clisp.org>
39345
39346         * lib/gl_oset.c (gl_oset_add): Fix return type.
39347
39348 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
39349
39350         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
39351
39352 2006-10-02  Eric Blake  <ebb9@byu.net>
39353
39354         * modules/strnlen (Depends-on): Add extensions.
39355
39356 2006-10-02  Eric Blake  <ebb9@byu.net>
39357
39358         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
39359         definition in 2.60+.
39360
39361 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
39362
39363         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
39364         checks.
39365
39366 2006-10-02  Bruno Haible  <bruno@clisp.org>
39367
39368         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
39369         to the AUTOMAKE_OPTIONS.
39370         Reported by Jim Meyering.
39371
39372 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
39373
39374         Work around bug in Solaris 10 /proc file system:
39375         /proc/self/fd/NNN/.. isn't the parent directory of
39376         the directory whose file descriptor is NNN.  This needs to
39377         be worked around at run time, not compile time, since a
39378         program might be built on Solaris 8, where things work, and
39379         run on Solaris 10.
39380         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
39381         to use the following interface instead:
39382         (OPENAT_BUFFER_SIZE): New macro.
39383         (openat_proc_name): New function.
39384         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
39385         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
39386         Likewise.
39387         * lib/openat-proc.c: New file.
39388         * modules/openat (Files): Add lib/openat-proc.c.
39389         (Depends-on): Add same-inode, stdbool.
39390         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
39391
39392 2006-09-29  Bruno Haible  <bruno@clisp.org>
39393
39394         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
39395         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
39396         argument. Set stdout_closed before testing for ferror, not after.
39397         (fwriteerror, fwriteerror_no_ebadf): New functions.
39398
39399 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39400
39401         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
39402
39403 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
39404
39405         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
39406         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
39407
39408 2006-09-28  Jim Meyering  <jim@meyering.net>
39409
39410         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
39411         Include <unistd.h>.
39412
39413 2006-09-28  Bruno Haible  <bruno@clisp.org>
39414
39415         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
39416         * modules/linkedhash-list (Depends-on): Likewise.
39417         * modules/rbtreehash-list (Depends-on): Likewise.
39418
39419 2006-09-28  Bruno Haible  <bruno@clisp.org>
39420
39421         * lib/strndup.h: Simplify the redefinition of strndup.
39422         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
39423         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
39424
39425 2006-09-28  Bruno Haible  <bruno@clisp.org>
39426
39427         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
39428         * lib/gl_linkedhash_list.c: Likewise.
39429         * lib/gl_rbtreehash_list.c: Likewise.
39430
39431 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
39432
39433         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
39434         getaddrinfo.
39435
39436         * lib/__fpending.h: Don't include <stdio_ext.h> unless
39437         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
39438         it causes <stdio_ext.h> to cause a compile-time error.
39439         Problem reported by Nelson H. F. Beebe.
39440         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
39441         of HAVE_DECL___PENDING.
39442
39443         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
39444         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
39445         declaration.
39446
39447 2006-09-27  Jim Meyering  <jim@meyering.net>
39448
39449         This file could end up with a definition for a function
39450         named __strndup, rather than rpl_strndup on a system with
39451         incomplete weak_alias support.
39452         * lib/strndup.c (strndup): Rename from __strndup.
39453         Remove #defines that used to map __strndup to strndup.
39454         Don't use K&R prototypes.
39455         Remove LIBC-related code, since this file is not sync'd with glibc.
39456         * lib/strndup.h: Revamp, accordingly.
39457         * m4/strndup.m4: Modernize.
39458
39459 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
39460
39461         * modules/savewd (Depends-on): Add 'raise'.
39462         * lib/savewd.c: Include <signal.h>, for 'raise'.
39463
39464 2006-09-26  Jim Meyering  <jim@meyering.net>
39465
39466         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
39467         when we detect Darwin 8.7.0's acl_get_file bug.
39468         Rearrange to perform the new (below) run-test while $LIBS
39469         contains any acl-related library.  Set USE_ACL at the end.
39470         (gl_ACL_GET_FILE): New function.
39471
39472 2006-09-26  Eric Blake  <ebb9@byu.net>
39473
39474         * lib/verror.c: Include <config.h> unconditionally.
39475
39476 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
39477
39478         * modules/clock-time (Maintainer): Add self.
39479         * modules/getlogin_r (Depends-on): Add extensions.
39480
39481 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39482
39483         * modules/clock-time: New module.
39484         * modules/nanosleep (Depends-on): Add clock-time.
39485         * modules/gethrxtime (Depends-on): Likewise.
39486         * modules/gettime (Depends-on): Likewise.
39487         * modules/settime (Depends-on): Likewise.
39488
39489         * modules/fts-lgpl: Depend on openat.
39490         * modules/mkancesdirs: Depend on savewd.
39491         * modules/mkdir-p: Likewise.
39492
39493 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39494
39495         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
39496
39497         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
39498         `gl_have_arbitrary_file_name_length_limit' to
39499         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
39500         actually works between configure runs.
39501
39502 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39503             Bruno Haible  <bruno@clisp.org>
39504
39505         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
39506
39507 2006-09-25  Jim Meyering  <jim@meyering.net>
39508
39509         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
39510         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
39511
39512 2006-09-25  Eric Blake  <ebb9@byu.net>
39513
39514         * gnulib-tool (func_import, func_create_testdir): Fix typos in
39515         exec's in 2006-09-18 patch when shuffling fds.
39516
39517 2006-09-25  Bruno Haible  <bruno@clisp.org>
39518
39519         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
39520         Reported by Jim Meyering.
39521
39522 2006-09-24  Jim Meyering  <jim@meyering.net>
39523
39524         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
39525         compare a pointer against a literal "0".  That caused failures with
39526         at least HP-UX's hpcc.
39527
39528 2006-09-22  Simon Josefsson  <jas@extundo.com>
39529
39530         * modules/gc-sha1:
39531         * modules/gc-md4:
39532         * modules/gc-hmac-sha1:
39533         * modules/gc-hmac-md5:
39534         * modules/gc-des:
39535         * modules/gc-arcfour: Distribute more files.
39536
39537 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39538
39539         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
39540         (gl_linked_iterator_from_to): Initialize struct completely.
39541         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
39542         (gl_tree_iterator_from_to): Likewise
39543         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
39544         * lib/gl_array_list.c [lint] (gl_array_iterator)
39545         (gl_array_iterator_from_to): Likewise.
39546         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
39547         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
39548         (gl_carray_iterator_from_to): Likewise.
39549
39550         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
39551         * lib/md4.c (md4_process_block): Remove unused variable.
39552         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
39553         parentheses for clarity.
39554
39555 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39556
39557         * modules/bison-i18n (Depends-on): Add gettext.
39558
39559 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39560
39561         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
39562         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
39563         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
39564         also add missing comma that caused broken test.
39565         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
39566         stdlib.h, for `abort'.
39567         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
39568         variables.
39569         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
39570         include unistd.h if present, for `rmdir'.
39571         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
39572         variables.
39573         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
39574         in the process include standard headers for prototypes.
39575         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
39576         gets declared on GNU/Linux.
39577         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
39578         unistd.h, for `rmdir'.
39579         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
39580
39581         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
39582         always true.
39583         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
39584
39585         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
39586
39587 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39588
39589         * gnulib-tool (func_version): Create output all at once.  This
39590         may help avoid triggering unnecessary SIGPIPEs, and at any
39591         rate it doesn't hurt.
39592
39593 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39594             Bruno Haible  <bruno@clisp.org>
39595
39596         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
39597         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39598         * m4/signed.m4 (bh_C_SIGNED): Likewise.
39599
39600         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
39601         (gl_FUNC_VASPRINTF): Invoke it.
39602
39603 2006-09-22  Bruno Haible  <bruno@clisp.org>
39604
39605         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
39606         getloadavg.c as first argument.
39607
39608 2006-09-22  Bruno Haible  <bruno@clisp.org>
39609
39610         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
39611         at the beginning of the gl_INIT macro.
39612         * modules/getloadavg (configure.ac): Pass $gl_source_base to
39613         gl_GETLOADAVG.
39614
39615 2006-09-22  Bruno Haible  <bruno@clisp.org>
39616
39617         * gnulib-tool (func_create_megatestdir): Don't include the config-h
39618         module.
39619         Suggested by Ralf Wildenhues.
39620
39621 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
39622
39623         Import this patch from libc:
39624
39625         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
39626
39627         * lib/regex_internal.c (re_string_reconstruct): Handle
39628         offset < pstr->valid_raw_len && pstr->offsets_needed case.
39629         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
39630         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
39631         re_string_context_at.
39632
39633         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
39634         now requires it.
39635         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
39636         gl_REGEX now does it for us.
39637         (gl_REGEX): Add test taken from
39638         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
39639
39640         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
39641         Check that large offsets work.  Modernize Autoconf usages.
39642         Prefer "yes" to mean a good thing rather than a bad.
39643         Don't put "#define mkstemp" in config.h, as this might interfere
39644         with standard system headers that "#define mkstemp mkstemp64".
39645
39646         * modules/mkstemp (Depends-on): Add extensions, so that
39647         mkstemp is visible on some platforms.
39648         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
39649         (Include): Change to "mkstemp.h" from <stdlib.h>.
39650         (Files): Add mkstemp.h.
39651
39652         * lib/mkstemp.h: New file, since some standard headers
39653         #define mkstemp.
39654         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
39655         Include "mkstemp.h".
39656         Make the _LIBC code resemble glibc original more,
39657         e.g., use K&R style.
39658         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
39659         (mkstemp): Remove, since mkstemp.h does this for us.
39660         * lib/stdlib--.h: Include mkstemp.h.
39661
39662         Import this patch from libc:
39663
39664         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
39665
39666         * lib/tempname.c (__gen_tempname): Change attempts_min
39667         into a macro.  Use preprocessor to decide how to initialize
39668         attempts [Coverity CID 67].
39669
39670 2006-09-20  Bruno Haible  <bruno@clisp.org>
39671
39672         * lib/mkdtemp.c: Import from libc.
39673         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
39674                 * sysdeps/posix/tempname.c (__gen_tempname): Change
39675                 attempts_min into a macro.  Use preprocessor to decide how to
39676                 initialize attempts [Coverity CID 67].
39677         2001-11-27  Paul Eggert  <eggert@twinsun.com>
39678                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
39679                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
39680
39681 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39682
39683         * gnulib-tool (func_exit): New function, to allow to pass the
39684         exit status portably through the trap.  Use everywhere.
39685         (--help, --version): Signal a write error.
39686         (trap): catch SIGPIPE, for write errors.
39687         Exit at the end of the trap, with the correct exit status.
39688
39689 2006-09-19  Karl Berry  <karl@gnu.org>
39690
39691         * doc/gnulib.texi: note about the license texinfo files.
39692
39693 2006-09-19  Eric Blake  <ebb9@byu.net>
39694
39695         * gnulib-tool: Avoid space-tab.
39696
39697 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
39698
39699         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
39700         that prevented coreutils 6.1 from building.  Problem reported
39701         by Petter Reinholdtsen.
39702
39703 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
39704
39705         * gnulib-tool (avoidlist): Fix typo that broke options like
39706         --avoid=lock that are used by coreutils bootstrap.
39707
39708 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
39709
39710         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
39711         more systematically.
39712
39713 2006-09-18  Jim Meyering  <jim@meyering.net>
39714
39715         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
39716
39717 2006-09-18  Bruno Haible  <bruno@clisp.org>
39718
39719         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
39720
39721 2006-09-18  Bruno Haible  <bruno@clisp.org>
39722
39723         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
39724         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
39725         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
39726         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
39727         * m4/gettext.m4: Require autoconf >= 2.52.
39728         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
39729         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
39730         of gl_cv_header_inttypes_h.
39731
39732 2006-09-18  Bruno Haible  <bruno@clisp.org>
39733
39734         * lib/javaversion.c: Include configmake.h.
39735
39736 2006-09-18  Bruno Haible  <bruno@clisp.org>
39737
39738         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
39739         avoid that the while loops be executed in a subshell.
39740
39741 2006-09-18  Bruno Haible  <bruno@clisp.org>
39742
39743         * MODULES.html.sh (func_module): Break long lines.
39744         Suggested by Bruce Korb <bkorb@gnu.org>.
39745
39746 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39747
39748         Speed up by a factor of 1.12.
39749         * gnulib-tool (nl): New variable.
39750         (func_import): Rewrite include directive extraction to only read each
39751         directive once.
39752
39753 2006-09-17  Bruno Haible  <bruno@clisp.org>
39754
39755         * modules/javaversion (Makefile.am): Remove DEFS setting.
39756         (Depends-on): Add configmake, for PKGDATADIR definition.
39757
39758 2006-09-17  Bruno Haible  <bruno@clisp.org>
39759
39760         * gnulib-tool (func_create_testdir): Rewrite all files at once.
39761
39762 2006-09-17  Bruno Haible  <bruno@clisp.org>
39763
39764         * gnulib-tool (func_append): New function, stolen from libtool.m4.
39765         (func_modules_transitive_closure, func_modules_add_dummy,
39766         func_modules_to_filelist, func_import, func_create_testdir,
39767         func_create_megatestdir, ...): Use it wherever possible.
39768         Suggested by Ralf Wildenhues.
39769
39770 2006-09-16  Karl Berry  <karl@gnu.org>
39771
39772         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
39773         to avoid sectioning errors.
39774         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
39775         [ifinfo]: blank line after @center-ed titles.
39776         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
39777         Spell FSF address consistently with others.
39778         (These changes approved by rms.)
39779
39780 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39781
39782         Speed up by a factor of 1.61.
39783         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
39784         already checked module names again.
39785
39786 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39787
39788         Speed up by a factor of 1.13.
39789         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
39790         for new_files, and the input to func_add_or_update.
39791
39792 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39793
39794         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
39795         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
39796
39797 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39798
39799         * modules/mkancesdirs (Depends-on): Add fcntl.
39800         * modules/savewd: New file.
39801         * MODULES.html.sh (File system functions): Add savewd.
39802
39803         * modules/configmake (Makefile.am): Add support for the
39804         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
39805
39806 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39807
39808         * m4/savewd.m4: New file.
39809
39810 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39811
39812         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
39813         (dirchownmod): New arg FD.  All callers changed.
39814         Use FD rather than opening the directory ourself, as opening is
39815         now the caller's responsibility.
39816         * lib/dirchownmod.h: Likewise.
39817         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
39818         hosts that require <sys/types.h> before <sys/stat.h>.  Include
39819         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
39820         (test_dir): Remove.
39821         (mkancesdirs): Return length of prefix of FILE that has already
39822         been made, or -2 if there is a child doing the work.  Redo
39823         algorithm so that it is O(N) rather than O(N**2).  Optimize away
39824         ".", and treat ".." specially since it might stray back into
39825         already-created areas.  Use a subprocess if necessary.  New arg
39826         WD; all users changed.  MAKE_DIR function should now return 1
39827         if it creates a directory that is not readable.  Return -2 if
39828         a child process is spun off.
39829         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
39830         Adjust signature to match code.
39831         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
39832         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
39833         all users changed.
39834         * lib/savewd.c, lib/savewd.h: New files.
39835
39836 2006-09-15  Jim Meyering  <jim@meyering.net>
39837
39838         * modules/rename-dest-slash: New module.
39839         * MODULES.html.sh (posix_compat): Add it here.
39840
39841         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
39842
39843 2006-09-15  Jim Meyering  <jim@meyering.net>
39844
39845         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
39846         file.
39847
39848         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
39849
39850 2006-09-15  Jim Meyering  <jim@meyering.net>
39851
39852         * lib/rename-dest-slash.c (has_trailing_slash): Use
39853         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
39854         (rpl_rename_dest_slash): Perform the cheaper trailing slash
39855         test before testing whether SRC is a directory.
39856         Suggestions from Bruno Haible.
39857
39858         Avoid a warning about an unused variable.
39859         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
39860         into the #ifdef block where it's used.
39861
39862         * lib/rename-dest-slash.c: New file.
39863
39864 2006-09-14  Bruno Haible  <bruno@clisp.org>
39865
39866         * lib/allocsa.c: Include <config.h> unconditionally.
39867         * lib/asnprintf.c: Likewise.
39868         * lib/asprintf.c: Likewise.
39869         * lib/c-strcasecmp.c: Likewise.
39870         * lib/c-strcasestr.c: Likewise.
39871         * lib/c-strncasecmp.c: Likewise.
39872         * lib/c-strstr.c: Likewise.
39873         * lib/classpath.c: Likewise.
39874         * lib/clean-temp.c: Likewise.
39875         * lib/concatpath.c: Likewise.
39876         * lib/copy-file.c: Likewise.
39877         * lib/csharpcomp.c: Likewise.
39878         * lib/csharpexec.c: Likewise.
39879         * lib/execute.c: Likewise.
39880         * lib/fatal-signal.c: Likewise.
39881         * lib/findprog.c: Likewise.
39882         * lib/fwriteerror.c: Likewise.
39883         * lib/gl_array_list.c: Likewise.
39884         * lib/gl_array_oset.c: Likewise.
39885         * lib/gl_avltree_list.c: Likewise.
39886         * lib/gl_avltree_oset.c: Likewise.
39887         * lib/gl_avltreehash_list.c: Likewise.
39888         * lib/gl_carray_list.c: Likewise.
39889         * lib/gl_linked_list.c: Likewise.
39890         * lib/gl_linkedhash_list.c: Likewise.
39891         * lib/gl_list.c: Likewise.
39892         * lib/gl_oset.c: Likewise.
39893         * lib/gl_rbtree_list.c: Likewise.
39894         * lib/gl_rbtree_oset.c: Likewise.
39895         * lib/gl_rbtreehash_list.c: Likewise.
39896         * lib/imaxabs.c: Likewise.
39897         * lib/imaxdiv.c: Likewise.
39898         * lib/javacomp.c: Likewise.
39899         * lib/javaexec.c: Likewise.
39900         * lib/javaversion.c: Likewise.
39901         * lib/linebreak.c: Likewise.
39902         * lib/localcharset.c: Likewise.
39903         * lib/lock.c: Likewise.
39904         * lib/mbchar.c: Likewise.
39905         * lib/mbswidth.c: Likewise.
39906         * lib/mkdtemp.c: Likewise.
39907         * lib/pipe.c: Likewise.
39908         * lib/printf-args.c: Likewise.
39909         * lib/printf-parse.c: Likewise.
39910         * lib/progname.c: Likewise.
39911         * lib/progreloc.c: Likewise.
39912         * lib/readlink.c: Likewise.
39913         * lib/sh-quote.c: Likewise.
39914         * lib/stpcpy.c: Likewise.
39915         * lib/stpncpy.c: Likewise.
39916         * lib/strcasecmp.c: Likewise.
39917         * lib/strcasestr.c: Likewise.
39918         * lib/strcspn.c: Likewise.
39919         * lib/striconv.c: Likewise.
39920         * lib/strncasecmp.c: Likewise.
39921         * lib/strnlen1.c: Likewise.
39922         * lib/strstr.c: Likewise.
39923         * lib/strtok_r.c: Likewise.
39924         * lib/tls.c: Likewise.
39925         * lib/tmpdir.c: Likewise.
39926         * lib/unicodeio.c: Likewise.
39927         * lib/unsetenv.c: Likewise.
39928         * lib/vasnprintf.c: Likewise.
39929         * lib/vasprintf.c: Likewise.
39930         * lib/wait-process.c: Likewise.
39931         * lib/xallocsa.c: Likewise.
39932         * lib/xsetenv.c: Likewise.
39933         * lib/xstriconv.c: Likewise.
39934
39935 2006-09-13  Simon Josefsson  <jas@extundo.com>
39936
39937         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
39938         that internally, suggested by Ralf Wildenhues
39939         <Ralf.Wildenhues@gmx.de>.
39940
39941 2006-09-13  Simon Josefsson  <jas@extundo.com>
39942
39943         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
39944         @LIBOBJS@.
39945         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39946
39947 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
39948
39949         * lib/_fpending.c: Include <config.h> unconditionally, since we no
39950         longer worry about uses that don't define HAVE_CONFIG_H.
39951         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
39952         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
39953         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
39954         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
39955         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
39956         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
39957         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
39958         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
39959         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
39960         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
39961         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
39962         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
39963         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
39964         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
39965         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
39966         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
39967         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
39968         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
39969         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
39970         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
39971         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
39972         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
39973         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
39974         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
39975         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
39976         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
39977         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
39978         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
39979         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
39980         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
39981         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
39982         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
39983         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
39984         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
39985         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
39986         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
39987         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
39988         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
39989         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
39990         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
39991         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
39992         Likewise.
39993
39994 2006-09-13  Eric Blake  <ebb9@byu.net>
39995
39996         * lib/getopt.c: Fix typo in last commit.
39997
39998 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39999
40000         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
40001         dgettext.
40002
40003 2006-09-12  Jim Meyering  <jim@meyering.net>
40004
40005         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
40006         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
40007         Reported by Nelson H. F. Beebe.
40008
40009 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
40010
40011         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
40012         program_invocation_name and program_invocation_short_name are
40013         initialized.
40014         * lib/argp-namefrob.h: Move declarations of program_invocation_name
40015         and program_invocation_short_name to argp.h, so they are visible
40016         to user programs.
40017         * lib/argp.h: Likewise
40018
40019 2006-09-10  Bruno Haible  <bruno@clisp.org>
40020
40021         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
40022         m4/inttypes_h.m4, m4/uintmax_t.m4.
40023
40024 2006-09-10  Bruno Haible  <bruno@clisp.org>
40025
40026         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
40027         gl_AC_TYPE_UINTMAX_T.
40028
40029 2006-09-10  Bruno Haible  <bruno@clisp.org>
40030
40031         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
40032
40033 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
40034
40035         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
40036         convention.  Text proposed by Bruno Haible.
40037         (struct argp_option): Document the use of N_() wrappers.
40038
40039         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
40040         '\v', and translate the two parts separately, instead of feeding
40041         the whole string to gettext.  This allows to exclude
40042         '\v' from the strings visible to the translator by writing doc
40043         strings as N_("..") "\v" N_("..").
40044
40045 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
40046
40047         * config/srclist.txt: Undo latest change; the bug was fixed.
40048
40049 2006-09-09  Bruno Haible  <bruno@clisp.org>
40050
40051         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
40052         assignments if building a library without libtool.
40053         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
40054         in func_emit_lib_Makefile_am.
40055         (func_import): When building a static library libfoo.a, arrange to
40056         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
40057         (func_create_testdir): Likewise.
40058         * modules/gc (configure.ac, Makefile.am): If building statically,
40059         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
40060         * modules/iconvme (configure.ac, Makefile.am): Likewise.
40061         * modules/striconv (configure.ac, Makefile.am): Likewise.
40062         Based on a suggestion by Ralf Wildenhues.
40063
40064 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40065
40066         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40067         Check for unistd.h too, since Autoconf doesn't assume POSIX.
40068         Also:
40069
40070         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40071         Add year_2050_test to catch glibc bug 2821
40072         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
40073
40074         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40075         Prefer #ifdef to #if.
40076
40077         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
40078         Return from 'main' instead of calling 'exit'.
40079
40080 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40081
40082         * lib/mktime.c (guess_time_tm): Fix bug where mktime
40083         returned the maximum time_t value rather than (time_t) -1.
40084         Problem originally reported by William Bardwell
40085         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
40086
40087         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
40088         Moved to here ...
40089         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
40090         ... from here.
40091
40092 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40093
40094         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
40095         2821 is fixed.
40096
40097 2006-09-08  Jim Meyering  <jim@meyering.net>
40098
40099         Don't make generated files read-only.  That would bother too many
40100         people.  However, do retain the ability to work when targets are
40101         read-only: remove the destination and temporary files before writing
40102         them (when generated via sed or echo), or by using the -f option for
40103         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
40104         * modules/alloca-opt, modules/argz, modules/arpa_inet:
40105         * modules/byteswap, modules/configmake, modules/fcntl:
40106         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
40107         * modules/localcharset, modules/netinet_in, modules/poll:
40108         * modules/stdbool, modules/stdint, modules/sys_select:
40109         * modules/sys_socket, modules/sys_stat, modules/sysexits:
40110
40111 2006-09-08  Jim Meyering  <jim@meyering.net>
40112
40113         Avoid new build failure on FreeBSD 6.0.
40114         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
40115         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
40116         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
40117
40118 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40119
40120         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
40121
40122 2006-09-07  Jim Meyering  <jim@meyering.net>
40123
40124         Fix global typo in last change: use chmod u-w, not chmod u-x.
40125         Spotted by Paul Eggert and Bruce Korb.
40126         * modules/alloca-opt, modules/argz, modules/arpa_inet:
40127         * modules/byteswap, modules/configmake, modules/fcntl:
40128         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
40129         * modules/localcharset, modules/netinet_in, modules/poll:
40130         * modules/stdbool, modules/stdint, modules/sys_select:
40131         * modules/sys_socket, modules/sys_stat, modules/sysexits:
40132
40133 2006-09-06  Jim Meyering  <jim@meyering.net>
40134
40135         Make generated files be read-only.
40136         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
40137         Ensure that each generated file is now read-only.
40138         * modules/argz: Likewise.
40139         * modules/arpa_inet: Likewise.
40140         * modules/byteswap: Likewise.
40141         * modules/configmake: Likewise.
40142         * modules/fcntl: Likewise.
40143         * modules/fnmatch: Likewise.
40144         * modules/getopt: Likewise.
40145         * modules/glob: Likewise.
40146         * modules/inttypes: Likewise.
40147         * modules/netinet_in: Likewise.
40148         * modules/poll: Likewise.
40149         * modules/stdbool: Likewise.
40150         * modules/stdint: Likewise.
40151         * modules/sys_select: Likewise.
40152         * modules/sys_socket: Likewise.
40153         * modules/sys_stat: Likewise.
40154         * modules/sysexits: Likewise.
40155         * modules/localcharset: Same as above, but continue using temporary
40156         file named "t-$@" (why different?) rather than the "$@-t" used
40157         everywhere else.
40158
40159         * modules/sysexits (Makefile.am): Replace literal occurrences
40160         of "sysexit.h" more readable, and more consistent, "$@".
40161
40162 2006-09-06  Bruno Haible  <bruno@clisp.org>
40163
40164         * modules/striconv: New file.
40165         * modules/xstriconv: New file.
40166         * MODULES.html.sh (Internationalization functions): Add striconv,
40167         xstriconv.
40168
40169 2006-09-06  Bruno Haible  <bruno@clisp.org>
40170
40171         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
40172         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
40173         not using libtool correctly.
40174
40175 2006-09-06  Bruno Haible  <bruno@clisp.org>
40176
40177         * lib/striconv.h: New file.
40178         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
40179         iconvstring.c.
40180         * lib/xstriconv.h: New file.
40181         * lib/xstriconv.c: New file.
40182
40183 2006-09-06  Bruno Haible  <bruno@clisp.org>
40184
40185         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40186         lib_..._LDFLAGS.
40187
40188 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40189
40190         * lib/argz_.h: Sync from Libtool.
40191
40192         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
40193                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40194
40195         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
40196
40197 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
40198
40199         * modules/trim: New file.
40200
40201 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
40202
40203         * lib/trim.h: New file.
40204         * lib/trim.c: New file.
40205
40206 2006-09-05  Bruno Haible  <bruno@clisp.org>
40207
40208         * MODULES.html.sh (String handling): Add trim.
40209
40210 2006-09-04  Karl Berry  <karl@gnu.org>
40211
40212         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
40213         until next release.
40214
40215 2006-09-03  Bruno Haible  <bruno@clisp.org>
40216
40217         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
40218         correctly.
40219
40220 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
40221
40222         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
40223         not gl_GETLOADAVG.  Omit unneeded semicolons.
40224         Problems reported by Ralf Wildenhues in
40225         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
40226         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
40227         at the end, which is the usual gnulib style.
40228
40229         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
40230         of doing all the work ourselves.
40231         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
40232         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
40233
40234 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
40235
40236         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
40237         Problem reported by Ralf Wildenhues in
40238         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
40239
40240         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
40241         HAVE_STRUCT_STATFS_F_FSTYPENAME.
40242
40243 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
40244
40245         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
40246         yesterday's patch by changing test -n to test -z.
40247
40248 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
40249
40250         * modules/getloadavg (Files): Add m4/getloadavg.m4.
40251         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
40252         the former is now obsolescent.
40253
40254         * modules/chdir-long (Depends-on): Add fcntl.
40255
40256 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
40257
40258         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
40259         obsolescent, and programs should use gnulib instead.
40260         * m4/getloadavg.m4: New file, with contents taken from Autoconf
40261         but with prefixes changed.
40262
40263 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
40264
40265         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
40266         or stdbool.h, because they might not exist while configuring.
40267
40268         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
40269         Don't include unistd.h or limits.h; not needed, since chdir-long.h
40270         does that for us.
40271         (O_DIRECTORY): Remove.
40272
40273 2006-08-31  Eric Blake  <ebb9@byu.net>
40274
40275         * gnulib-tool: Don't let emacs change spaces to TAB.
40276
40277 2006-08-31  Bruno Haible  <bruno@clisp.org>
40278
40279         * gnulib-tool: When calling func_import more than once, do it in a
40280         subshell.
40281         Reported by Eric Blake <ebb9@byu.net>.
40282
40283 2006-08-31  Bruno Haible  <bruno@clisp.org>
40284
40285         * gnulib-tool (nl): Remove variable.
40286         (sed_transform_lib_file): Use more robust test for config-h module.
40287         (func_import): Fix typo in 2006-08-25 patch.
40288
40289 2006-08-31  Bruno Haible  <bruno@clisp.org>
40290
40291         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
40292         specified, augment Makefile.am variables instead of assigning them.
40293
40294 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
40295
40296         Work around a bug in both the Linux and SunOS 64-bit kernels:
40297         nanosleep mishandles sleeps for longer than 2**31 seconds.
40298         Problem reported by Frank v Waveren in
40299         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
40300         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
40301         Check for nanosleep bug.
40302         (LIB_NANOSLEEP): Append clock_gettime library if needed.
40303
40304 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
40305
40306         Work around a bug in both the Linux and SunOS 64-bit kernels:
40307         nanosleep mishandles sleeps for longer than 2**31 seconds.
40308         Problem reported by Frank v Waveren in
40309         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
40310         * lib/nanosleep.c (BILLION): New constant.
40311         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
40312         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
40313         implementation.
40314
40315 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
40316
40317         * modules/nanosleep (Depends-on): Add gettime.
40318
40319 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
40320         and Simon Josefsson  <jas@extundo.com>
40321         and Oskar Liljeblad  <oskar@osk.mine.nu>
40322
40323         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
40324         * gnulib-tool (func_import): New license type 'unmodifiable license
40325         text'.
40326         * modules/fdl: Use it.  Longer description.
40327         * module/gpl, module/lgpl: New files.
40328
40329 2006-08-30  Jim Meyering  <jim@meyering.net>
40330
40331         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
40332         shadowing the parameter.
40333
40334 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40335
40336         Sync from Libtool:
40337
40338         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40339
40340         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
40341         sharing with gnulib.  Report by Eric Blake.
40342
40343 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40344
40345         * modules/isapipe: New file.
40346         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
40347
40348 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40349
40350         * modules/configmake (Makefile.am): Add a comment, and omit
40351         the CONFIGMAKE_ prefix from generated macro names.  Suggested
40352         by Bruno Haible.
40353
40354 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40355
40356         * m4/isapipe.m4: New file.
40357
40358 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40359
40360         * lib/isapipe.c, lib/isapipe.h: New files.
40361
40362 2006-08-29  Jim Meyering  <jim@meyering.net>
40363
40364         * modules/configmake (Makefile.am): Make configmake.h depend on
40365         Makefile.  Otherwise, a stale configmake.h could hang around.
40366
40367 2006-08-29  Eric Blake  <ebb9@byu.net>
40368
40369         * lib/error.c (error_at_line, print_errno_message): Match libc, after
40370         resolution of upstream bug 3044.
40371
40372 2006-08-29  Bruno Haible  <bruno@clisp.org>
40373
40374         * modules/localcharset (Depends-on): Add configmake.
40375         (Makefile.am): Remove setting of LIBDIR through DEFS.
40376
40377 2006-08-29  Bruno Haible  <bruno@clisp.org>
40378
40379         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
40380         defined.
40381
40382 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40383
40384         * modules/fcntl: New file.
40385         * modules/chdir-safer (Depends-on): Add fcntl.
40386         * modules/fts: Likewise.
40387         * modules/mkdir-p: Likewise.
40388
40389         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
40390         This undoes the most recent change, since we're now addressing the
40391         problem in a different way.
40392
40393         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
40394         into output, since the output might be called Makefile.am even
40395         if $makefile_name is something different.
40396         (func_import): Use $makefile_am rather than
40397         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
40398         empty.
40399
40400         * modules/inttypes (Files): Add m4/inttypes-h.m4.
40401
40402 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40403
40404         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
40405         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
40406         recent change to stdint.m4, since we're now addressing the problem in a
40407         different way.
40408
40409 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40410
40411         * m4/fcntl_h.m4: New file.
40412
40413 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40414
40415         * lib/fcntl_.h: New file.
40416         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
40417         the fcntl module.
40418         * lib/dirchownmod.c: Likewise.
40419         * lib/fts.c: Likewise.
40420
40421         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
40422         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
40423         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
40424         just before including <inttypes.h>, to avoid circular inclusion.
40425
40426 2006-08-28  Jim Meyering  <jim@meyering.net>
40427
40428         * doc/visibility.texi: Actually read and correct the grammar of the
40429         sentence affected by yesterday's change.
40430
40431 2006-08-28  Eric Blake  <ebb9@byu.net>
40432
40433         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
40434         needs wrapper.
40435
40436 2006-08-28  Eric Blake  <ebb9@byu.net>
40437
40438         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
40439
40440 2006-08-28  Eric Blake  <ebb9@byu.net>
40441
40442         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
40443
40444 2006-08-28  Bruno Haible  <bruno@clisp.org>
40445
40446         * modules/c-strstr: New file, from GNU gettext.
40447         * MODULES.html.sh (String handling): Add c-strstr.
40448
40449 2006-08-28  Bruno Haible  <bruno@clisp.org>
40450
40451         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
40452         macros.
40453         Reported by Eric Blake.
40454
40455 2006-08-28  Bruno Haible  <bruno@clisp.org>
40456
40457         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
40458         (VASNPRINTF): Return a string of length > INT_MAX without failing.
40459         * lib/vasprintf.c: Include errno.h, limits.h.
40460         (EOVERFLOW): New fallback definition.
40461         (vasprintf): Test here whether the string length is > INT_MAX.
40462         * lib/vsnprintf.c: Include errno.h, limits.h.
40463         (EOVERFLOW): New fallback definition.
40464         (vsnprintf): Fix bug when generated string was too long for the buffer.
40465         Test here whether the string length is > INT_MAX.
40466
40467 2006-08-28  Bruno Haible  <bruno@clisp.org>
40468
40469         * lib/inttypes_.h (SCNX*): Remove definitions.
40470         Reported by Eric Blake.
40471
40472 2006-08-28  Bruno Haible  <bruno@clisp.org>
40473
40474         * lib/c-strstr.h: New file, from GNU gettext.
40475         * lib/c-strstr.c: New file, from GNU gettext.
40476
40477 2006-08-28  Bruno Haible  <bruno@clisp.org>
40478
40479         * gnulib-tool: Reorder some statements.
40480
40481 2006-08-28  Bruno Haible  <bruno@clisp.org>
40482
40483         * gnulib-tool: New option --makefile-name.
40484         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
40485         $makefile_name.
40486         (func_import): Write $makefile_name to the cache file, and read it from
40487         there unless explicitly specified. Use $makefile_name as file name
40488         instead of Makefile.am. Adjust the recommendations accordingly.
40489
40490 2006-08-28  Bruno Haible  <bruno@clisp.org>
40491
40492         * gnulib-tool (func_verify_module): Check against misapplying patch.
40493
40494 2006-08-28  Bruno Haible  <bruno@clisp.org>
40495
40496         * gnulib-tool (func_relativize, func_relconcat): New functions.
40497         Give an error if --local-dir is given with --update.
40498         Remove trailing slashes from $local_gnulib_dir.
40499         (func_import): Store the relativized $local_gnulib_dir in
40500         gnulib-cache.m4, and read it from there if not specified explicitly.
40501
40502 2006-08-28  Bruno Haible  <bruno@clisp.org>
40503
40504         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
40505         is the current directory. Respect also $local_gnulib_dir.
40506
40507 2006-08-28  Bruno Haible  <bruno@clisp.org>
40508             Simon Josefsson  <jas@extundo.com>
40509
40510         BeOS portability.
40511         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
40512
40513 2006-08-27  Jim Meyering  <jim@meyering.net>
40514
40515         * doc/visibility.texi: Remove duplicate word: "pointer".
40516
40517 2006-08-26  Bruno Haible  <bruno@clisp.org>
40518
40519         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
40520         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
40521         (Makefile.am): Create inttypes.h from inttypes_.h.
40522         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
40523
40524         * modules/imaxabs: New file.
40525
40526         * modules/imaxdiv: New file.
40527
40528 2006-08-26  Bruno Haible  <bruno@clisp.org>
40529
40530         * m4/inttypes.m4: New file.
40531         * m4/_inttypes_h.m4: Remove file.
40532         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
40533         PRI_MACROS_BROKEN.
40534         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
40535
40536         * m4/imaxabs.m4: New file.
40537
40538         * m4/imaxdiv.m4: New file.
40539
40540 2006-08-26  Bruno Haible  <bruno@clisp.org>
40541
40542         * lib/inttypes_.h: New file.
40543         * lib/inttypes.h: Remove file.
40544         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
40545
40546         * lib/imaxabs.c: New file.
40547
40548         * lib/imaxdiv.c: New file.
40549
40550 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40551
40552         New config-h module, so that "make" output needn't be cluttered
40553         by -DHAVE_CONFIG_H.
40554         * MODULES.html.sh (Support for building libraries and executables):
40555         Add config-h.
40556         * modules/config-h: New file.
40557         * gnulib-tool (nl, sed_transform_lib_file): New vars.
40558         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
40559         the config-h module is used.
40560
40561         New configmake module, so that "make" output needn't be cluttered
40562         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
40563         * MODULES.html.sh (Support for building libraries and executables):
40564         Add configmake.
40565         * modules/configmake: New file.
40566
40567 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40568
40569         * m4/config-h.m4: New file.
40570
40571 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40572
40573         * config/srclist.txt: Add elisp-comp.
40574
40575 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40576
40577         * MODULES.html.sh (Support for building libraries and executables):
40578         Add elisp-comp.
40579         * build-aux/elisp-comp: New file.
40580         * modules/elisp-comp: New file.
40581
40582 2006-08-24  Bruno Haible  <bruno@clisp.org>
40583
40584         * gnulib-tool (func_create_testdir): Use non-default values of
40585         sourcebase and m4base.
40586
40587 2006-08-24  Bruno Haible  <bruno@clisp.org>
40588
40589         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
40590         HTML structure.
40591
40592 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
40593
40594         * modules/openat (Depends-on): Add lchown.
40595
40596 2006-08-23  Bruno Haible  <bruno@clisp.org>
40597
40598         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
40599         of gl_LOCK_EARLY instead of gl_LOCK.
40600
40601 2006-08-23  Bruno Haible  <bruno@clisp.org>
40602
40603         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
40604         on OSF/1 to no.
40605         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
40606
40607 2006-08-23  Bruno Haible  <bruno@clisp.org>
40608
40609         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
40610         as unusable.
40611
40612         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
40613         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
40614         (gl_LOCK): New macro.
40615
40616 2006-08-22  Simon Josefsson  <jas@extundo.com>
40617
40618         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
40619         to md5 module.
40620
40621 2006-08-22  Simon Josefsson  <jas@extundo.com>
40622
40623         * MODULES.html.sh: Add "Support for maintaining and release
40624         projects".
40625
40626         * build-aux/gnupload: New file, from coreutils.
40627
40628 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
40629
40630         Avoid the need for AC_LIBSOURCES in m4 macros.
40631         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
40632         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
40633         * modules/check-version (EXTRA_DIST): Add check-version.h.
40634         * modules/crc (EXTRA_DIST): Add crc.h.
40635         * modules/des (EXTRA_DIST): Add des.h.
40636         * modules/gc (EXTRA_DIST): Add gc.h.
40637         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
40638         * modules/getline (EXTRA_DIST): Add getline.h.
40639         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
40640         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
40641         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
40642         * modules/md2 (EXTRA_DIST): Add md2.h.
40643         * modules/md4 (EXTRA_DIST): Add md4.h.
40644         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
40645         * modules/read-file (EXTRA_DIST): Add read-file.h.
40646         * modules/readline (EXTRA_DIST): Add readline.h.
40647         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
40648         rijndael-api-fst.h.
40649
40650 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
40651
40652         * m4/rijndael.m4 (gl_ARCFOUR):
40653         * m4/arctwo.m4 (gl_ARCTWO):
40654         * m4/check-version.m4 (gl_CHECK_VERSION):
40655         * m4/crc.m4 (gl_CRC):
40656         * m4/des.m4 (gl_DES):
40657         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
40658         * m4/gc.m4 (gl_GC):
40659         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
40660         * m4/getline.m4 (gl_FUNC_GETLINE):
40661         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
40662         * m4/hmac-md5.m4 (gl_HMAC_MD5):
40663         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
40664         * m4/md2.m4 (gl_MD2):
40665         * m4/md4.m4 (gl_MD4):
40666         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
40667         * m4/read-file.m4 (gl_FUNC_READ_FILE):
40668         * m4/readline.m4 (gl_FUNC_READLINE):
40669         * m4/rijndael.m4 (gl_RIJNDAEL):
40670         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
40671         to get the necessary .h files and whatnot.
40672
40673 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
40674
40675         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
40676         gnulib rather than the other way around.
40677         * config/srclistvars.sh (COREUTILS): Remove.
40678
40679 2006-08-22  Jim Meyering  <jim@meyering.net>
40680
40681         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
40682
40683         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
40684
40685 2006-08-22  Eric Blake  <ebb9@byu.net>
40686
40687         * modules/regexprops-generic: New file.
40688         * MODULES.html.sh (Support for building documentation): List it.
40689
40690 2006-08-22  Eric Blake  <ebb9@byu.net>
40691
40692         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
40693         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
40694         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
40695         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
40696
40697 2006-08-22  Bruno Haible  <bruno@clisp.org>
40698
40699         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
40700         and lib_LTLIBRARIES like the other lib_* variables.
40701
40702 2006-08-22  Bruno Haible  <bruno@clisp.org>
40703
40704         * build-aux/x-to-1.in: New file, from GNU gettext.
40705
40706 2006-08-22  Bruno Haible  <bruno@clisp.org>
40707
40708         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
40709         <utmpx.h> exists.
40710
40711 2006-08-22  Bruno Haible  <bruno@clisp.org>
40712
40713         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
40714         <utmpx.h> exists.
40715
40716 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
40717
40718         BeOS portability.
40719         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
40720         exist.
40721         Problem reported by Bruno Haible.
40722
40723 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
40724
40725         Avoid the need for AC_LIBSOURCES in m4 macros.
40726         * modules/acl (EXTRA_DIST): Add acl.h.
40727         * modules/argmatch (Files): Add m4/argmatch.m4.
40728         (configure.ac): Add gl_ARGMATCH.
40729         (EXTRA_DIST): Renamed from lib_SOURCES, for
40730         consistency with the other modules.  Remove argmatch.c.
40731         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
40732         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
40733         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
40734         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
40735         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
40736         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
40737         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
40738         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
40739         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
40740         * modules/closeout (EXTRA_DIST): Add closeout.h.
40741         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
40742         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
40743         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
40744         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
40745         dirname.h; remove basename.c and stripslash.c.
40746         * modules/exclude (EXTRA_DIST): Add exclude.h.
40747         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
40748         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
40749         * modules/file-type (EXTRA_DIST): Add file-type.h.
40750         * modules/filemode (EXTRA_DIST): Add filemode.h.
40751         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
40752         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
40753         * modules/fpending (EXTRA_DIST): Add __fpending.h.
40754         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
40755         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
40756         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
40757         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
40758         * modules/getdate (EXTRA_DIST): Add getdate.c.
40759         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
40760         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
40761         * modules/getpass (EXTRA_DIST): Add getpass.h.
40762         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
40763         * modules/group-member (EXTRA_DIST): Add group-member.h.
40764         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
40765         * modules/hash (EXTRA_DIST): Add hash.h.
40766         * modules/human (EXTRA_DIST): Add human.h.
40767         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
40768         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
40769         * modules/lchown (EXTRA_DIST): Add lchown.h.
40770         * modules/long-options (EXTRA_DIST): Add long-options.h.
40771         * modules/lstat (EXTRA_DIST): Add lstat.h.
40772         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
40773         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
40774         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
40775         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
40776         * modules/memxor (EXTRA_DIST): Add memxor.h.
40777         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
40778         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
40779         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
40780         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
40781         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
40782         * modules/physmem (EXTRA_DIST): Add physmem.h.
40783         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
40784         * modules/posixver (EXTRA_DIST): Add posixver.h.
40785         * modules/quote (EXTRA_DIST): Add quote.h.
40786         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
40787         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
40788         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
40789         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
40790         regex_internal.h regexec.c.
40791         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
40792         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
40793         * modules/same (EXTRA_DIST): Add same.h.
40794         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
40795         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
40796         * modules/savedir (EXTRA_DIST): Add savedir.h.
40797         * modules/sha1 (EXTRA_DIST): Add sha1.h.
40798         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
40799         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
40800         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
40801         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
40802         * modules/strdup (EXTRA_DIST): Add strdup.h.
40803         * modules/strftime (EXTRA_DIST): Add strftime.h.
40804         * modules/strndup (EXTRA_DIST): Add strndup.h.
40805         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
40806         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
40807         * modules/time_r (EXTRA_DIST): Add time_r.h.
40808         * modules/timespec (EXTRA_DIST): Add timespec.h.
40809         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
40810         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
40811         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
40812         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
40813         * modules/userspec (EXTRA_DIST): Add userspec.h.
40814         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
40815         * modules/utimens (EXTRA_DIST): Add utimens.h.
40816         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
40817         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
40818         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
40819         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
40820         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
40821         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
40822         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
40823         * modules/yesno (EXTRA_DIST): Add yesno.h.
40824
40825 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
40826
40827         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
40828
40829         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
40830         * m4/dev-ino.m4, same-inode.m4: Remove.
40831
40832         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
40833         * m4/acl.m4 (AC_FUNC_ACL):
40834         * m4/backupfile.m4 (gl_BACKUPFILE):
40835         * m4/c-strtod.m4 (gl_C99_STRTOLD):
40836         * m4/canon-host.m4 (gl_CANON_HOST):
40837         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40838         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
40839         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
40840         * m4/cloexec.m4 (gl_CLOEXEC):
40841         * m4/close-stream.m4 (gl_CLOSE_STREAM):
40842         * m4/closeout.m4 (gl_CLOSEOUT):
40843         * m4/dirfd.m4 (gl_FUNC_DIRFD):
40844         * m4/dirname.m4 (gl_DIRNAME):
40845         * m4/exclude.m4 (gl_EXCLUDE):
40846         * m4/exitfail.m4 (gl_EXITFAIL):
40847         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
40848         * m4/file-type.m4 (gl_FILE_TYPE):
40849         * m4/filemode.m4 (gl_FILEMODE):
40850         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
40851         * m4/fpending.m4 (gl_FUNC_FPENDING):
40852         * m4/fprintftime.m4 (gl_FPRINTFTIME):
40853         * m4/fts.m4 (gl_FUNC_FTS):
40854         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
40855         * m4/getdate.m4 (gl_GETDATE):
40856         * m4/gethrxtime.m4 (gl_GETHRXTIME):
40857         * m4/getpagesize.m4 (gl_GETPAGESIZE):
40858         * m4/getpass.m4 (gl_FUNC_GETPASS):
40859         * m4/gettime.m4 (gl_GETTIME):
40860         * m4/getugroups.m4 (gl_GETUGROUPS):
40861         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
40862         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
40863         * m4/hard-locale.m4 (gl_HARD_LOCALE):
40864         * m4/hash.m4 (gl_HASH):
40865         * m4/idcache.m4 (gl_IDCACHE):
40866         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
40867         * m4/lchown.m4 (gl_FUNC_LCHOWN):
40868         * m4/long-options.m4 (gl_LONG_OPTIONS):
40869         * m4/lstat.m4 (gl_FUNC_LSTAT):
40870         * m4/md5.m4 (gl_MD5):
40871         * m4/memcasecmp.m4 (gl_MEMCASECMP):
40872         * m4/memcoll.m4 (gl_MEMCOLL):
40873         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
40874         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
40875         * m4/memxor.m4 (gl_MEMXOR):
40876         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
40877         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
40878         * m4/modechange.m4 (gl_MODECHANGE):
40879         * m4/mountlist.m4 (gl_MOUNTLIST):
40880         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40881         * m4/openat.m4 (gl_FUNC_OPENAT):
40882         * m4/pathmax.m4 (gl_PATHMAX):
40883         * m4/physmem.m4 (gl_PHYSMEM):
40884         * m4/posixtm.m4 (gl_POSIXTM):
40885         * m4/posixver.m4 (gl_POSIXVER):
40886         * m4/quote.m4 (gl_QUOTE):
40887         * m4/quotearg.m4 (gl_QUOTEARG):
40888         * m4/readtokens.m4 (gl_READTOKENS):
40889         * m4/readutmp.m4 (gl_READUTMP):
40890         * m4/regex.m4 (gl_REGEX):
40891         * m4/safe-read.m4 (gl_SAFE_READ):
40892         * m4/safe-write.m4 (gl_SAFE_WRITE):
40893         * m4/same.m4 (gl_SAME):
40894         * m4/save-cwd.m4 (gl_SAVE_CWD):
40895         * m4/savedir.m4 (gl_SAVEDIR):
40896         * m4/settime.m4 (gl_SETTIME):
40897         * m4/sha1.m4 (gl_SHA1):
40898         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
40899         * m4/stat-macros.m4 (gl_STAT_MACROS):
40900         * m4/stat-time.m4 (gl_STAT_TIME):
40901         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
40902         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
40903         * m4/strdup.m4 (gl_FUNC_STRDUP):
40904         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
40905         * m4/strndup.m4 (gl_FUNC_STRNDUP):
40906         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
40907         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
40908         * m4/time_r.m4 (gl_TIME_R):
40909         * m4/timespec.m4 (gl_TIMESPEC):
40910         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
40911         * m4/unlinkdir.m4 (gl_UNLINKDIR):
40912         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
40913         * m4/userspec.m4 (gl_USERSPEC):
40914         * m4/utimecmp.m4 (gl_UTIMECMP):
40915         * m4/utimens.m4 (gl_UTIMENS):
40916         * m4/xalloc.m4 (gl_XALLOC):
40917         * m4/xgetcwd.m4 (gl_XGETCWD):
40918         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
40919         * m4/xreadlink.m4 (gl_XREADLINK):
40920         * m4/xstrtod.m4 (gl_XSTRTOD):
40921         * m4/yesno.m4 (gl_YESNO):
40922         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
40923         to get the necessary .h files and whatnot.
40924
40925 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
40926             Bruno Haible  <bruno@clisp.org>
40927
40928         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
40929         /bin/sh understanding of '!' conditional negation.
40930
40931 2006-08-21  Jim Meyering  <jim@meyering.net>
40932
40933         * modules/openat (Depends-on): Really alphabetize.
40934
40935         * modules/acl (Depends-on): Add error and quote.
40936
40937         * check-module (find_included_lib_files): Add at-func.c to the
40938         ok-to-include-more-than-once white list.
40939
40940         * modules/openat (Depends-on): Add lstat.  Alphabetize.
40941
40942 2006-08-21  Bruno Haible  <bruno@clisp.org>
40943
40944         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40945         Emit a pkgdata_DATA variable only if some snippets add contents to it.
40946         Reported by Martin Lambers <marlam@marlam.de>.
40947
40948 2006-08-21  Bruno Haible  <bruno@clisp.org>
40949
40950         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
40951         specify an installation location, don't emit a noinst_LIBRARIES or
40952         noinst_LTLIBRARIES assignment.
40953
40954 2006-08-21  Bruno Haible  <bruno@clisp.org>
40955
40956         BeOS portability.
40957         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
40958         BeOS has mbrtowc() but no <wctype.h>.
40959
40960 2006-08-21  Bruno Haible  <bruno@clisp.org>
40961
40962         BeOS portability.
40963         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
40964         exist.
40965
40966 2006-08-21  Bruno Haible  <bruno@clisp.org>
40967
40968         BeOS portability.
40969         * lib/mbchar.h: Include <wctype.h> only if it exists.
40970
40971 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40972
40973         Remove files that are no longer needed by their respective modules.
40974         * m4/obstack.m4: Remove.
40975         * m4/strerror_r.m4: Remove.
40976         * m4/uint32_t.m4: Remove.
40977         * m4/uintptr_t.m4: Remove.
40978         * m4/ullong_max.m4: Remove.
40979         * m4/xstrtoimax.m4: Remove.
40980         * m4/xstrtoumax.m4: Remove.
40981
40982         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
40983         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
40984         dependencies now capture this.
40985
40986         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
40987         Do not use AC_LIBSOURCES, since gnulib modules now do this.
40988         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
40989         * m4/human.m4 (gl_HUMAN): Likewise.
40990         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
40991         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
40992
40993         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
40994
40995         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
40996         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
40997         stdint.
40998         * m4/human.m4 (gl_HUMAN): Likewise.
40999         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
41000         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
41001         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
41002         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
41003         * m4/xstrtol (gl_XSTRTOL): Likewise.
41004
41005         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
41006         AC_TYPE_LONG_LONG_INT.
41007         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
41008         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
41009         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
41010         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
41011
41012         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
41013         on stdbool.
41014
41015         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
41016         (gl_PREREQ_XSTRTOUL): Remove.
41017
41018         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
41019
41020         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
41021         mode.
41022
41023 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
41024
41025         Add and change modules to make it easier for coreutils to use
41026         gnulib-tool.
41027         * modules/backupfile (Files): Remove m4/d-ino.m4.
41028         (Depends-on): Add d-ino.
41029         * modules/cycle-check (Depends-on): Add stdint.
41030         (lib_SOURCES): Add cycle-check.h.
41031         * modules/d-ino: New module.
41032         * modules/d-type: New module.
41033         * modules/error (Files): Remove m4/strerror_r.m4.
41034         * modules/filemode (Files): Add m4/st_dm_mode.m4.
41035         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
41036         m4/inttypes_h.m4, m4/uintmax_t.m4.
41037         (Depends-on): Add stdint.
41038         (lib_SOURCES): Add fsusage.h.
41039         * modules/getcwd (Files): Remove d-ino.m4.
41040         (Depends-on): Add d-ino.
41041         * modules/getndelim2 (Depends-on): Add stdint.
41042         * modules/glob (Files): Remove m4/d-type.m4.
41043         (Depends-on): Add d-type.
41044         * modules/host-os: New module.
41045         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
41046         m4/inttypes_h.m4, m4/uintmax_t.m4.
41047         * Depends-on: Add stdint.
41048         (lib_SOURCES): Add human.h.
41049         * modules/inttostr (Files): Remove m4/intmax_t.m4,
41050         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
41051         m4/uintmax_t.m4, m4/ulonglong.m4.
41052         (Depends-on): Add stdint.
41053         (EXTRA_DIST): Add inttostr.h.
41054         * modules/lchmod: New module.
41055         * modules/link-follow: New module.
41056         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
41057         (Depends-on): Add lchmod.
41058         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
41059         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
41060         (Depends-on): Add stdint.
41061         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
41062         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
41063         (Depends-on): Add stdint.
41064         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
41065         * modules/perl: New module.
41066         * modules/regex (Depends-on): Add stdint.
41067         * modules/rmdir-errno: New module.
41068         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
41069         m4/intmax_t.m4.
41070         (Depends-on): Add stdint.
41071         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
41072         m4/uintmax_t.m4.
41073         (Depends-on): Add stdint.
41074         * modules/unlink-busy: New module.
41075         * modules/utimecmp (Depends-on): Add stdint.
41076         * modules/uptime: New module.
41077         * modules/winsz-ioctl: New module.
41078         * modules/winsz-termios: New module.
41079         * modules/xnanosleep (Depends-on): Add nanosleep.
41080         * modules/ullong_max: Remove.
41081         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
41082         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
41083         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
41084         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
41085         (Depends-on): Add inttypes.
41086         (lib_SOURCES): Add xstrtol.h.
41087         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
41088         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
41089         * MODULES.html.sh: Move 'assert' into the assert section.
41090         Move 'dummy' into the linking section.
41091         Remove ullong_max.
41092         Add section for compatibility checks for POSIX:2001 functions,
41093         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
41094         winsz-ioctl, and winsz-termios into it.
41095         Add lchmod.
41096         Add top-level Misc section and put host-os, perl, and uptime
41097         into it.
41098
41099 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
41100
41101         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
41102         now assume the stdint module.  Do not include inttypes.h.
41103         * lib/fsusage.h: Likewise.
41104         * lib/getndelim2.c: Likewise.
41105         * lib/human.h: Likewise.
41106         * lib/inttostr.h: Likewise.
41107         * lib/obstack.c: Likewise.
41108         * lib/regex_internal.h: Likewise.
41109         * lib/tempname.c: Likewise.
41110         * lib/utimecmp.c: Likewise.
41111         * lib/xstrtol.h: Likewise.
41112
41113         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
41114
41115         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
41116         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
41117         * lib/xtime.h: Likewise.
41118
41119 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
41120
41121         * modules/openat (Files): Add lib/fchmodat.c.
41122         Fixes problem reported by Jay Youngman.
41123
41124 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
41125
41126         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
41127         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
41128
41129 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
41130             Bruno Haible  <bruno@clisp.org>
41131
41132         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
41133         and is a script that invokes bison. Tighten the code. Add comments.
41134
41135 2006-08-18  Jim Meyering  <jim@meyering.net>
41136
41137         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
41138         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
41139         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
41140         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
41141
41142 2006-08-18  Bruno Haible  <bruno@clisp.org>
41143
41144         * modules/bison-i18n: New file.
41145         * MODULES.html.sh (Internationalization functions): Add it.
41146
41147 2006-08-18  Bruno Haible  <bruno@clisp.org>
41148
41149         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
41150         sys/statvfs.h. When getmntinfo was found, check its declaration and
41151         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
41152
41153 2006-08-18  Bruno Haible  <bruno@clisp.org>
41154
41155         * m4/bison-i18n.m4: New file, from bison.
41156
41157 2006-08-18  Bruno Haible  <bruno@clisp.org>
41158
41159         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
41160         (ME_DUMMY): Treat "kernfs" as a dummy.
41161         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
41162
41163 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
41164
41165         Update from coreutils.
41166
41167         2006-08-15  Jim Meyering  <jim@meyering.net>
41168
41169         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
41170
41171         2006-01-17  Jim Meyering  <jim@meyering.net>
41172
41173         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
41174
41175         2006-01-11  Jim Meyering  <jim@meyering.net>
41176
41177         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
41178         Check for the lchmod function.
41179
41180 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
41181
41182         Update from coreutils.
41183
41184         * lib/__fpending.h: Add copyright notice.
41185         * lib/fprintftime.h: Likewise.
41186         * lib/savedir.c: Use (C) in copyright notice.
41187         * lib/savedir.h: Likewise.
41188
41189         2006-08-15  Jim Meyering  <jim@meyering.net>
41190
41191         * lib/at-func.c: New file, with the logic of all emulated at-functions.
41192         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
41193         in support of the EXPECTED_ERRNO macro.
41194         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
41195         definitions.  Instead, define the appropriate symbols and include
41196         "at-func.c".
41197         * lib/mkdirat.c (mkdirat): Likewise.
41198         * lib/fchmodat.c (fchmodat): Likewise.
41199         (ENOSYS): Remove definition.
41200         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
41201         it.  Don't include "unistd--.h" -- it wasn't ever used.
41202
41203         2006-01-17  Jim Meyering  <jim@meyering.net>
41204
41205         Rewrite fts.c not to change the current working directory,
41206         by using openat, fstatat, fdopendir, etc..
41207
41208         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
41209         (HAVE_OPENAT_SUPPORT): Define.
41210         [_LIBC] (fchdir): Don't undef or define; no longer used.
41211         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
41212         Now, this `function' always succeeds, and consumes its file descriptor
41213         parameter -- so callers must not close such FDs.  Update callers.
41214         (diropen_fd, opendirat, cwd_advance_fd): New functions.
41215         (diropen): Add parameter, SP.  Adjust all callers.
41216         Implement using diropen_fd, rather than open.
41217         (fts_open): Initialize new member, fts_cwd_fd.
41218         Remove fts_rft-setting code.
41219         (fts_close): Close fts_cwd_fd, if necessary.
41220         (__opendir2): Define in terms of opendir or opendirat,
41221         depending on whether the FST_NOCHDIR flag is set.
41222         (fts_build): Since fts_safe_changedir consumes its FD, and since
41223         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
41224         and close the dup'd file descriptor upon failure.
41225         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
41226         (fts_safe_changedir): Tweak semantics to reflect that this function
41227         now calls cwd_advance_fd and hence consumes its FD argument.
41228         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
41229         [struct FTS] (fts_rft): Remove now-unused member.
41230         [struct FTS] (fts_cycle.state): Improve comment.
41231
41232         * lib/openat.c (openat_needs_fchdir): New function.
41233         * lib/openat.h (openat_needs_fchdir): Declare it.
41234
41235 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
41236
41237         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
41238         Problem and fix reported by Pádraig Brady in
41239         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
41240
41241 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41242
41243         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
41244
41245 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41246
41247         * lib/memcoll.c (memcoll): Optimize for the common case where the
41248         arguments are bytewise equal.
41249
41250 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41251
41252         * doc/regexprops-generic.texi: Add a copyright notice.
41253
41254 2006-08-15  Bruno Haible  <bruno@clisp.org>
41255
41256         * modules/tmpdir (License): Change to LGPL.
41257
41258 2006-08-15  Bruno Haible  <bruno@clisp.org>
41259
41260         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
41261         module.
41262
41263 2006-08-14  Simon Josefsson  <jas@extundo.com>
41264
41265         * config/srclist.txt: Add gnupload.
41266
41267 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41268
41269         Change copyright notice from LGPL 2 to GPL 2, since that's the
41270         standard form used in the gnulib repository.
41271         * tests/test-lock.c: Likewise.
41272         * tests/test-stdint.c: Likewise.
41273         * tests/test-tls.c: Likewise.
41274
41275         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
41276         prelude-manager.  User shorter URLs for GNU projects, without '?'.
41277         Add copyright notice.
41278
41279         * check-module: Add copyright notice.  Output a copyright
41280         notice if "--version" is specified.
41281         * modules/COPYING: New file.
41282         * tests/test-getaddrinfo.c: Add copyright notice.
41283         * tests/test-verify.c: Likewise.
41284
41285 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41286
41287         Change copyright notice from LGPL 2 to GPL 2, since that's the
41288         standard form used in the gnulib repository.
41289         * lib/lock.c: LGPL -> GPL.
41290         * lib/lock.h: Likewise.
41291         * lib/strnlen1.c: Likewise.
41292         * lib/strnlen1.h: Likewise.
41293         * lib/tls.c: Likewise.
41294         * lib/tls.h: Likewise.
41295         * lib/tmpdir.c: Likewise.
41296
41297         * lib/TODO: Remove; this belongs only in coreutils.
41298
41299 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41300
41301         Add copyright notices to long-enough files that lack them, since
41302         otherwise the files aren't clearly free.  Use the same notice that
41303         getdate.texi already uses.
41304         * doc/alloca-opt.texi: Add copyright notice.
41305         * doc/alloca.texi: Likewise.
41306         * doc/ctime.texi: Likewise.
41307         * doc/functions.texi: Likewise.
41308         * doc/gcd.texi: Likewise.
41309         * doc/gnulib-tool.texi: Likewise.
41310         * doc/inet_ntoa.texi: Likewise.
41311         * doc/visibility.texi: Likewise.
41312
41313         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
41314         * doc/quote.texi: Add copyright notice.
41315
41316         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
41317         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
41318         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
41319         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
41320         is now obsolete, and give a pointer to the Sun list.
41321         Add copyright notice.
41322
41323 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41324
41325         * config/srclistvars.sh: Add copyright notice.
41326
41327 2006-08-14  Eric Blake  <ebb9@byu.net>
41328
41329         Import the following change from libc:
41330
41331         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
41332
41333         Upstream bug 2997.
41334         * lib/misc/error.c: Add space between program name and message if file
41335         name is missing.
41336
41337 2006-08-12  Karl Berry  <karl@gnu.org>
41338
41339         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
41340         remove, these originate in gnulib now.
41341
41342 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41343
41344         * doc/Makefile (standards.info standards.html standards.dvi):
41345         Also depend on make-stds.texi.
41346
41347 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
41348
41349         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
41350         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
41351
41352         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
41353         in wchar_t.  Problem reported by Eric Blake.
41354
41355         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
41356         LEN is smaller than SIZE.  Suggested by Bruno Haible.
41357         Also, help the compiler to keep LEN in a register.
41358
41359 2006-08-11  Eric Blake  <ebb9@byu.net>
41360
41361         * users.txt: Sort.  Add tar.
41362
41363 2006-08-11  Bruno Haible  <bruno@clisp.org>
41364
41365         * users.txt: New file.
41366
41367 2006-08-11  Bruno Haible  <bruno@clisp.org>
41368
41369         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
41370         before <wchar.h>. Needed for OSF/1 and BSD/OS.
41371
41372 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41373
41374         * modules/snprintf (Depends-on): Remove minmax.
41375         (Maintainer): Add self and Bruno.
41376
41377 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41378
41379         * lib/.cppi-disable: Add snprintf.h, socket_.h.
41380         * lib/snprintf.c: Include <errno.h> and <limits.h>.
41381         (EOVERFLOW): Define if the system does not.
41382         Do not include "minmax.h"; it wasn't used.
41383         (snprintf): Don't assume size_t promotes to an unsigned type.
41384         Fix bug when generated string was too long for the buffer: the
41385         buffer's contents are supposed to be the initial prefix of the
41386         output.  Don't assume vasnprintf returns EOVERFLOW if the size
41387         exceeds INT_MAX; do the check ourselves.
41388
41389         Import the following changes from libc:
41390
41391         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
41392
41393         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
41394         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
41395         set wc to the byte which couldn't be converted.
41396         (re_string_reconstruct): Don't clear valid_raw_len before calling
41397         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
41398         tip_context using re_string_context_at.
41399
41400         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
41401
41402         * lib/posix/regex.h: g++ still cannot handled [restrict].
41403
41404         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
41405
41406         * lib/posix/regex.h: Remove special handling for VMS.
41407
41408 2006-08-10  Jim Meyering  <jim@meyering.net>
41409
41410         * modules/same-inode: New module.
41411         * modules/dev-ino: New module.
41412         * modules/cycle-check: Depend on these modules, rather than simply
41413         including their .h files.
41414         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
41415         required via m4/cycle-check.m4.
41416         * modules/same: Depend on new same-inode module, rather than
41417         including same-inode.h.
41418         * modules/chdir-safer: New file.
41419
41420         * modules/chown (Depends-on): Add stat-macros.
41421
41422 2006-08-10  Jim Meyering  <jim@meyering.net>
41423
41424         * m4/cycle-check.m4: New file.
41425         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
41426         * m4/dev-ino.m4, m4/same-inode.m4: New files.
41427
41428 2006-08-10  Eric Blake  <ebb9@byu.net>
41429
41430         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
41431         in from original proposal.
41432
41433 2006-08-10  Eric Blake  <ebb9@byu.net>
41434         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41435
41436         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
41437         namespace.
41438
41439 2006-08-10  Bruno Haible  <bruno@clisp.org>
41440
41441         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
41442         as well.
41443
41444 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41445
41446         Sync from coreutils.
41447
41448         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
41449
41450         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
41451         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
41452
41453 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41454
41455         * modules/restrict: Remove; no longer needed now that we assume
41456         Autoconf 2.59 or later.
41457         * MODULES.html.sh: Remove 'restrict'.
41458         * modules/argp (Depends-on): Remove 'restrict'.
41459         * modules/base64 (Depends-on): Likewise.
41460         * modules/gc (Depends-on): Likewise.
41461         * modules/getaddrinfo (Depends-on): Likewise.
41462         * modules/glob (Depends-on): Likewise.
41463         * modules/inet_ntop (Depends-on): Likewise.
41464         * modules/inet_pton (Depends-on): Likewise.
41465         * modules/memxor (Depends-on): Likewise.
41466         * modules/regex (Depends-on): Likewise.
41467         * modules/strtok_r (Depends-on): Likewise.
41468         * modules/time_r (Depends-on): Likewise.
41469
41470 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41471
41472         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
41473         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
41474         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
41475         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
41476         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
41477         * m4/memxor.m4 (gl_MEMXOR): Likewise.
41478         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
41479         gl_C_RESTRICT replaced by AC_C_RESTRICT.
41480
41481         Merge from coreutils.
41482         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
41483         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
41484         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41485         * m4/time_r.m4 (gl_TIME_R): Likewise.
41486
41487 2006-08-09  Karl Berry  <karl@gnu.org>
41488
41489         * config/srclist.txt: no more gettext-tools, per Bruno.
41490
41491 2006-08-08  Eric Blake  <ebb9@byu.net>
41492
41493         * modules/verror: New module.
41494         * MODULES.html.sh: Document it.
41495
41496 2006-08-08  Eric Blake  <ebb9@byu.net>
41497
41498         * lib/verror.h, lib/verror.c: New files.
41499
41500 2006-08-08  Eric Blake  <ebb9@byu.net>
41501
41502         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
41503         verror_at_line output complies with GNU Coding Standards even when
41504         file is NULL.
41505
41506 2006-08-07  Bruno Haible  <bruno@clisp.org>
41507
41508         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
41509         versions of AIX.
41510         Reported by Ralf Wildenhues.
41511
41512 2006-08-07  Bruno Haible  <bruno@clisp.org>
41513
41514         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
41515         in an AC_DEFUN. Needed so that the autoconf snippets can use
41516         AC_REQUIRE.
41517
41518 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41519
41520         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41521         Initialize pkgdata_DATA.
41522         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
41523         overriding it.
41524
41525 2006-08-06  Eric Blake  <ebb9@byu.net>
41526
41527         * lib/error.h: Fold in some upstream changes from glibc.
41528         * lib/error.c: Likewise.
41529
41530 2006-08-04  Bruno Haible  <bruno@clisp.org>
41531
41532         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41533         Make the mostlyclean-local rule depend on mostlyclean-generic.
41534         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
41535
41536 2006-07-31  Bruno Haible  <bruno@clisp.org>
41537
41538         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
41539         <stdlib.h>, <string.h>.
41540
41541 2006-07-30  Bruno Haible  <bruno@clisp.org>
41542
41543         * modules/readlink (License): Change to LGPL.
41544
41545 2006-07-30  Bruno Haible  <bruno@clisp.org>
41546
41547         * modules/javaversion (Makefile.am): Distribute javaversion.java and
41548         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
41549         set PKGDATADIR to point to it.
41550
41551 2006-07-30  Bruno Haible  <bruno@clisp.org>
41552
41553         * modules/csharpexec (configure.ac): Comment out macro invocation.
41554         * modules/javaexec (configure.ac): Likewise.
41555         * modules/javacomp-script (configure.ac): Likewise.
41556
41557         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
41558
41559 2006-07-30  Bruno Haible  <bruno@clisp.org>
41560
41561         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
41562         linked-list.
41563
41564 2006-07-30  Bruno Haible  <bruno@clisp.org>
41565
41566         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
41567
41568 2006-07-30  Bruno Haible  <bruno@clisp.org>
41569
41570         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41571         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
41572         get removed.
41573
41574 2006-07-29  Bruno Haible  <bruno@clisp.org>
41575
41576         Make it possible for gnulib-tool to work with locally modified or
41577         augmented gnulib repositories.
41578         * gnulib-tool (func_usage): Document --local-dir option.
41579         (local_gnulib_dir): New variable.
41580         Handle --local-dir option.
41581         (func_lookup_file): New function.
41582         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
41583         (func_get_description, func_get_filelist, func_get_description,
41584         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
41585         func_get_automake_snippet, func_get_include_directive,
41586         func_get_license, func_get_maintainer): Use func_lookup_file.
41587         (func_import, func_create_testdir): Use func_lookup_file.
41588
41589 2006-07-29  Bruno Haible  <bruno@clisp.org>
41590
41591         * modules/setenv (Depends-on): Add unistd.
41592
41593 2006-07-29  Bruno Haible  <bruno@clisp.org>
41594
41595         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
41596
41597 2006-07-29  Bruno Haible  <bruno@clisp.org>
41598
41599         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
41600
41601 2006-07-29  Bruno Haible  <bruno@clisp.org>
41602
41603         * gnulib-tool (import, update): If there is no Makefile.am, look at
41604         aclocal.m4, instead of bailing out.
41605
41606 2006-07-29  Bruno Haible  <bruno@clisp.org>
41607
41608         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
41609         Categorize the options by when they are useful.
41610
41611 2006-07-29  Bruno Haible  <bruno@clisp.org>
41612
41613         * gnulib-tool (func_usage): Document option --no-libtool.
41614         Handle option --no-libtool.
41615         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
41616         for changed semantics of $libtool variable.
41617         (func_import): Likewise. If libtool is not used, show this through
41618         an option --no-libtool.
41619         (func_create_testdir): Update.
41620
41621 2006-07-29  Bruno Haible  <bruno@clisp.org>
41622
41623         * gnulib-tool (func_import): Extend error message about missing
41624         --doc-base.
41625
41626 2006-07-29  Bruno Haible  <bruno@clisp.org>
41627
41628         * gnulib-tool (func_import): Don't create the $docbase directory if
41629         there is no file to store there.
41630
41631 2006-07-29  Bruno Haible  <bruno@clisp.org>
41632
41633         * gnulib-tool (autoconf_minversion): If a --dir option is given and
41634         relevant, look for configure.ac there, not in the current directory.
41635         Also use a simple search for AC_PREREQ, not "autoconf --trace".
41636
41637 2006-07-29  Bruno Haible  <bruno@clisp.org>
41638
41639         * gnulib-tool (SORT): New variable.
41640         (func_usage): Undocument --assume-autoconf option.
41641         Remove --assume-autoconf option handling.
41642         (autoconf_minversion): Determine from the contents of configure.ac.
41643         (func_import): Remove autoconf_minversion handling.
41644         Suggested by Eric Blake.
41645
41646 2006-07-29  Bruno Haible  <bruno@clisp.org>
41647
41648         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
41649
41650 2006-07-29  Bruno Haible  <bruno@clisp.org>
41651
41652         * config/srclist.txt (*setenv.[ch]): Remove rules.
41653
41654 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41655
41656         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
41657
41658 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41659
41660         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
41661         arpa/inet.h.
41662
41663 2006-07-28  Simon Josefsson  <jas@extundo.com>
41664
41665         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
41666         * modules/inet_pton (Depends-on): Likewise.
41667
41668 2006-07-28  Simon Josefsson  <jas@extundo.com>
41669
41670         * m4/netinet_in_h.m4: New file.
41671
41672 2006-07-28  Simon Josefsson  <jas@extundo.com>
41673
41674         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
41675         #include's.
41676
41677 2006-07-28  Simon Josefsson  <jas@extundo.com>
41678
41679         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
41680         #include's.
41681
41682 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
41683
41684         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
41685         setgid on directories only if they set these bits.
41686         * lib/modechange.h: Remove obsolete comment about masks.
41687
41688 2006-07-28  Eric Blake  <ebb9@byu.net>
41689
41690         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
41691         macro expansion.
41692
41693 2006-07-28  Bruno Haible  <bruno@clisp.org>
41694
41695         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
41696
41697 2006-07-28  Bruno Haible  <bruno@clisp.org>
41698
41699         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
41700
41701 2006-07-28  Bruno Haible  <bruno@clisp.org>
41702
41703         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41704         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41705         Define fallbacks.
41706         Avoids link error on FreeBSD 4.x.
41707         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41708
41709         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
41710         encoding.
41711         * lib/mbswidth.c (iswcntrl): Likewise.
41712
41713 2006-07-27  Bruno Haible  <bruno@clisp.org>
41714
41715         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
41716         test.
41717
41718 2006-07-27  Bruno Haible  <bruno@clisp.org>
41719
41720         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
41721         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
41722         defined.
41723
41724 2006-07-26  Eric Blake  <ebb9@byu.net>
41725
41726         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
41727
41728 2006-07-26  Eric Blake  <ebb9@byu.net>
41729
41730         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
41731         like mingw that lack mkstemp.
41732         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
41733         avoid compilation warning on mingw.
41734
41735 2006-07-26  Bruno Haible  <bruno@clisp.org>
41736
41737         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
41738         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
41739         INT_FAST*_MIN, INTPTR_MIN.
41740
41741 2006-07-25  Bruno Haible  <bruno@clisp.org>
41742
41743         * modules/version-etc (Depends-on): Add stdarg.
41744
41745 2006-07-25  Bruno Haible  <bruno@clisp.org>
41746
41747         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
41748         complex commands.
41749
41750 2006-07-25  Bruno Haible  <bruno@clisp.org>
41751
41752         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
41753         defined in <stdarg.h> or config.h.
41754
41755 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
41756
41757         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
41758         (gl_STDIO_SAFER): Remove.
41759
41760 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
41761
41762         * MODULES.html.sh (File stream based Input/Output):
41763         Add fopen-safer, tmpfile-safer; remove stdio-safer.
41764         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
41765         * modules/fopen-safer, modules/tmpfile-safer: New files.
41766         * modules/stdio-safer: Remove.
41767
41768 2006-07-24  Bruno Haible  <bruno@clisp.org>
41769
41770         * modules/tmpdir: New file.
41771         * MODULES.html.sh (File system functions): Add it.
41772
41773 2006-07-24  Bruno Haible  <bruno@clisp.org>
41774
41775         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
41776         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
41777
41778 2006-07-24  Bruno Haible  <bruno@clisp.org>
41779
41780         * modules/clean-temp: New file.
41781
41782 2006-07-24  Bruno Haible  <bruno@clisp.org>
41783
41784         * m4/tmpdir.m4: New file, from GNU gettext.
41785
41786 2006-07-24  Bruno Haible  <bruno@clisp.org>
41787
41788         * lib/tmpdir.h: New file, from GNU gettext.
41789         * lib/tmpdir.c: New file, from GNU gettext.
41790
41791 2006-07-24  Bruno Haible  <bruno@clisp.org>
41792
41793         * lib/clean-temp.h: New file, from GNU gettext.
41794         * lib/clean-temp.c: New file, from GNU gettext.
41795
41796 2006-07-23  Eric Blake  <ebb9@byu.net>
41797
41798         * modules/stdio-safer (Files): Add tmpfile-safer.c.
41799         (Depends-on): Add binary-io.
41800
41801 2006-07-23  Eric Blake  <ebb9@byu.net>
41802
41803         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
41804
41805 2006-07-23  Eric Blake  <ebb9@byu.net>
41806
41807         * lib/tmpfile-safer.c: New file.
41808         * lib/stdio-safer.h (fopen_safer): Add prototype.
41809         * lib/stdio--.h (tmpfile): Make safer.
41810
41811 2006-07-23  Bruno Haible  <bruno@clisp.org>
41812
41813         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
41814         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
41815         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
41816         gl_linked_remove_at): Use it.
41817
41818 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41819         and Simon Josefsson <jas@extundo.com>
41820
41821         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
41822
41823         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
41824
41825 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
41826
41827         * modules/close-stream: New file.
41828         * modules/closeout (Description): Make it clear that it exits
41829         with a diagnostic on error.
41830         (Depends-on): Add close-stream.  Remove fpending, stdbool.
41831         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
41832
41833 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
41834
41835         * m4/close-stream.m4: New file.
41836
41837 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
41838
41839         * lib/close-stream.c, lib/close-stream.h: New files.
41840
41841 2006-07-22  Bruno Haible  <bruno@clisp.org>
41842
41843         Merge from GNU gettext 0.15.
41844
41845         2006-05-01  Bruno Haible  <bruno@clisp.org>
41846
41847                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
41848
41849         2006-07-22  Bruno Haible  <bruno@clisp.org>
41850
41851                 * modules/javaversion: New file.
41852                 * MODULES.html.sh (Java): Add javaversion.
41853
41854         2006-03-12  Bruno Haible  <bruno@clisp.org>
41855
41856                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
41857
41858         2005-12-04  Bruno Haible  <bruno@clisp.org>
41859
41860                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
41861                 (untested).
41862
41863         2006-06-21  Bruno Haible  <bruno@clisp.org>
41864
41865                 Avoid warnings from recent versions of mcs.
41866                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
41867                 -o, -L, -r any more. Use options documented since mcs-1.0
41868                 instead. Similarly for -g.
41869
41870         2005-12-04  Bruno Haible  <bruno@clisp.org>
41871
41872                 * build-aux/csharpcomp.sh.in: Suffix for resources is
41873                 .resources, not .resource.
41874
41875         2005-07-09  Bruno Haible  <bruno@clisp.org>
41876
41877                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
41878                 add a .dll suffix.
41879                 Reported by Mark Junker <mjscod@gmx.de>.
41880
41881         2006-07-22  Bruno Haible  <bruno@clisp.org>
41882
41883                 * modules/gettext: Upgrade to gettext-0.15.
41884                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
41885                 m4/visibility.m4.
41886                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
41887
41888 2006-07-22  Bruno Haible  <bruno@clisp.org>
41889
41890         Merge from GNU gettext 0.15.
41891
41892         2006-03-25  Bruno Haible  <bruno@clisp.org>
41893
41894                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
41895
41896         2006-07-21  Bruno Haible  <bruno@clisp.org>
41897
41898                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
41899                 "1.1".
41900
41901         2006-05-09  Bruno Haible  <bruno@clisp.org>
41902
41903                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
41904                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
41905                 for the conftestver execution.
41906
41907         2006-05-01  Bruno Haible  <bruno@clisp.org>
41908
41909                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
41910                 optional target-version argument. Verify that the compiler
41911                 groks source of the specified source-version, or add -source
41912                 option as necessary. Verify that the compiler produces
41913                 bytecode in the specified target-version, or add -target and
41914                 -source options as necessary. Make the result of the test
41915                 available as variable CONF_JAVAC. Also log error output in
41916                 config.log.
41917
41918         2006-03-11  Bruno Haible  <bruno@clisp.org>
41919
41920                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
41921
41922         2006-05-09  Bruno Haible  <bruno@clisp.org>
41923
41924                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
41925                 CLASSPATH_SEPARATOR to a semicolon.
41926
41927         2006-03-12  Bruno Haible  <bruno@clisp.org>
41928
41929                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
41930                 available as variable CONF_JAVA, for subsequent autoconf
41931                 tests. Also log error output in config.log.
41932
41933         2006-07-19  Bruno Haible  <bruno@clisp.org>
41934
41935                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
41936                 that getline works on glibc2 systems. Needed to avoid trouble
41937                 in relocatable.c.
41938                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
41939
41940         2005-12-04  Bruno Haible  <bruno@clisp.org>
41941
41942                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
41943                 launcher (untested).
41944
41945         2005-12-04  Bruno Haible  <bruno@clisp.org>
41946
41947                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
41948
41949         2006-07-22  Bruno Haible  <bruno@clisp.org>
41950
41951                 * gettext.m4: Update from GNU gettext-0.15.
41952                 * nls.m4: Likewise.
41953                 * po.m4: Likewise.
41954                 * inttypes-pri.m4: Likewise.
41955                 * inttypes-h.m4: Renamed from inttypes.m4.
41956                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
41957
41958 2006-07-22  Bruno Haible  <bruno@clisp.org>
41959
41960         Merge from GNU gettext 0.15.
41961
41962         2005-07-05  Bruno Haible  <bruno@clisp.org>
41963
41964                 * printf-args.c (printf_fetchargs): Work around broken
41965                 definition of wint_t on mingw.
41966
41967         2005-02-12  Bruno Haible  <bruno@clisp.org>
41968
41969                 * xallocsa.h: Add extern "C" for C++.
41970
41971         2006-05-17  Bruno Haible  <bruno@clisp.org>
41972
41973                 Cygwin portability.
41974                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
41975
41976         2006-04-30  Bruno Haible  <bruno@clisp.org>
41977
41978                 * progreloc.c: Include <mach-o/dyld.h> if available.
41979                 (find_executable): Use _NSGetExecutablePath when possible.
41980
41981         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41982
41983                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
41984                 function.
41985
41986         2005-12-29  Bruno Haible  <bruno@clisp.org>
41987
41988                 * progreloc.c (set_program_name_and_installdir): Fix
41989                 compilation error.
41990
41991         2005-12-04  Bruno Haible  <bruno@clisp.org>
41992
41993                 Cygwin portability.
41994                 * progreloc.c: Include <windows.h> also on Cygwin.
41995                 (find_executable): Add support for Cygwin.
41996                 (set_program_name_and_installdir): Handle also platforms with
41997                 nonempty EXEEXT.
41998
41999         2006-07-11  Bruno Haible  <bruno@clisp.org>
42000
42001                 * javacomp.c: Fix a comment.
42002                 Reported by Jim Meyering.
42003
42004         2006-04-30  Bruno Haible  <bruno@clisp.org>
42005
42006                 * javacomp.h (compile_java_class): Add source_version,
42007                 target_version arguments.
42008                 * javacomp.c: Rewritten to choose only a compiler that
42009                 respects the specified source_version and target_version.
42010
42011         2006-06-27  Bruno Haible  <bruno@clisp.org>
42012
42013                 Assume correct S_ISDIR macro.
42014                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
42015
42016         2006-07-22  Bruno Haible  <bruno@clisp.org>
42017
42018                 * javaversion.h: New file, from GNU gettext.
42019                 * javaversion.c: New file, from GNU gettext.
42020                 * javaversion.java: New file, from GNU gettext.
42021                 * javaversion.class: New file, from GNU gettext.
42022
42023         2006-05-17  Bruno Haible  <bruno@clisp.org>
42024
42025                 Cygwin portability.
42026                 * javaexec.c (execute_java_class): Test for jview program
42027                 also on Cygwin.
42028
42029         2006-04-09  Bruno Haible  <bruno@clisp.org>
42030
42031                 * fatal-signal.c: Don't include string.h.
42032                 (at_fatal_signal): Use a copying loop instead of memcpy.
42033
42034         2005-12-04  Bruno Haible  <bruno@clisp.org>
42035
42036                 * csharpexec.c: Add support for 'clix' launcher (untested).
42037                 (execute_csharp_using_sscli): New function.
42038                 (execute_csharp_program): Call it.
42039
42040         2006-06-21  Bruno Haible  <bruno@clisp.org>
42041
42042                 Avoid warnings from recent versions of mcs.
42043                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
42044                 -o, -L, -r any more. Use options documented since mcs-1.0
42045                 instead. Similarly for -g.
42046
42047         2005-07-09  Bruno Haible  <bruno@clisp.org>
42048
42049                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
42050                 add a .dll suffix.
42051                 Reported by Mark Junker <mjscod@gmx.de>.
42052
42053         2006-06-17  Bruno Haible  <bruno@clisp.org>
42054
42055                 * config.charset: Update for NetBSD 3.0.
42056
42057         2006-05-17  Bruno Haible  <bruno@clisp.org>
42058
42059                 Cygwin portability.
42060                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
42061
42062         2006-05-16  Bruno Haible  <bruno@clisp.org>
42063
42064                 * localcharset.c [CYGWIN]: Include <windows.h>.
42065                 (get_charset_aliases): For Cygwin, return the same CPxxx
42066                 aliases list as under WIN32.
42067                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
42068                 the environment variables. Fall back to GetACP().
42069
42070         2006-04-05  Bruno Haible  <bruno@clisp.org>
42071
42072                 * config.charset: Update Juan Manuel Guerrero's address.
42073
42074         2005-02-12  Bruno Haible  <bruno@clisp.org>
42075
42076                 * allocsa.h: Add extern "C" for C++.
42077
42078         2005-02-10  Bruno Haible  <bruno@clisp.org>
42079
42080                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
42081                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
42082
42083         2006-07-22  Bruno Haible  <bruno@clisp.org>
42084
42085                 * gettext.h: Update to GNU gettext-0.15.
42086
42087 2006-07-22  Bruno Haible  <bruno@clisp.org>
42088
42089         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
42090         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
42091         lib-prefix.m4, longdouble.m4, ssize_t.m4.
42092
42093 2006-07-21  Eric Blake  <ebb9@byu.net>
42094
42095         * modules/stdlib-safer: New file.
42096         * MODULES.html.sh (File stream based Input/Output): Add
42097         stdlib-safer.
42098
42099 2006-07-21  Eric Blake  <ebb9@byu.net>
42100
42101         * lib/stdlib-safer.h: New file from coreutils, required by
42102         stdlib--.h.
42103
42104 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
42105
42106         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
42107
42108 2006-07-20  Bruno Haible  <bruno@clisp.org>
42109
42110         * gnulib-tool: Recognize new option --assume-autoconf.
42111         (autoconf_minversion): New variable.
42112         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
42113
42114 2006-07-20  Bruno Haible  <bruno@clisp.org>
42115
42116         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
42117
42118 2006-07-19  Derek R. Price  <derek@ximbiot.com>
42119
42120         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
42121         Reindent and repaginate.
42122
42123 2006-07-19  Derek Price  <derek@ximbiot.com>
42124
42125         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
42126         Correct grammar.
42127
42128 2006-07-17  Bruno Haible  <bruno@clisp.org>
42129
42130         * modules/list: New file.
42131         * modules/array-list: New file.
42132         * modules/carray-list, modules/carray-list-tests: New files.
42133         * modules/linked-list, modules/linked-list-tests: New files.
42134         * modules/avltree-list, modules/avltree-list-tests: New files.
42135         * modules/rbtree-list, modules/rbtree-list-tests: New files.
42136         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
42137         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
42138         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
42139         * modules/oset: New file.
42140         * modules/array-oset: New file.
42141         * modules/avltree-oset, modules/avltree-oset-tests: New files.
42142         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
42143         * tests/test-carray_list.c: New file.
42144         * tests/test-linked_list.c: New file.
42145         * tests/test-avltree_list.c: New file.
42146         * tests/test-rbtree_list.c: New file.
42147         * tests/test-linkedhash_list.c: New file.
42148         * tests/test-avltreehash_list.c: New file.
42149         * tests/test-rbtreehash_list.c: New file.
42150         * tests/test-avltree_oset.c: New file.
42151         * tests/test-rbtree_oset.c: New file.
42152         * MODULES.html.sh (Container data structures): New section.
42153
42154 2006-07-17  Bruno Haible  <bruno@clisp.org>
42155
42156         * m4/gl_list.m4: New file.
42157
42158 2006-07-17  Bruno Haible  <bruno@clisp.org>
42159
42160         * lib/gl_list.h: New file.
42161         * lib/gl_list.c: New file.
42162         * lib/gl_array_list.h: New file.
42163         * lib/gl_array_list.c: New file.
42164         * lib/gl_carray_list.h: New file.
42165         * lib/gl_carray_list.c: New file.
42166         * lib/gl_linked_list.h: New file.
42167         * lib/gl_linked_list.c: New file.
42168         * lib/gl_anylinked_list1.h: New file.
42169         * lib/gl_anylinked_list2.h: New file.
42170         * lib/gl_avltree_list.h: New file.
42171         * lib/gl_avltree_list.c: New file.
42172         * lib/gl_anyavltree_list1.h: New file.
42173         * lib/gl_anyavltree_list2.h: New file.
42174         * lib/gl_rbtree_list.h: New file.
42175         * lib/gl_rbtree_list.c: New file.
42176         * lib/gl_anyrbtree_list1.h: New file.
42177         * lib/gl_anyrbtree_list2.h: New file.
42178         * lib/gl_anytree_list1.h: New file.
42179         * lib/gl_anytree_list2.h: New file.
42180         * lib/gl_linkedhash_list.h: New file.
42181         * lib/gl_linkedhash_list.c: New file.
42182         * lib/gl_anyhash_list1.h: New file.
42183         * lib/gl_anyhash_list2.h: New file.
42184         * lib/gl_avltreehash_list.h: New file.
42185         * lib/gl_avltreehash_list.c: New file.
42186         * lib/gl_rbtreehash_list.h: New file.
42187         * lib/gl_rbtreehash_list.c: New file.
42188         * lib/gl_anytreehash_list1.h: New file.
42189         * lib/gl_anytreehash_list2.h: New file.
42190
42191         * lib/gl_oset.h: New file.
42192         * lib/gl_oset.c: New file.
42193         * lib/gl_array_oset.h: New file.
42194         * lib/gl_array_oset.c: New file.
42195         * lib/gl_avltree_oset.h: New file.
42196         * lib/gl_avltree_oset.c: New file.
42197         * lib/gl_rbtree_oset.h: New file.
42198         * lib/gl_rbtree_oset.c: New file.
42199         * lib/gl_anytree_oset.h: New file.
42200
42201 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
42202
42203         * m4/mkancesdirs.m4: New file.
42204         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
42205         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
42206         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
42207         it.
42208
42209 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
42210
42211         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
42212         * lib/mkancesdirs.h: New files.
42213         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
42214         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
42215         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
42216         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
42217         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
42218         callers changed.  Revamp internals significantly, by not
42219         attempting to create directories that are temporarily more
42220         permissive than the final results.  Do not attempt to use
42221         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
42222         This removes some race conditions, fixes some bugs, and simplifies
42223         things.  Use new dirchownmod function to do owner and mode changes.
42224         * lib/mkdir-p.h: Likewise.
42225         * lib/modechange.c (octal_to_mode): New function.
42226         (struct mode_change): New member mentioned.
42227         (make_node_op_equals): New arg mentioned.  All callers changed.
42228         (mode_compile): Keep track of which mode bits the user has explicitly
42229         mentioned.
42230         (mode_adjust): New arg DIR, so that we implement the X op correctly.
42231         New arg PMODE_BITS, to keep track of which mode bits the user
42232         mentioned; it treats S_ISUID and S_ISGID speciall.
42233         All callers changed.
42234         * lib/modechange.h: Likewise.
42235
42236 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
42237
42238         * MODULES.html.sh: Add mkancestors.
42239         * modules/mkancesdirs: New module.
42240         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
42241         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
42242         The chdir-safer and afs files are now orphans; I'll remove them
42243         unless someone speaks up.
42244         Add lib/dirchownmod.c, lib/dirchownmod.h.
42245         (Depends-on): Remove alloca, chown, save-cwd, dirname.
42246         Add lchown, mkancesdirs.
42247         (Maintainer): Add self.
42248
42249 2006-07-15  Karl Berry  <karl@gnu.org>
42250
42251         * gnulib-tool: help message wording/arrangement.
42252
42253 2006-07-14  Simon Josefsson  <jas@extundo.com>
42254
42255         * doc/gnulib.texi (Libtool and Windows): New section.
42256
42257 2006-07-12  Simon Josefsson  <jas@extundo.com>
42258
42259         * modules/gendocs (License): Fix license, approved by Karl.
42260
42261 2006-07-12  Eric Blake  <ebb9@byu.net>
42262
42263         * MODULES.html.sh: Add gendocs.
42264
42265 2006-07-11  Eric Blake  <ebb9@byu.net>
42266
42267         * modules/fdl: New module, to install doc/fdl.texi.
42268         * MODULES.html.sh: Add new section for documentation modules.
42269         * gnulib-tool: Avoid space-tab.
42270         (--doc-base): New option, to manage files from doc.
42271
42272 2006-07-11  Eric Blake  <ebb9@byu.net>
42273
42274         * m4/absolute-header.m4: Fix comments to match recent change.
42275
42276 2006-07-11  Eric Blake  <ebb9@byu.net>
42277
42278         * gnulib-tool: List --doc-base before --tests-base.
42279
42280 2006-07-11  Derek R. Price  <derek@ximbiot.com>
42281
42282         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
42283
42284 2006-07-11  Bruno Haible  <bruno@clisp.org>
42285
42286         * README: Mention where to put documentation.
42287
42288 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42289
42290         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
42291
42292 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
42293
42294         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
42295         to stdint.m4.
42296
42297 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
42298
42299         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
42300         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
42301         "no/such/file/stdint.h" when there is no such file, so that
42302         the resulting C code can be parsed by dodgy compilers.
42303         Problems reported by Bob Proulx.
42304
42305 2006-07-10  Derek R. Price  <derek@ximbiot.com>
42306
42307         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
42308         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
42309         macros into the GNU _D_EXACT_NAMLEN.
42310         * lib/savedir.c:  Likewise.
42311         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
42312
42313 2006-07-10  Derek R. Price  <derek@ximbiot.com>
42314         and Paul Eggert  <eggert@cs.ucla.edu>
42315
42316         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
42317         * m4/savedir.m4:
42318         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
42319         macros into the GNU _D_EXACT_NAMLEN.
42320
42321 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42322
42323         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
42324         around the absolute name, to work around a problem with the HP-UX
42325         11.23 native C compiler, reported by Bob Proulx.
42326
42327 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42328
42329         * doc/maintain.texi, make-stds.texi: Sync from
42330         <http://savannah.gnu.org/projects/gnustandards>.
42331
42332 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42333
42334         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
42335
42336 2006-07-09  Jim Meyering  <jim@meyering.net>
42337
42338         * m4/glob.m4: Remove a doubled word in a comment.
42339
42340 2006-07-09  Jim Meyering  <jim@meyering.net>
42341
42342         * lib/argp-pv.c: Remove a doubled word in a comment.
42343         * lib/check-version.c (check_version): Likewise.
42344         * lib/javacomp.c (compile_java_class): Likewise.
42345
42346 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
42347
42348         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
42349         for the benefit of people using Autoconf 2.60.  If you want to
42350         support older Autoconf versions you can copy m4/onceonly_2_57.m4
42351         (or m4/onceonly.m4, if pre-2.57) manually.
42352
42353 2006-07-08  Jim Meyering  <jim@meyering.net>
42354
42355         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
42356         comment.
42357         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
42358         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
42359         comment.
42360
42361 2006-07-08  Jim Meyering  <jim@meyering.net>
42362
42363         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
42364
42365 2006-07-07  Simon Josefsson  <jas@extundo.com>
42366
42367         * tests/test-crc.c: Change expected crc value, the test vector
42368         were probably computed using the old broken crc.c?
42369
42370 2006-07-06  Simon Josefsson  <jas@extundo.com>
42371
42372         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
42373         now the canonical place for the M4 file).
42374
42375         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
42376         from the sys_socket dependency now.
42377
42378         * modules/inet_pton (Files): Ditto.
42379
42380         * modules/inet_ntop (Files): Ditto.
42381
42382 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
42383
42384         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
42385         not gl_PREREQ_GETUSERSHELL.
42386
42387 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42388
42389         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
42390         with only one argument, for Autoconf 2.60.
42391         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
42392         expand to nothing, so add a shell command to avoid syntax error.
42393         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
42394
42395 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42396
42397         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
42398
42399 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42400
42401         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
42402         no longer needed.  Check for isblank decl.
42403         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
42404         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
42405         of existence.
42406
42407 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42408
42409         * lib/getloadavg.c: Use __VMS, not VMS.
42410         * lib/getopt.c: Likewise.
42411         * lib/getpagesize.h: Likewise.
42412         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
42413         and probably does not work.
42414
42415 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42416
42417         * lib/.cppi-disable: Add wcwidth.
42418         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
42419         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
42420         (ISGRAPH): Remove.  All uses changed to isgraph.
42421         (FOLD) [!defined _LIBC]: Remove special case.
42422         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
42423         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
42424         HAVE_ISBLANK.
42425         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
42426         case.
42427
42428 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
42429
42430         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
42431         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
42432         brackets.  Other minor changes to suppress some compiler
42433         warnings.
42434
42435 2006-07-06  Derek R. Price  <derek@ximbiot.com>
42436         and Paul Eggert  <eggert@cs.ucla.edu>
42437
42438         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
42439         of invoking obsolescent AC_HEADER_DIRENT macro.
42440         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
42441         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
42442         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42443         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
42444         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
42445         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42446         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
42447         * m4/readdir.m4: Remove; no longer needed.
42448
42449 2006-07-06  Derek R. Price  <derek@ximbiot.com>
42450         and Paul Eggert  <eggert@cs.ucla.edu>
42451
42452         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
42453         Don't worry about this obsolete case any more.
42454         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
42455         directories.
42456         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
42457         worry about this obsolete case any more.
42458         * lib/fts.c: Likewise.
42459         * lib/getcwd.c: Likewise.
42460         * lib/glob.h: Likewise.
42461         * lib/savedir.c: Likewise.
42462
42463 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
42464
42465         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
42466         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
42467         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
42468         needed.
42469         All uses removed.
42470         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42471         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
42472         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
42473         needed.
42474         * m4/getdate.m4 (gl_GETDATE): Likewise.
42475         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
42476         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
42477         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42478         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42479         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
42480         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42481         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
42482         needed.
42483
42484 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
42485
42486         * lib/memcasecmp.c: Include <limits.h>.
42487         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
42488         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
42489         Don't assume isdigit succeeds only on '0' through '9'.
42490
42491 2006-07-05  Eric Blake  <ebb9@byu.net>
42492
42493         * modules/getaddrinfo (Depends-on): Add snprintf.
42494
42495 2006-07-05  Eric Blake  <ebb9@byu.net>
42496
42497         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
42498         to avoid 'header present but could not be compiled' on cygwin.
42499
42500 2006-07-05  Eric Blake  <ebb9@byu.net>
42501
42502         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
42503         missing from netdb.h.
42504         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
42505
42506 2006-07-05  Derek R. Price  <derek@ximbiot.com>
42507
42508         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
42509         no longer needed.
42510         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
42511         * m4/getdate.m4 (gl_GETDATE): Likewise.
42512         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
42513         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
42514         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42515         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42516         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42517
42518 2006-07-05  Derek R. Price  <derek@ximbiot.com>
42519
42520         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
42521         All uses of is_space replaced by isspace.
42522         * lib/exit.h: Don't talk about STDC_HEADERS.
42523         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
42524         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
42525         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
42526         replaced by isprint etc.
42527         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
42528         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
42529         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
42530         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
42531         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
42532         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
42533
42534 2006-07-05  Bruno Haible  <bruno@clisp.org>
42535
42536         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
42537         the function exists, before testing against AIX.
42538         Reported by Martin Lambers <marlam@marlam.de>.
42539
42540 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
42541
42542         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
42543         From Mark D. Baushke.
42544
42545 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
42546
42547         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
42548         to the absolute name, not just one, to bypass Sun C 5.8's
42549         "warning: #include of /usr/include/... may be non-portable".
42550
42551 2006-07-04  Eric Blake  <ebb9@byu.net>
42552
42553         * modules/dirname-tests: New test module.
42554         * tests/test-dirname.c: New file, replacing dirname.c
42555         TEST_DIRNAME section that was recently deleted.
42556
42557 2006-07-04  Bruno Haible  <bruno@clisp.org>
42558
42559         Assume ANSI C header files and <ctype.h> functions.
42560         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
42561         (mbsnwidth): Use isprint, iscntrl instead.
42562
42563 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42564
42565         Merge from coreutils.
42566         * MODULES.html.sh: Add xstrtold.
42567         * modules/xstrtold: New file.
42568         * modules/cycle-check (Files): Add lib/same-inode.h.
42569         * modules/dirname (Files): Add m4/double-slash-root.m4.
42570         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
42571         * modules/mkdir-p (Files): Add lib/same-inode.h.
42572         * modules/same (Files): Add lib/same-inode.h.
42573
42574 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42575
42576         * m4/absolute-header.m4: Renamed from full-header-path.m4.
42577         This is to keep the terminology clean; POSIX talks about
42578         "absolute pathnames", not "full pathnames", but the GNU
42579         Coding Standards say to use "path" for something else;
42580         so use "absolute" to keep both sides happy.
42581         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
42582         Set gl_absolute_header, not gl_full_header_path.
42583         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
42584         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
42585         All uses changed.
42586
42587         Merge from coreutils.
42588
42589         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
42590
42591         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
42592         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
42593         want to require the building of c-strtod.o.
42594         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
42595         needs -lm directly.
42596         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
42597
42598         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
42599
42600         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
42601         --as-needed option if available.  Problem reported by Albert Chin in
42602         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
42603         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
42604         cc merely issues a bunch of annoying warnings for --as-needed
42605         (this problem was reported by Bob Proulx).  Also, try linking with
42606         -lm to detect a bug in binutils 2.16 (this problem was reported
42607         by Ralf Wildenhues).
42608
42609         2006-06-18  Jim Meyering  <jim@meyering.net>
42610
42611         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
42612         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
42613         macro.
42614         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
42615         also check for glibc-2.4's abort-inducing bug.
42616
42617         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
42618         Low-probability clean-up should be to use rmdir to get rid of
42619         the just-created directory, not unlink.
42620
42621         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
42622         configure fail, and request a bug report to inform us about it.
42623         Add a comment that, barring reports to the contrary, in 2007 we'll
42624         assume ftruncate is universally available.
42625
42626         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
42627
42628         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
42629
42630         2006-03-12  Jim Meyering  <jim@meyering.net>
42631
42632         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
42633         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
42634         * m4/same.m4 (gl_SAME): Likewise.
42635         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
42636
42637         2006-03-11  Eric Blake  <ebb9@byu.net>
42638
42639         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
42640         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
42641         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
42642         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
42643
42644 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42645
42646         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
42647         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
42648         reported by Mark D. Baushke, one in
42649         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
42650
42651         Merge from coreutils.
42652
42653         * lib/.cppi-disable: Add stdint_.h.
42654         * lib/.cvsignore: Add stdint.h.
42655
42656         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
42657
42658         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
42659         both double and long double versions.
42660         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
42661         * lib/xstrtold.c: New file.
42662         * lib/xstrtod.h (xstrtold): New decl.
42663
42664         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
42665
42666         * lib/filemode.c (setst): Remove.
42667         (strmode): Rewrite to avoid setst.  This makes the code shorter,
42668         (arguably) clearer, and the generated code is a bit smaller on my
42669         Debian GNU/Linux stable x86 host.
42670
42671         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
42672
42673         * lib/filemode.c: Include "filemode.h" first, to test the interface.
42674         Assume that filemode.h includes sys/types.h and sys/stat.h.
42675         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
42676         (ftypelet): Reorder to put common cases first, for efficiency.
42677         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
42678         to do 'M'.
42679         (strmode): Renamed from mode_string, and now stores 12 bytes instead
42680         of 10, for compatibility with FreeBSD.  All callers changed.
42681         (filemodestring): Now stores 12 bytes instead of 10, and sets file
42682         types that can't be deduced solely from st_mode.  First arg is now a
42683         const pointer.
42684         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
42685         (strmode): Renamed from mode_string.
42686         (filemodestring): New decl.
42687         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
42688         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
42689         needed.
42690         (S_ISPORT, S_ISWHT): New macros, if not already defined.
42691
42692         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
42693
42694         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
42695         fsusage.h now does that.  Include fsusage.h first, to test interface.
42696         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
42697         at most one method (the old code could have generated decls that
42698         didn't conform to C89, not that this was ever exercised).
42699         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
42700
42701         2006-03-19  Jim Meyering  <jim@meyering.net>
42702
42703         Work even in a chroot where d_ino values for entries in "/"
42704         don't match the stat.st_ino values for the same names.
42705         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
42706         number, iterate through all entries again, using lstat instead.
42707         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
42708         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
42709
42710         * lib/getcwd.c (__getcwd): Clarify a comment.
42711         Use memcpy in place of a call to strcpy.
42712
42713         2006-03-12  Jim Meyering  <jim@meyering.net>
42714
42715         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
42716         matches that of the current directory (which we're about to chdir ".."
42717         out of), then save the dev-ino of the parent, instead.
42718
42719         * lib/same-inode.h (SAME_INODE): New file/macro.
42720         * lib/chdir-safer.c (SAME_INODE): Remove definition.
42721         Include "same-inode.h", instead.
42722         * lib/same.c: Likewise.
42723         * lib/cycle-check.h: Include "same-inode.h".
42724         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
42725         * lib/cycle-check.c (SAME_INODE): Remove definition.
42726         * lib/root-dev-ino.h: Include "same-inode.h".
42727
42728         2006-03-11  Eric Blake  <ebb9@byu.net>
42729
42730         * lib/same.c (same_name): s/base_name/last_component/
42731         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
42732         * lib/filenamecat.c (file_name_concat): Likewise.
42733
42734         2006-03-11  Eric Blake  <ebb9@byu.net>,
42735                     Paul Eggert  <eggert@cs.ucla.edu>
42736
42737         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
42738         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
42739         drive prefix.
42740         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
42741         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
42742         (last_component): New method.
42743         * lib/dirname.c (dir_len): Determine when drive letters need a
42744         subsequent slash.  Preserve // when it is special.
42745         (dir_name): Don't append dot when drive letter is absolute.
42746         [TEST_DIRNAME]: Move into a full-blown gnulib test.
42747         * lib/basename.c (base_name): New semantics - malloc the result.
42748         Preserve // when it is special.  Preserve relative files that look
42749         like drive letters.
42750         (base_len): Preserve // when it is special.
42751         (last_component): New method, similar to old base_name semantics.
42752         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
42753         base_name.  Strip redundant slashes from ///.
42754
42755 2006-07-03  Jim Meyering  <jim@meyering.net>
42756
42757         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
42758         macro is used before the first cycle_check call.
42759
42760 2006-07-03  Eric Blake  <ebb9@byu.net>
42761
42762         * modules/dirname (Depends-on): Add xstrndup.
42763
42764 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42765
42766         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
42767         test cases, so that config.log is a bit easier to follow.
42768
42769 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42770
42771         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
42772         both are 64 bits, since this seems to be the tradition, and this
42773         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
42774         we ever run into a host that prefers long long to long in this
42775         case, we'll need another configure-time test.  Problem reported by
42776         Jim Meyering.
42777
42778 2006-07-02  Eric Blake  <ebb9@byu.net>
42779
42780         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
42781
42782 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
42783
42784         * modules/inttypes (Depends-on): No longer depends on stdint.
42785         * modules/stdint (Description): Say more about assumptions.
42786         Say that the fast types might differ.  Say macros are used.
42787         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
42788         (Makefile.am): Revise list of substituted symbols to match
42789         new stdint.m4.
42790         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
42791         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
42792         * tests/test-stdint.c (verify_same_types)
42793         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
42794         the code conforms to C99/C89.
42795         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
42796         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
42797
42798 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
42799
42800         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
42801         but fix a bug, by requiring at least 64 bits.
42802         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
42803         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
42804         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
42805         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
42806
42807         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
42808         changes.  Make 2.59 a prerequisite.  Check and substitute for
42809         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
42810         inttypes.h.  Do not use special include files; just use the
42811         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
42812         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
42813         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
42814         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
42815         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
42816         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
42817         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
42818         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
42819         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
42820         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
42821         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
42822         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
42823         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
42824         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
42825         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
42826         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
42827         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
42828         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
42829         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
42830         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
42831         WINT_MAX.  Check for C99 conformance more strictly, by detecting
42832         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
42833         not check for things that C99 does not require, e.g., int8_t.  If
42834         a test isn't needed unless <stdint.h> isn't working, and is
42835         unlikely to be needed for any other reason, then don't do it
42836         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
42837         size_t, since we assume C89 freestanding at least.  Do not check
42838         for sig_atomic_t, wchar_t, or wint_t, since the code now does
42839         the right thing even if the types are not defined.  Instead use:
42840         (gl_STDINT_TYPE_PROPERTIES): New macro.
42841         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
42842         testing whether <sys/types.h> clashes, as Autoconf does this for
42843         us now.  All uses removed.
42844         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
42845         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
42846         (gl_CHECK_TYPE_SAME):
42847         Remove; no longer needed.
42848         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
42849         exists, since we'll return 0 anyway in that case.
42850         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
42851
42852 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
42853
42854         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
42855         possible collision with system files.
42856         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
42857         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
42858         WCHAR_MIN and WCHAR_MAX in this case.
42859         (<stddef.h>): Do not include; no longer needed.
42860         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
42861         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
42862         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
42863         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
42864         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
42865         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
42866         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
42867         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
42868         !defined(__c99))]: Include in this case too, since it's harmless
42869         now.
42870         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
42871         dangerous to do so.
42872         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
42873         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
42874         (_STDINT_MIN, _STDINT_MAX): New macros.
42875         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
42876         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
42877         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
42878         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
42879         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
42880         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
42881         macros, not typedefs; this simplifies things quite a bit.
42882         Use long int for all types narrower than int64_t.
42883         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
42884         Define in terms of long long int or int64_t or long int,
42885         not int64_t or int32_t.  This saves some compile-time testing.
42886         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
42887         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
42888         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
42889         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
42890         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
42891         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
42892         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
42893         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
42894         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
42895         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
42896         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
42897         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
42898         undef any previous version and define our own version, for
42899         simplicity and consistency with the new macros for types.
42900         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
42901         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
42902         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
42903         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
42904         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
42905         @WINT_T_SUFFIX@ to keep things simple here.
42906         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
42907         Simplify by assuming typical 8/16/32/64 host, since we're
42908         already doing that elsewhere anyway.
42909         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
42910         and assume long long int is 64 bits if available.  This
42911         speeds up 'configure'.
42912
42913 2006-07-01  Eric Blake  <ebb9@byu.net>
42914
42915         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
42916         Reported by Andreas Buening.
42917
42918 2006-07-01  Eric Blake  <ebb9@byu.net>
42919
42920         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
42921
42922 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
42923
42924         * lib/getaddrinfo.c: fixed typo
42925
42926 2006-06-29  Jim Meyering  <jim@meyering.net>
42927
42928         * modules/strftime (Maintainer): Add my name, since with the
42929         FPRINTFTIME changes strftime.c has forked from glibc.
42930
42931 2006-06-29  Eric Blake  <ebb9@byu.net>
42932
42933         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
42934
42935 2006-06-29  Eric Blake  <ebb9@byu.net>
42936
42937         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
42938
42939 2006-06-29  Eric Blake  <ebb9@byu.net>
42940
42941         * lib/stat_.h: New file.
42942
42943 2006-06-29  Eric Blake  <ebb9@byu.net>
42944
42945         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
42946         unused static function.
42947
42948 2006-06-29  Eric Blake  <ebb9@byu.net>
42949
42950         * doc/functions.texi (Function Portability): Document missing lstat
42951         on mingw.
42952
42953 2006-06-29  Eric Blake  <ebb9@byu.net>
42954
42955         * MODULES.html.sh: Add sys_stat.
42956         * modules/sys_stat: New module.
42957         * modules/mkstemp (Depends-on): Add sys_stat.
42958
42959 2006-06-29  Derek R. Price  <derek@ximbiot.com>
42960
42961         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
42962
42963 2006-06-29  Derek R. Price  <derek@ximbiot.com>
42964
42965         * m4/c-bs-a.m4: Removed.
42966
42967 2006-06-29  Derek R. Price  <derek@ximbiot.com>
42968
42969         * lib/strftime.c: Assume strftime() exists.
42970
42971 2006-06-29  Derek Price  <derek@ximbiot.com>
42972
42973         * modules/c-bs-a: Removed - \a is C89.
42974         * MODULES.html.sh: Remove c-bs-a.
42975
42976 2006-06-29  Bruno Haible  <bruno@clisp.org>
42977
42978         * modules/wcwidth (License): Change to LGPL.
42979
42980 2006-06-28  Simon Josefsson  <jas@extundo.com>
42981
42982         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
42983         on _WIN32.
42984
42985         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
42986         getnameinfo.
42987
42988 2006-06-28  Simon Josefsson  <jas@extundo.com>
42989
42990         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
42991
42992 2006-06-28  Simon Josefsson  <jas@extundo.com>
42993
42994         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
42995         functions there.  It will succeed on Windows XP, but on Windows
42996         2000 and (presumably) earlier, it will fail, and use the internal
42997         re-implementation.
42998         (use_win32_p): New function.
42999         (getaddrinfo): Use strtoul on servname, to support numeric ports.
43000         Support AI_NUMERICSERV to disable getservbyname.
43001         (getnameinfo): New function, only supports
43002         NI_NUMERICHOST|NI_NUMERICSERV for now.
43003
43004         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
43005         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
43006         getnameinfo.
43007
43008 2006-06-28  Eric Blake  <ebb9@byu.net>
43009
43010         * modules/wcwidth: New file.
43011         * modules/mbchar (Depends-on): Add wcwidth.
43012         * modules/mbswidth (Depends-on): Add wcwidth.
43013         * MODULES.html.sh: Add wcwidth.
43014
43015 2006-06-28  Eric Blake  <ebb9@byu.net>
43016
43017         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
43018         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
43019
43020 2006-06-28  Eric Blake  <ebb9@byu.net>
43021
43022         * lib/xvasprintf.h: Fix comments.
43023
43024 2006-06-28  Eric Blake  <ebb9@byu.net>
43025
43026         * lib/mbchar.h (wcwidth): Include wcwidth.h.
43027         * lib/mbswidth.c (wcwidth): Move from here...
43028         * lib/wcwidth.h: ...to this new file.
43029
43030 2006-06-28  Derek R. Price  <derek@ximbiot.com>
43031
43032         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
43033
43034         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
43035         it's obsolete.
43036         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
43037
43038 2006-06-28  Derek R. Price  <derek@ximbiot.com>
43039
43040         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
43041         Autoconf 2.60 says this stuff was obsolete.
43042
43043 2006-06-28  Bruno Haible  <bruno@clisp.org>
43044
43045         * modules/wcwidth (Files): Add m4/wchar_t.m4.
43046
43047 2006-06-28  Bruno Haible  <bruno@clisp.org>
43048
43049         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
43050         gt_TYPE_WCHAR_T.
43051
43052 2006-06-28  Bruno Haible  <bruno@clisp.org>
43053
43054         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
43055         declaration for wcwidth.
43056         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
43057
43058 2006-06-28  Bruno Haible  <bruno@clisp.org>
43059
43060         * lib/mkdtemp.c [MINGW]: Include <io.h>.
43061         (mkdir): Define using _mkdir.
43062
43063 2006-06-28  Bruno Haible  <bruno@clisp.org>
43064
43065         * lib/getaddrinfo.h: Fix POSIX URL.
43066         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
43067         _WIN32.
43068         (use_win32_p): Make static.
43069         (getaddrinfo): Reject service name if it is empty or does not consist
43070         solely of decimal digits, or if its value is > 65535.
43071         (getnameinfo): Remove useless casts.
43072
43073 2006-06-27  Simon Josefsson  <jas@extundo.com>
43074
43075         * modules/sys_select: New file, suggested by Bruno Haible, Paul
43076         Eggert and Martin Lambers.
43077
43078 2006-06-27  Simon Josefsson  <jas@extundo.com>
43079
43080         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
43081         Eggert and Martin Lambers.
43082
43083 2006-06-27  Bruno Haible  <bruno@clisp.org>
43084
43085         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
43086         result to 0, not to empty.
43087         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
43088
43089 2006-06-27  Bruno Haible  <bruno@clisp.org>
43090
43091         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
43092
43093 2006-06-26  Simon Josefsson  <jas@extundo.com>
43094
43095         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
43096         present.
43097
43098 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
43099
43100         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
43101         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
43102         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
43103
43104 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
43105
43106         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
43107
43108 2006-06-26  Bruno Haible  <bruno@clisp.org>
43109
43110         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
43111
43112 2006-06-26  Bruno Haible  <bruno@clisp.org>
43113
43114         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
43115
43116 2006-06-26  Bruno Haible  <bruno@clisp.org>
43117
43118         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
43119         SGI C compiler in pre-C99 mode.
43120         Suggested by Mark D. Baushke and Larry Jones.
43121
43122 2006-06-26  Bruno Haible  <bruno@clisp.org>
43123
43124         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
43125         WCHAR_MAX.
43126         Reported by Mark D. Baushke and Larry Jones.
43127
43128 2006-06-26  Bruno Haible  <bruno@clisp.org>
43129
43130         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
43131         in pre-C99 mode.
43132         Suggested by Mark D. Baushke and Larry Jones.
43133
43134 2006-06-23  Simon Josefsson  <jas@extundo.com>
43135             Bruno Haible  <bruno@clisp.org>
43136
43137         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
43138         Emit mostlyclean-local rule.
43139         (func_emit_tests_Makefile_am): Likewise.
43140         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
43141
43142 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
43143
43144         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
43145
43146 2006-06-23  Bruno Haible  <bruno@clisp.org>
43147
43148         * tests/test-stdint.c: Update to match ISO C 99 Technical
43149         Corrigendum 1.
43150
43151 2006-06-23  Bruno Haible  <bruno@clisp.org>
43152
43153         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
43154
43155 2006-06-23  Bruno Haible  <bruno@clisp.org>
43156
43157         * lib/stdint_.h: Treat IRIX like OpenBSD.
43158
43159 2006-06-23  Bruno Haible  <bruno@clisp.org>
43160
43161         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
43162         ISO C 99 Technical Corrigendum 1.
43163
43164 2006-06-22  Simon Josefsson  <jas@extundo.com>
43165
43166         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
43167         MinGW.
43168
43169 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
43170
43171         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
43172         needed.  Some compiler complained about some of them.  Problem reported
43173         by Larry Jones in
43174         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
43175
43176 2006-06-21  Simon Josefsson  <jas@extundo.com>
43177
43178         * tests/test-getaddrinfo.c: New file.
43179
43180         * modules/getaddrinfo-tests: New file.
43181
43182         * MODULES.html.sh: Add inet_pton.
43183
43184         * modules/inet_pton: New file.
43185
43186 2006-06-21  Simon Josefsson  <jas@extundo.com>
43187
43188         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
43189         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
43190         of using the (limited) gnulib implementation on Windows XP.
43191
43192         * m4/inet_pton.m4: New file.
43193
43194 2006-06-21  Simon Josefsson  <jas@extundo.com>
43195
43196         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
43197         variable.
43198
43199         * lib/socket_.h: Don't define WINVER.
43200
43201         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
43202         slightly modified to work in gnulib.
43203
43204 2006-06-21  Simon Josefsson  <jas@extundo.com>
43205
43206         * doc/gnulib.texi (Windows sockets): Add.
43207
43208 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
43209
43210         * lib/read-file.c (fread_file): Start with buffer allocation of
43211         0 bytes rather than 1 byte; this simplifies the code.
43212         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
43213         code to free buffer and save/restore errno.
43214         (internal_read_file): Remove unused local.
43215
43216 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
43217
43218         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
43219         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
43220         Problem reported by Denis Excoffier in
43221         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
43222
43223 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43224
43225         * modules/sys_socket, modules/socklen: Include sys/types since
43226         FreeBSD 4.x's sys/socket.h needs it.
43227
43228 2006-06-19  Simon Josefsson  <jas@extundo.com>
43229
43230         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
43231
43232 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
43233
43234         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
43235
43236 2006-06-19  Bruno Haible  <bruno@clisp.org>
43237
43238         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
43239         and FULL_PATH_INTTYPES_H in angle brackets.
43240         Reported by Mark D. Baushke <mdb@gnu.org>.
43241
43242 2006-06-17  Eric Blake  <ebb9@byu.net>
43243
43244         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
43245         errno.
43246
43247 2006-06-17  Bruno Haible  <bruno@clisp.org>
43248
43249         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
43250         <sys/inttypes.h>.
43251
43252 2006-06-17  Bruno Haible  <bruno@clisp.org>
43253
43254         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
43255         whether errno is declared. Assume <errno.h> declares errno.
43256
43257 2006-06-17  Bruno Haible  <bruno@clisp.org>
43258
43259         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
43260
43261 2006-06-17  Bruno Haible  <bruno@clisp.org>
43262
43263         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
43264         problem on Solaris 2.5.1.
43265
43266 2006-06-16  Eric Blake  <ebb9@byu.net>
43267
43268         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
43269         * lib/unicodeio.c [!defined errno]: Likewise.
43270         * lib/strtol.c [!defined errno]: Likewise.
43271         * lib/strtod.c [!defined errno]: Likewise.
43272
43273 2006-06-15  Eric Blake  <ebb9@byu.net>
43274
43275         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
43276
43277 2006-06-15  Eric Blake  <ebb9@byu.net>
43278
43279         * config/srclist.txt (ssize_t.m4): Lose sync.
43280
43281 2006-06-15  Bruno Haible  <bruno@clisp.org>
43282
43283         * modules/stdint (Files): Include m4/full-header-path.m4,
43284         m4/size_max.m4, m4/wchar_t.m4.
43285         (Makefile.am): Many more substitutions.
43286         * modules/stdint-tests: New file.
43287         * tests/test-stdint.c: New file.
43288
43289 2006-06-15  Bruno Haible  <bruno@clisp.org>
43290
43291         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
43292         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
43293         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
43294         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
43295         gl_CHECK_TYPE_SAME): New macros.
43296
43297 2006-06-15  Bruno Haible  <bruno@clisp.org>
43298
43299         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
43300
43301 2006-06-15  Bruno Haible  <bruno@clisp.org>
43302
43303         * lib/stdint_.h: Rewritten to be fully auto-configured.
43304         Fixes bug on HP-UX/IA64.
43305
43306 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
43307
43308         * lib/getdate.y (__attribute__): Don't define if already defined.
43309         Problem reported by Larry Jones.
43310         * lib/utimens.c (__attribute__): Likewise.
43311
43312 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
43313
43314         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
43315         reported by Andreas Schwab.
43316
43317 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43318             Bruno Haible  <bruno@clisp.org>
43319
43320         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
43321         check for the declaration of strnlen and a run test that exposes the
43322         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
43323         rpl_strndup.
43324
43325 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43326             Bruno Haible  <bruno@clisp.org>
43327
43328         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
43329
43330 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43331
43332         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
43333         compile test, for Tru64 4.0D.
43334
43335 2006-05-28  Karl Berry  <karl@gnu.org>
43336
43337         * config/srclist.txt (printf-args.c): lose sync.
43338
43339 2006-05-26  Martin Lambers  <marlam@marlam.de>
43340
43341         * lib/getpass.c: Updates the test for the native W32 API, and adds
43342         missing includes, thus fixing compilation warnings.
43343
43344 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43345
43346         * lib/exclude.c (exclude_fnmatch): New function.
43347         (excluded_file_name): Call exclude_fnmatch.
43348         * lib/exclude.h (excluded_file_name): New prototype
43349
43350 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
43351
43352         * lib/tempname.c (small_open, large_open): New macros.
43353         (__open, __open64) [!_LIBC]: Remove.
43354         (__gen_tempname): Use small_open and large_open instead of __open
43355         and __open64.  This fixes a portability bug on HP-UX 11.11i
43356         reported by Simon Wing-Tang in
43357         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
43358
43359 2006-05-24  Bruno Haible  <bruno@clisp.org>
43360
43361         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
43362         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
43363         Reported by Thorsten Maerz <torte@netztorte.de> via
43364         Aaron Stone <aaron@serendipity.cx>.
43365
43366 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
43367
43368         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
43369         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
43370         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
43371         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
43372         not really conditional on the cache.
43373         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
43374
43375 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
43376
43377         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
43378         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
43379         (my_usleep): Don't mishandle maximum value.
43380
43381 2006-05-19  Jim Meyering  <jim@meyering.net>
43382
43383         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
43384
43385 2006-05-17  Bruno Haible  <bruno@clisp.org>
43386
43387         Cygwin portability.
43388         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
43389
43390 2006-05-17  Bruno Haible  <bruno@clisp.org>
43391
43392         * lib/stdint_.h: Fix recognition of Cygwin.
43393
43394 2006-05-15  Bruno Haible  <bruno@clisp.org>
43395
43396         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
43397         on libtool patch by Ralf Wildenhues.
43398
43399 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
43400
43401         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
43402         test for C99 conformance; (bool) 0.5 is an integer constant
43403         expression, but (bool) -0.5 is not.  Problem reported by Fedor
43404         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
43405
43406 2006-05-11  Simon Josefsson  <jas@extundo.com>
43407
43408         * m4/xvasprintf.m4: Fix obvious typo.
43409
43410 2006-05-11  Jim Meyering  <jim@meyering.net>
43411
43412         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
43413         James Lemley.
43414
43415 2006-05-10  Simon Josefsson  <jas@extundo.com>
43416
43417         * lib/md4.c: Typo fix, update copyright years.
43418         (K1, K2): Don't use L because it turn computations into 64-bit on
43419         64-bit platforms.
43420
43421 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
43422
43423         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
43424         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
43425         unwanted sign propagation, e.g., on hosts with 64-bit int.
43426         There still are some problems with reeelly weird theoretical hosts
43427         (e.g., 33-bit int) but it's not worth worrying about now.
43428         * lib/sha1.c (rol): Likewise.
43429         (K1, K2, K3, K4): Remove unnecessary L suffix.
43430
43431 2006-05-10  Bruno Haible  <bruno@clisp.org>
43432
43433         * lib/des.c: Cast to avoid warnings.
43434
43435 2006-05-09  Bruno Haible  <bruno@clisp.org>
43436
43437         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
43438         (Depends-on): Depend also on xsize, stdarg.
43439         (configure.ac): Add gl_XVASPRINTF.
43440
43441 2006-05-09  Bruno Haible  <bruno@clisp.org>
43442
43443         * m4/xvasprintf.m4: New file.
43444
43445 2006-05-09  Bruno Haible  <bruno@clisp.org>
43446
43447         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
43448         (EOVERFLOW): Define fallback value.
43449         (xstrcat): New function.
43450         (xvasprintf): Recognize the special case of a string concatenation.
43451
43452 2006-05-08  Eric Blake  <ebb9@byu.net>
43453
43454         * gnulib-tool (func_version): Base copyright year on CVS date.
43455         (func_emit_copyright_notice): New function.
43456         (func_emit_lib_Makefile_am): Use it.
43457         (func_emit_tests_Makefile_am): Likewise.
43458         (func_import): Likewise.
43459
43460 2006-05-08  Bruno Haible  <bruno@clisp.org>
43461
43462         * modules/stdarg: New file.
43463         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
43464
43465 2006-05-08  Bruno Haible  <bruno@clisp.org>
43466
43467         * m4/stdarg.m4: New file, from GNU gettext.
43468
43469 2006-05-08  Bruno Haible  <bruno@clisp.org>
43470
43471         * config/srclist.txt (build-aux/config.rpath): different from latest
43472         release.
43473
43474 2006-05-08  Bruno Haible  <bruno@clisp.org>
43475
43476         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
43477
43478 2006-05-05  Jim Meyering  <jim@meyering.net>
43479
43480         * m4/warning.m4: New file, derived from bison's file by the same name.
43481
43482 2006-05-03  Bruno Haible  <bruno@clisp.org>
43483
43484         * lib/stdint_.h: Shorter URL.
43485         * lib/inttypes.h: Likewise.
43486
43487 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43488
43489         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
43490
43491 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43492
43493         * lib/verify.h: Document the internals better.  Most of this change
43494         was written by Bruno Haible.
43495
43496 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43497
43498         * doc/verify.texi: New file, partly based on a proposal by
43499         Bruno Haible.
43500
43501 2006-05-02  Bruno Haible  <bruno@clisp.org>
43502
43503         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
43504         test from here...
43505         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
43506
43507 2006-04-29  Bruno Haible  <bruno@clisp.org>
43508
43509         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
43510         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
43511
43512 2006-04-29  Bruno Haible  <bruno@clisp.org>
43513
43514         * gnulib-tool: Make --update option actually work.
43515
43516 2006-04-29  Bruno Haible  <bruno@clisp.org>
43517
43518         * doc/gcd.texi: New file.
43519         * doc/gnulib.texi: Include it.
43520
43521 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
43522
43523         * lib/getdate.y (get_date): When adding relative date, start with the
43524         initial time, not with the result of the first mktime call.
43525
43526 2006-04-25  Bruno Haible  <bruno@clisp.org>
43527
43528         * gnulib-tool (func_import): Output the include directives in three
43529         blocks, sorted separately.
43530         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43531
43532 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
43533
43534         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
43535         to define main with arguments, for C++.  Reported by Eric Blake.
43536         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
43537         Prefer 'int main ()' to 'int main (void)', for C++.
43538         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
43539         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
43540         for 'main', for C99 and C++.
43541
43542 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
43543
43544         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
43545         Don't assume that exit status -1 is valid.
43546         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43547         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43548         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
43549         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
43550         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
43551         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
43552         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
43553         functions can be used without declaring them, or that you can
43554         exit with status -1.
43555         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
43556
43557 2006-04-24  Karl Berry  <karl@gnu.org>
43558
43559         * config/srclist.txt (longdouble.m4): sync lost.
43560
43561 2006-04-24  Eric Blake  <ebb9@byu.net>
43562
43563         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
43564
43565 2006-04-24  Bruno Haible  <bruno@clisp.org>
43566
43567         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
43568         poll() implementation in AIX.
43569         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43570
43571 2006-04-24  Bruno Haible  <bruno@clisp.org>
43572
43573         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
43574         assigned exactly once.
43575
43576 2006-04-23  Claudio Fontana  <claudio@gnu.org>
43577             Bruno Haible  <bruno@clisp.org>
43578
43579         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
43580         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
43581         for AM_CPPFLAGS.
43582
43583 2006-04-23  Bruno Haible  <bruno@clisp.org>
43584
43585         * modules/copy-file: Depend on unistd.
43586         * modules/execute: Likewise.
43587         * modules/fatal-signal: Likewise.
43588         * modules/findprog: Likewise.
43589         * modules/mkdtemp : Likewise.
43590         * modules/pipe: Likewise.
43591         * modules/wait-process: Likewise.
43592
43593 2006-04-23  Bruno Haible  <bruno@clisp.org>
43594
43595         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
43596         condition was already detected.
43597         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43598
43599 2006-04-23  Bruno Haible  <bruno@clisp.org>
43600
43601         * lib/copy-file.c: Include <unistd.h> unconditionally.
43602         * lib/execute.c: Likewise.
43603         * lib/fatal-signal.c: Likewise.
43604         * lib/findprog.c: Likewise.
43605         * lib/mkdtemp.c: Likewise.
43606         * lib/pipe.h: Likewise.
43607         * lib/pipe.c: Likewise.
43608         * lib/wait-process.h: Likewise.
43609
43610 2006-04-23  Bruno Haible  <bruno@clisp.org>
43611
43612         * gnulib-tool (func_usage): Fix --import description. Document
43613         --update.
43614         (func_import): Create temporary file in a temporary directory, if
43615         --dry-run is specified. Silence errors from 'grep' when there are no
43616         m4 files in $m4dir.
43617         (func_create_testdir): Silence errors from 'grep' when there are no
43618         m4 files in $m4dir.
43619         Reported by Karl Berry <karl@freefriends.org>.
43620
43621 2006-04-20  Bruno Haible  <bruno@clisp.org>
43622
43623         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
43624         one argument, so that the code will be portable to Autoconf 2.60.
43625         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
43626         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
43627         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
43628
43629 2006-04-19  Derek Price  <derek@ximbiot.com>
43630             Eric Blake  <ebb9@byu.net>
43631
43632         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
43633         rather than "/full/path.h".  Update comment to match.  Shorten &
43634         generalize m4_translit call via AS_TR_CPP.
43635
43636 2006-04-19  Derek Price  <derek@ximbiot.com>
43637             Eric Blake  <ebb9@byu.net>
43638
43639         * lib/inttypes.h: Correct grammar in comment.
43640
43641 2006-04-18  Derek Price  <derek@ximbiot.com>
43642             Paul Eggert  <eggert@cs.ucla.edu>
43643
43644         * modules/inttypes: New file.
43645         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
43646
43647 2006-04-18  Derek Price  <derek@ximbiot.com>
43648             Paul Eggert  <eggert@cs.ucla.edu>
43649
43650         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
43651         New files.
43652
43653 2006-04-18  Derek Price  <derek@ximbiot.com>
43654             Paul Eggert  <eggert@cs.ucla.edu>
43655
43656         * lib/inttypes.h: New file.
43657         * lib/strtoimax.c: Assume <inttypes.h>.
43658
43659 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
43660
43661         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
43662         isn't mounted.  Problem reported by Kir Kolyshkin.
43663
43664 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
43665
43666         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
43667         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
43668         Derek R. Price.
43669         * lib/regex.h (RE_DUP_MAX): Update comment to match current
43670         implementation.
43671
43672 2006-04-12  Eric Blake  <ebb9@byu.net>
43673
43674         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
43675         is now done automatically by the corresponding Autoconf macro.
43676
43677 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
43678
43679         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
43680         time_r.h.
43681
43682 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43683
43684         Merge regex changes from libc, removing some of our
43685         POSIX-conformance changes that were rejected and redoing them in a
43686         less-intrusive way.
43687
43688         * lib/regcomp.c (re_compile_internal, init_dfa):
43689         Length arg is now size_t, not Idx.  All uses changed.
43690         (peek_token): Forward decl now says internal_function.
43691         (__re_error_msgid, __re_error_msgid_idx):
43692         Now static rather than extern with attribute_hidden.
43693         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
43694         For some reason libc prefers K&R style defns for external functions.
43695         (regerror) [!defined _LIBC]: Likewise.
43696         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
43697         (seek_collating_symbol_entry, lookup_collation_sequence_value):
43698         (build_range_exp, build_collating_symbol):
43699         Use K&R-style defn.
43700         (re_compile_fastmap): Use '\0' to memset, not 0.
43701         (utf8_sb_map): Make the calculations more obvious.
43702         (init_dfa, parse_bracket_exp, build_charclass_op):
43703         Call calloc and cast result, as glibc does.
43704         (init_word_char, fetch_token, peek_token, peek_token_bracket):
43705         (build_range_exp, build_collating_symbol):
43706         Now internal functions.
43707
43708         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
43709
43710         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
43711         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
43712         Don't depend on VMS; depend on __VMS instead, for POSIX
43713         namespace cleanness.
43714         (regoff_t): Define to ssize_t, not long int.
43715
43716         Remove the REG_ macros named below.  Instead, make the old names
43717         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
43718         __USE_GNU_REGEX.
43719         (REG_BACKSLASH_ESCAPE_IN_LISTS):
43720         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
43721         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
43722         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
43723         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
43724         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
43725         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
43726         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
43727         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
43728         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
43729         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
43730         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
43731         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
43732         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
43733         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
43734         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
43735         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
43736         (REG_NREGS):
43737         Remove.  All uses replaced by the old RE_* names.
43738         (RE_BACKSLASH_ESCAPE_IN_LISTS):
43739         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
43740         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
43741         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
43742         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
43743         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
43744         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
43745         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
43746         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
43747         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
43748         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
43749         Don't bother having these macros be independent of each others'
43750         values, since they no longer exist in the POSIX name space.
43751
43752         Rename the following member names back to their old names,
43753         unless !__USE_GNU_REGEX.  All uses changed back.
43754         (buffer): Renamed from re_buffer.
43755         (allocated): Renamed from re_allocated.
43756         (used): Renamed from re_used.
43757         (syntax): Renamed from re_syntax.
43758         (fastmap): Renamed from re_fastmap.
43759         (translate): Renamed from re_translate.
43760         (can_be_null): Renamed from re_can_be_null.
43761         (regs_allocated): Renamed from re_regs_allocated.
43762         (fastmap_accurate): Renamed from re_fastmap_accurate.
43763         (no_sub): Renamed from re_no_sub.
43764         (not_bol): Renamed from re_not_bol.
43765         (not_eol): Renamed from re_not_eol.
43766         (newline_anchor): Renamed from re_newline_anchor.
43767         (num_regs): Renamed from rm_num_regs.
43768         (start): Renamed from rm_start.
43769         (end): Renamed from rm_end.
43770
43771         (free_state): Move up a bit.
43772
43773         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
43774         #define to be empty.
43775         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
43776         when that is what is intended.
43777         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
43778         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
43779         (MAX): New macro.
43780         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
43781         All uses changed back to re_malloc, etc.  It's now the caller's
43782         responsibility to check for overflow; all callers changed.
43783         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
43784         (re_x2nrealloc): Remove.
43785         (free_state): Remove decl.
43786
43787         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
43788         (re_set_registers, re_exec):
43789         Use K&R-style defn.
43790
43791         2006-01-31  Roland McGrath  <roland@redhat.com>
43792
43793         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
43794         Reported by Mike Frysinger <vapier@gentoo.org>.
43795
43796         2006-01-15  Andreas Jaeger  <aj@suse.de>
43797
43798         [BZ #1950]
43799         * lib/regex_internal.c (re_string_reconstruct): Adjust for
43800         build_wcs_upper_buffer change.
43801         (build_wcs_upper_buffer): Change return type.
43802
43803         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
43804
43805         * lib/regex_internal.h: Include <stdint.h> if available.
43806
43807         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
43808
43809         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
43810
43811         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
43812
43813         * lib/regcomp.c: Adjust for changed secondary hash function.
43814
43815         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
43816
43817         * lib/regex.h: Pretty printing.
43818         Clean up namespace a bit.
43819
43820         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
43821
43822         * lib/regexec.c (update_cur_sifted_state, check_arrival,
43823         check_arrival_add_next_nodes): Avoid using uninitialized variable.
43824
43825         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
43826                     Ulrich Drepper  <drepper@redhat.com>
43827
43828         [BZ #1302]
43829         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
43830         changed.
43831         (bitset_word_t): Renamed from bitset_word.  All uses changed.
43832
43833         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
43834
43835         [BZ #281]
43836         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
43837         * lib/regcomp.c: Remove unnecessary uses of
43838         unsigned RE_TRANSLATE_TYPE.
43839         * lib/regex_internal.h: Likewise.
43840         * lib/regex_internal.c: Likewise.
43841         * lib/regexec.c: Likewise.
43842         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
43843
43844         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
43845
43846         * lib/regexec.c (find_recover_state): Remove unnecessary
43847         initialization.
43848         (transit_state_bkref): Make DFA a const pointer.
43849         (get_subexp): Likewise.
43850         (check_arrival): Likewise.
43851         (update_cur_sifted_state): Likewise.
43852         (re_search_internal): Likewise.
43853         (prune_impossible_nodes): Likewise.
43854         (acquire_init_state_context): Likewise.
43855         (proceed_next_node): Likewise.
43856         (set_regs): Likewise.
43857         (free_fail_stack_return): Likewise.
43858         (check_arrival_expand_ecl): Mark DFA parameter as const.
43859         (check_arrival_expand_ecl_sub): Likewise.
43860         (check_subexp_limits): Likewise.
43861         (sub_epsilon_src_nodes):  Likewise.
43862         (add_epsilon_src_nodes):  Likewise.
43863         (merge_state_array): Likewise.
43864         (update_regs): Likewise.
43865         (build_trtable): Likewise.
43866         (sift_states_backward): Mark MCTX parameter as const.
43867         (build_sifted_states): Likewise.
43868         (update_cur_sifted_state): Likewise.
43869         (sift_states_mkref): Likewise.
43870         (check_arrival_expand_ecl): Mark eclosure as const.
43871         (check_dst_limits_calc_pos_1): Likewise.
43872         * lib/regex_internal.h (re_match_context_t): Make dfa a const
43873         pointer.
43874
43875         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
43876
43877         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
43878         (transit_state_sb): Likewise.
43879         (transit_state_mb): Likewise.
43880         (sift_states_iter_mb): Likewise.
43881         (check_arrival_add_next_nodes): Likewise.
43882         (check_node_accept_bytes): Change first parameter to pointer-to-const.
43883         [_LIBC] (re_search_2_stub): Use mempcpy.
43884
43885         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
43886         mbrtowc for very simple UTF-8 case.
43887
43888         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
43889         a pointer-to-const.
43890         (re_acquire_state_context): Likewise.
43891         * lib/regex_internal.h: Adjust prototypes.
43892
43893         * lib/regex.c: Prevent using C++ compilers.
43894
43895         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
43896         (re_acquire_state_context): Likewise.
43897
43898 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43899
43900         * modules/regex (Depends-on): Add ssize_t.
43901
43902 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43903
43904         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
43905         translation table.
43906
43907 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43908
43909         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
43910
43911 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
43912             Bruno Haible  <bruno@clisp.org>
43913
43914         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
43915         <sys/types.h> and <inttypes.h>.
43916
43917 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43918
43919         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
43920         `__error_t_defined', so argp.h will not typedef the former.
43921
43922 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
43923
43924         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
43925         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
43926         glibc names.  Even if glibc is changed to conform to POSIX, the
43927         traditional names will be available anyway, since regex depends on
43928         the extensions module.  Also, fix a longstanding typo in the
43929         implementation of Spencer ERE test #75 from grep 2.3.  Problems
43930         reported by Emanuele Giaquinta.  Also, change sense of cached
43931         variable, so that the message makes sense.
43932
43933 2006-03-24  Simon Josefsson  <jas@extundo.com>
43934
43935         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
43936         including some doc fixes.
43937         (base64_encode_alloc): Fix +1 bug on allocation failures.
43938
43939 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43940
43941         * lib/base64.c (base64_encode): Do not read past end of array with
43942         unsanitized input on systems with CHAR_BIT > 8.
43943
43944 2006-03-24  Eric Blake  <ebb9@byu.net>
43945
43946         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
43947
43948 2006-03-22  Karl Berry  <karl@gnu.org>
43949
43950         * config/srclist.txt (*setenv.[ch]): get from coreutils.
43951         * config/srclistvars.sh (COREUTILS): new var.
43952
43953 2006-03-17  Jim Meyering  <jim@meyering.net>
43954
43955         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
43956         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
43957
43958 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
43959
43960         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
43961         no longer needs it.  Instead, check that regoff_t is as least
43962         as wide as ptrdiff_t.
43963
43964         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
43965         so that our regex.h stays compatible with the installed regex.
43966         This is helpful for installers who configure --without-included-regex.
43967         Problem reported by Emanuele Giaquinta.
43968
43969 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
43970
43971         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
43972         Typedef to long int, not to off_, as POSIX will likely change
43973         in that direction.
43974
43975 2006-03-15  Eric Blake  <ebb9@byu.net>
43976
43977         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
43978
43979 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
43980
43981         * lib/argp-help.c (validate_uparams): Fix typo
43982         * lib/argp-parse.c (argp_default_options): Consistently begin help
43983         messages with a lowercase letter.
43984
43985 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
43986
43987         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
43988         overrun buffers and shouldn't be used (much as gets shouldn't be
43989         used).
43990         * lib/time_r.c (asctime_r, ctime_r): Likewise.
43991
43992 2006-03-08  Simon Josefsson  <jas@extundo.com>
43993
43994         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
43995         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43996
43997 2006-03-08  Simon Josefsson  <jas@extundo.com>
43998
43999         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
44000         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44001
44002 2006-03-08  Simon Josefsson  <jas@extundo.com>
44003
44004         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
44005         signal that configure disabled the device.
44006
44007 2006-03-08  Simon Josefsson  <jas@extundo.com>
44008
44009         * build-aux/maint.mk: Fix refresh-po, to handle no translated
44010         languages.
44011
44012 2006-03-07  Simon Josefsson  <jas@extundo.com>
44013
44014         * modules/getopt (Depends-on): Add unistd.
44015
44016         * modules/unistd: New file.
44017
44018 2006-03-07  Simon Josefsson  <jas@extundo.com>
44019
44020         * modules/gc-random: New file.
44021
44022 2006-03-07  Simon Josefsson  <jas@extundo.com>
44023
44024         * m4/unistd_h.m4: New file.
44025
44026 2006-03-07  Simon Josefsson  <jas@extundo.com>
44027
44028         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
44029         test to be side-effect free by storing the result in the cache
44030         variable gl_cv_lib_readline, and moving the assignment of
44031         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
44032         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44033
44034 2006-03-07  Simon Josefsson  <jas@extundo.com>
44035
44036         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
44037         error on missing devices (the functions will return an error).
44038
44039         * m4/gc.m4: Move random stuff to gc-random.m4
44040
44041 2006-03-07  Simon Josefsson  <jas@extundo.com>
44042
44043         * lib/unistd_.h: New file.
44044
44045 2006-03-07  Simon Josefsson  <jas@extundo.com>
44046
44047         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
44048
44049 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
44050
44051         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
44052         Problem reported by Juan Manuel Guerrero.
44053
44054 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
44055
44056         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
44057         the unistd module.
44058         * lib/getlogin_r.c: Likewise.
44059         * lib/getlogin_r.h: Likewise.
44060         * lib/glob.c: Likewise.
44061         * lib/pagealign_alloc.c: Likewise.
44062         * lib/unistd_.h: Remove; no longer needed.
44063
44064 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
44065
44066         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44067         Add unistd.
44068         * modules/c-stack (Depends-on): Add unistd.
44069         * modules/getlogin_r: Likewise.
44070         * modules/glob: Likewise.
44071         * modules/pagealign_alloc: Likewise.
44072         * modules/unistd (Files): Remove lib/unistd_.h.
44073         (EXTRA_DIST): Remove.
44074         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
44075         need unistd_.h.
44076         (MOSTLYCLEANFILES): Remove unistd.h-t.
44077
44078 2006-03-03  Simon Josefsson  <jas@extundo.com>
44079
44080         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
44081
44082 2006-03-03  Simon Josefsson  <jas@extundo.com>
44083
44084         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
44085         libidn and bison.
44086
44087 2006-03-03  Simon Josefsson  <jas@extundo.com>
44088
44089         * build-aux/maint.mk: Add indent target.
44090
44091 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
44092
44093         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
44094         our replacement poll.h in any case, to avoid a differing
44095         declaration from a system header.  Seen on AIX.
44096
44097 2006-03-01  Simon Josefsson  <jas@extundo.com>
44098
44099         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
44100         <kasal@ucw.cz>.
44101
44102 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44103
44104         * modules/gettime (Depends-on): Add extensions module.
44105         * modules/nanosleep (Depends-on): Likewise.
44106         * modules/settime (Depends-on): Likewise.
44107
44108 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44109
44110         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
44111         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
44112         pedantically.
44113         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44114         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
44115
44116         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
44117         not "==".  Reported by Ralf Wildenhues.
44118
44119 2006-03-01  Karl Berry  <karl@gnu.org>
44120
44121         * doc/Copyright/request-*: new files, synced from gnuorg.
44122
44123 2006-03-01  Karl Berry  <karl@gnu.org>
44124
44125         * config/srclist.txt (Copyright/*): new entries.
44126
44127 2006-02-28  Simon Josefsson  <jas@extundo.com>
44128
44129         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
44130
44131 2006-02-27  Simon Josefsson  <jas@extundo.com>
44132
44133         * lib/base64.h: Indent #define's.  From Jim Meyering
44134         <jim@meyering.net>.
44135
44136 2006-02-27  Jim Meyering  <jim@meyering.net>
44137
44138         Revert the change of 2006-02-24, so these files can continue
44139         to be sync'd from gettext.
44140         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
44141         of `config.h'.
44142
44143 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
44144
44145         * modules/intprops: New file.
44146         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
44147         Add intprops.
44148         * modules/getloadavg (Files): Remove lib/intprops.h.
44149         (Depends-on): Add intprops.
44150         * modules/human: Likewise.
44151         * modules/inttostr: Likewise.
44152         * modules/openat: Likewise.
44153         * modules/sig2str: Likewise.
44154         * modules/userspec: Likewise.
44155         * modules/utimecmp: Likewise.
44156         * modules/xnanosleep: Likewise.
44157         * modules/xstrtol: Likewise.
44158
44159 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
44160
44161         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
44162         * modules/lock-tests (TESTS): Use $(EXEEXT).
44163         * modules/tls-tests: Likewise.
44164         * modules/argp-tests: Likewise.
44165         (check_PROGRAMS): New var, replacing...
44166         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
44167
44168 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44169
44170         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
44171         `config.h'.
44172
44173 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
44174
44175         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
44176
44177 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44178
44179         Sync from coreutils.
44180         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
44181         gl_CHDIR_SAFER.
44182
44183 2006-02-22  Jim Meyering  <jim@meyering.net>
44184
44185         Sync from coreutils.
44186         * m4/chdir-safer.m4: New file.
44187
44188 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
44189
44190         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
44191         AT_FDCWD exceeds INT_MAX.
44192         * lib/openat.h (AT_FDCWD): Likewise.
44193
44194 2006-02-17  Eric Blake  <address@hidden>
44195
44196         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
44197
44198 2006-02-16  Simon Josefsson  <jas@extundo.com>
44199
44200         * modules/getaddrinfo (Depends-on): Add sys_socket.
44201
44202 2006-02-15  Simon Josefsson  <jas@extundo.com>
44203
44204         * build-aux/maint.mk: Add dsyntax-check rule.
44205
44206 2006-02-15  Eric Blake  <ebb9@byu.net>
44207
44208         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
44209         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
44210         'present but cannot compile' warnings on cygwin.
44211         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
44212         use ws2tcpip.h if sys/socket.h works.
44213         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
44214         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
44215
44216 2006-02-14  Simon Josefsson  <jas@extundo.com>
44217
44218         * modules/maintainer-makefile (Files): Rename.
44219
44220         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
44221         and (the local) Makefile.cfg to maint-cfg.mk.
44222
44223         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
44224         to the latter.
44225
44226         * modules/maintainer-makefile: New module.
44227
44228         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
44229         severaly stripped to make it possible to build it up from scratch
44230         with reliable tests.
44231
44232         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
44233         fixes to permit overriding the default actions when configure and
44234         makefile are not available.
44235
44236 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
44237
44238         Sync from coreutils.
44239         * modules/lstat (Depends-on): Don't depend on xalloc.
44240         (License): Change from GPL to LGPL, since this is now simply a
44241         replacement for a libc function.
44242
44243 2006-02-14  Jim Meyering  <jim@meyering.net>
44244
44245         Sync from coreutils.
44246
44247         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
44248         failure on deficient systems, and simplify gnulib lgpl dependencies.
44249         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
44250         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
44251
44252         * lib/xalloc-die.c: Remove unused definition of N_.
44253
44254 2006-02-14  Jim Meyering  <jim@meyering.net>
44255
44256         Sync from coreutils.
44257         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
44258         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
44259         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
44260         double-quote uses of that variable, to accommodate the rare case in
44261         which getmntent is available in none of the libraries checked.  This
44262         happens at least on FreeBSD 5.0.
44263
44264 2006-02-13  Simon Josefsson  <jas@extundo.com>
44265
44266         * gnulib-tool (Usage): Fix --import, from
44267         karl@freefriends.org (Karl Berry).
44268
44269 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
44270
44271         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
44272
44273 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
44274
44275         * lib/argp-namefrob.h: Restore changes accidentally lost during the
44276         "autoupdate" on 2005-12-12.
44277
44278 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
44279
44280         * modules/closeout (Depends-on): Remove atexit.
44281
44282 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
44283
44284         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
44285         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
44286
44287 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
44288
44289         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
44290         __EXTENSIONS__ if this causes compilation to fail.  Problem
44291         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
44292         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
44293
44294 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
44295
44296         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
44297         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
44298         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
44299         All uses changed.
44300
44301 2006-01-26  Simon Josefsson  <jas@extundo.com>
44302
44303         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
44304         prototype is visible on mingw32.
44305
44306         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
44307         for mingw32.
44308
44309         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
44310         mingw32).
44311
44312 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
44313
44314         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
44315         attempt to open for write; this always fails, at least on POSIX
44316         hosts.  This reinstates the 2006-01-09 change, which was
44317         inadvertently removed.
44318
44319 2006-01-26  Bruno Haible  <bruno@clisp.org>
44320
44321         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
44322         Reported by Paul Eggert.
44323
44324 2006-01-26  Bruno Haible  <bruno@clisp.org>
44325             Paul Eggert  <eggert@cs.ucla.edu>
44326
44327         * lib/stdbool_.h (_Bool)
44328         [(! (defined __cplusplus || defined __BEOS__)
44329           && !defined __GNUC__
44330           && !(defined __HP_cc || defined __xlc__
44331                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
44332                || defined __sgi))]:
44333         #define to signed char in these cases too; this simplifies
44334         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
44335         etc., separately) and makes it more conservative.
44336
44337 2006-01-25  Simon Josefsson  <jas@extundo.com>
44338
44339         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
44340         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
44341         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
44342
44343 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44344
44345         * lib/argp-namefrob.h: Bugfix. Remove stray #
44346
44347 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44348
44349         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
44350         so that we test the test.
44351         Check for yet another HP-UX cc bug involving *bool |= bool.
44352
44353 2006-01-25  Karl Berry  <karl@gnu.org>
44354
44355         * config/srclist.txt (vasnprintf.c): sync lost.
44356
44357 2006-01-25  Jim Meyering  <jim@meyering.net>
44358
44359         Sync from the stable (b5) branch of coreutils:
44360
44361         * lib/fts.c (fts_children): Don't let close() clobber errno from
44362         failed fchdir().
44363
44364         * lib/fts.c (fts_stat): When following a symlink-to-directory,
44365         don't necessarily interpret stat-fails+lstat-succeeds as indicating
44366         a dangling symlink.  That can also happen at least for ELOOP.
44367         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
44368         FYI, this bug predates the inclusion of fts.c in coreutils.
44369
44370         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
44371         in their own block, so pre-c99 compilers don't object.
44372
44373         Avoid the double-free (first in fts_read, second in fts_close) that
44374         would occur when an `active' directory is made inaccessible (e.g.,
44375         via chmod a-x) during a traversal.
44376         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
44377         before returning.  Reproduce this failure by
44378         mkdir -p a/b; cd a; chmod a-x . b
44379         Reported by Stavros Passas.
44380
44381 2006-01-25  Jim Meyering  <jim@meyering.net>
44382
44383         * lib/fileblocks.c: Remove more useless parentheses.
44384         * lib/readutmp.h: Likewise.
44385
44386 2006-01-25  Bruno Haible  <bruno@clisp.org>
44387
44388         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
44389         warnings.
44390         Reported by Paul Eggert.
44391
44392 2006-01-25  Bruno Haible  <bruno@clisp.org>
44393
44394         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
44395         rid of a trap command. For Solaris sh.
44396         Reported by Mark D. Baushke <mdb@gnu.org>.
44397
44398 2006-01-24  Simon Josefsson  <jas@extundo.com>
44399
44400         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
44401         Bruno.
44402
44403 2006-01-24  Karl Berry  <karl@gnu.org>
44404
44405         * config/srclist.txt (argp-namefrob.h): sync lost.
44406
44407 2006-01-24  Jim Meyering  <jim@meyering.net>
44408
44409         * modules/openat (Files): Add lib/intprops.h.
44410         From Mark D. Baushke.
44411
44412 2006-01-24  Jim Meyering  <jim@meyering.net>
44413
44414         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
44415         Reported by Mark D. Baushke.
44416
44417 2006-01-24  Jim Meyering  <jim@meyering.net>
44418
44419         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
44420
44421 2006-01-24  Bruno Haible  <bruno@clisp.org>
44422
44423         * modules/strnlen (Maintainer): Change from glibc to all.
44424
44425 2006-01-24  Bruno Haible  <bruno@clisp.org>
44426
44427         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
44428         Patch by Paul Eggert.
44429
44430 2006-01-24  Bruno Haible  <bruno@clisp.org>
44431
44432         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
44433         already has it.
44434         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
44435         2005-11-26.
44436
44437         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
44438         'signed char' to avoid problems with the built-in _Bool type.
44439         Reported by Paul Eggert on 2005-11-26.
44440
44441 2006-01-24  Bruno Haible  <bruno@clisp.org>
44442
44443         * gnulib-tool (func_import): Avoid constructing complicated sed
44444         expressions inside backquote.
44445         Report and solution by Mark D. Baushke <mdb@gnu.org>.
44446
44447 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
44448
44449         These changes imported from libc.
44450         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
44451         test and two separate function calls.
44452         * lib/strndup.c (__strndup): Add libc_hidden_def.
44453
44454 2006-01-23  Simon Josefsson  <jas@extundo.com>
44455
44456         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
44457         Remove the test_*_SOURCES variable: automake infers it by default.
44458         * modules/tls-tests: Likewise.
44459
44460 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44461
44462         Work around porting bugs reported by Dieter in
44463         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
44464         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
44465         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
44466         Include "getopt.h" first, to check interface.
44467         (getenv): Declare only if defined HAVE_DECL_GETENV &&
44468         !HAVE_DECL_GETENV.
44469         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
44470         (__strndup): Revert to K&R-style function dfns, the glibc style.
44471         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
44472         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
44473         Include strnlen.h first, to get prototype properly.
44474         (strnlen): Renamed from __strnlen.
44475         Remove weak alias.
44476
44477 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44478
44479         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
44480
44481 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44482
44483         * config/srclist.txt: Adjust to reflect glibc reorganization.
44484         This affects only comments.
44485
44486 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
44487
44488          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
44489          Reported by Bruce Korb <bkorb@gnu.org>.
44490
44491 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
44492
44493         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
44494         to pacify gcc -Wswitch-default.
44495
44496 2006-01-22  Bruno Haible  <bruno@clisp.org>
44497
44498         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
44499         temporary buffer for sprintf, take into account the precision also
44500         for 'd', 'i', 'u', 'o', 'x', 'X'.
44501
44502 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
44503
44504         * modules/argp-tests: New module
44505         * tests/test-argp.c: New file
44506         * tests/test-argp-2.sh: New file
44507
44508 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
44509
44510         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
44511         (__argp_base_name): Removed
44512         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
44513         typo.
44514         (__argp_base_name): Provide macro definition or extern declaration
44515         depending on the configuration
44516
44517 2006-01-20  Simon Josefsson  <jas@extundo.com>
44518
44519         * modules/inet_ntop (Depends-on): Depend on sys_socket.
44520
44521 2006-01-20  Simon Josefsson  <jas@extundo.com>
44522
44523         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
44524
44525 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
44526
44527         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
44528         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
44529         Suggested by Bruno Haible.
44530
44531 2006-01-20  Karl Berry  <karl@gnu.org>
44532
44533         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
44534         until changes propagate, I guess.
44535
44536 2006-01-19  Simon Josefsson  <jas@extundo.com>
44537
44538         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
44539
44540 2006-01-19  Simon Josefsson  <jas@extundo.com>
44541
44542         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
44543
44544 2006-01-19  Simon Josefsson  <jas@extundo.com>
44545
44546         * gnulib-tool: Set check_PROGRAMS.
44547
44548         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
44549         modules/des-tests, modules/gc-arcfour-tests,
44550         modules/gc-arctwo-tests, modules/gc-des-tests,
44551         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
44552         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
44553         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
44554         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
44555         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
44556         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
44557         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
44558         test_*_SOURCES.
44559
44560 2006-01-18  Simon Josefsson  <jas@extundo.com>
44561
44562         * modules/socklen (Depends-on): Depend on sys_socket.
44563
44564 2006-01-18  Simon Josefsson  <jas@extundo.com>
44565
44566         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
44567         modules/des-tests, modules/gc-arcfour-tests,
44568         modules/gc-arctwo-tests, modules/gc-des-tests,
44569         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
44570         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
44571         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
44572         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
44573         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
44574         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
44575         $(EXEEXT) to automake TESTS variable, for mingw32.
44576
44577 2006-01-17  Simon Josefsson  <jas@extundo.com>
44578
44579         * modules/socklen (Include): Need sys/socket.h.
44580
44581 2006-01-17  Bruno Haible  <bruno@clisp.org>
44582
44583         * modules/ssize_t (Include): Add <sys/types.h>.
44584
44585 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
44586
44587         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
44588         it's not portable and it doesn't work with cross-compiles.
44589         Problem reported by Bruno Haible.  Fix missing-$ typo in
44590         'test "gl_cv_ignore_unused_libraries" ...' that prevented
44591         -zignore from being used with Sun's C compiler.
44592
44593 2006-01-12  Simon Josefsson  <jas@extundo.com>
44594
44595         * lib/base64.c: Fix warning, reported by Bruno Haible
44596         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
44597
44598 2006-01-12  Bruno Haible  <bruno@clisp.org>
44599
44600         * modules/ldd: New file.
44601         * build-aux/ldd.sh.in: New file.
44602         * MODULES.html.sh (Support for building libraries and executables): Add
44603         ldd.
44604
44605 2006-01-12  Bruno Haible  <bruno@clisp.org>
44606
44607         * m4/ldd.m4: New file.
44608
44609 2006-01-12  Bruno Haible  <bruno@clisp.org>
44610
44611         * gnulib-tool (func_import, func_create_testdir): Don't go into an
44612         endless loop while replacing $auxdir with build-aux.
44613
44614 2006-01-11  Simon Josefsson  <jas@extundo.com>
44615
44616         * lib/stdint_.h (SIZE_MAX): Add missing (.
44617
44618 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44619
44620         Sync from coreutils.
44621         * lib/md5.c: Fix commentary typos.
44622         (alignof, UNALIGNED_P): No need for a GCC-specific version.
44623         * lib/md5.h (__attribute__): Remove; unused.
44624         * lib/sha1.c: Fix commentary to match md5 better.
44625         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
44626         so that we don't need to worry about alignment.  All uses changed.
44627         This merges the 2005-10-28 md5 change into sha1.
44628
44629 2006-01-11  Jim Meyering  <jim@meyering.net>
44630
44631         Sync from coreutils.
44632         * lib/md5.c (OP): Fix spacing.
44633
44634 2006-01-11  Bruno Haible  <bruno@clisp.org>
44635
44636         Ensure automatic ordering between gl_LOCK and gl_ARGP.
44637         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
44638         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
44639
44640 2006-01-11  Bruno Haible  <bruno@clisp.org>
44641
44642         Ensure automatic ordering between gl_LOCK and gl_ARGP.
44643         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
44644         the "early" section as well.
44645
44646 2006-01-11  Bruno Haible  <bruno@clisp.org>
44647
44648         Avoid "ar: no archive members specified" error on MacOS X.
44649         * gnulib-tool (func_modules_add_dummy): New function.
44650         (func_import, func_create_testdir): Invoke it.
44651
44652 2006-01-11  Bruno Haible  <bruno@clisp.org>
44653
44654         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
44655         with $auxdir in AC_CONFIG_FILES statements.
44656
44657 2006-01-11  Bruno Haible  <bruno@clisp.org>
44658
44659         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44660         Initialize also noinst_HEADERS to empty.
44661
44662 2006-01-11  Bruno Haible  <bruno@clisp.org>
44663
44664         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
44665         variables.
44666         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
44667         autoreconf.
44668
44669 2006-01-11  Bruno Haible  <bruno@clisp.org>
44670
44671         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
44672         overridable by the user.
44673         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44674
44675 2006-01-10  Simon Josefsson  <jas@extundo.com>
44676
44677         * modules/sys_socket: New file.
44678
44679 2006-01-10  Simon Josefsson  <jas@extundo.com>
44680
44681         * m4/sys_socket_h.m4: New file.
44682
44683 2006-01-10  Simon Josefsson  <jas@extundo.com>
44684
44685         * lib/socket_.h: New file.
44686
44687 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44688
44689         * modules/readutmp (Maintainer): Add myself.
44690
44691 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44692
44693         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
44694         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
44695         People who are still concerned with buggy memcmp implementations
44696         can invoke gl_FUNC_MEMCMP themselves.
44697
44698 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44699
44700         * lib/regex_internal.h (BITSET_WORD_BITS):
44701         Work around a bug in 64-bit PGC (before version 6.1-2), where the
44702         preprocessor mishandles large unsigned values as if they were signed.
44703         Problem reported by Claudio Fontana in
44704         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
44705
44706 2006-01-10  Jim Meyering  <jim@meyering.net>
44707
44708         Avoid the double-free (first in fts_read, second in fts_close) that
44709         would occur when an `active' directory is made inaccessible (e.g.,
44710         via chmod a-x) during a traversal.
44711         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
44712         before returning.  Reproduce this failure by
44713         mkdir -p a/b; cd a; chmod a-x . b
44714         Reported by Stavros Passas.
44715
44716         Sync from coreutils.
44717         * lib/sha1.c: Tweak grammar in a comment.
44718
44719 2006-01-10  Jim Meyering  <jim@meyering.net>
44720
44721         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
44722         Patch by Joerg Sonnenberger.
44723
44724 2006-01-10  Bruno Haible  <bruno@clisp.org>
44725
44726         * modules/readutmp: Depend on module free.
44727         * modules/strtok_r: Depend on module restrict.
44728
44729 2006-01-10  Bruno Haible  <bruno@clisp.org>
44730
44731         * modules/gettext (configure.ac): Add an invocation of
44732         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
44733
44734 2006-01-10  Bruno Haible  <bruno@clisp.org>
44735
44736         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
44737         Reported by Werner Lemberg <wl@gnu.org>.
44738
44739 2006-01-10  Bruno Haible  <bruno@clisp.org>
44740
44741         * lib/localcharset.c: Update from GNU gettext.
44742
44743 2006-01-10  Bruno Haible  <bruno@clisp.org>
44744
44745         * lib/argp.h (__const): Remove macro. Use const instead.
44746         * lib/argp-fmtstream.h (__const): Likewise.
44747         * lib/glob_.h (__const): Remove macro.
44748         * lib/glob-libc.h: Use const instead of __const.
44749
44750 2006-01-10  Bruno Haible  <bruno@clisp.org>
44751
44752         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
44753         variable.
44754         Needed to avoid an automake error regarding the 'gettext' module.
44755
44756 2006-01-09  Simon Josefsson  <jas@extundo.com>
44757
44758         * modules/inet_ntop (Depends-on): Add restrict.
44759
44760 2006-01-09  Simon Josefsson  <jas@extundo.com>
44761
44762         * modules/gc-rijndael-tests (License): Put under LGPL.
44763
44764         * modules/gc-des-tests (License): Likewise.
44765
44766         * modules/gc-arcfour-tests (License): Likewise.
44767
44768         * modules/gc-arctwo-tests (License): Likewise.
44769
44770         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
44771
44772         * modules/gc-hmac-sha1-tests (Files): Likewise.
44773
44774         * modules/gc-hmac-md5-tests (License): Likewise.
44775
44776         * modules/gc-sha1-tests (License): Likewise.
44777
44778         * modules/gc-md5-tests (License): Likewise.
44779
44780         * modules/gc-md4-tests (License): Likewise.
44781
44782         * modules/gc-md2-tests (License): Likewise.
44783
44784         * modules/gc-tests (License): Likewise.
44785
44786         * modules/des-tests (License): Likewise.
44787
44788         * modules/md4-tests (License): Likewise.
44789
44790         * modules/md2-tests (License): Likewise.
44791
44792 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44793
44794         Sync from coreutils:
44795
44796         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
44797         * modules/lib-ignore: New file.
44798         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
44799         chdir-safer.m4, lchmod.m4.
44800         * modules/openat: Add mkdirat.c, openat-priv.h.
44801
44802 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44803
44804         Sync from coreutils.
44805         * m4/lib-ignore.m4: New file.
44806         * m4/lchmod.m4: New file.
44807
44808 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44809
44810         Sync from coreutils.
44811         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
44812         for write access: POSIX says that must fail.
44813         * lib/fts.c (diropen): Likewise.
44814         * lib/save-cwd.c (save_cwd): Likewise.
44815         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
44816         well, for minor improvements on hosts that lack O_DIRECTORY.
44817         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
44818         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
44819         Fall back on chown if open failed with EACCES.
44820
44821         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
44822         Report an error at compile-time if only a 1-second nominal clock
44823         resolution is found.
44824
44825         * lib/lchmod.h: New file.
44826         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
44827         (make_dir_parents): Use lchown rather than chown, and
44828         lchmod rather than chmod.
44829
44830         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
44831         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
44832         "proc" reported by n0dalus.
44833
44834         * lib/mountlist.c: Include <limits.h>.
44835         (dev_from_mount_options)
44836         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
44837         New function.  It no longer assumes "dev=" has the System V meaning
44838         on Linux (since it doesn't).  It also parses "dev=" more carefully.
44839         (read_file_system_list)
44840         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
44841         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
44842         dev= in that case.
44843
44844         * lib/posixtm.h (PDS_PRE_2000): New macro.
44845         * lib/posixtm.c (year): Arg is now syntax_bits rather than
44846         allow_century.  All usages changed.  Reject dates outside the range
44847         1969-1999 if PDS_PRE_2000 is used.
44848
44849 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44850
44851         Sync from coreutils.
44852         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
44853         (Time of day items): Mention the possibility of leap seconds.
44854         Problem reported by Dr. David Alan Gilbert.
44855
44856 2006-01-09  Jim Meyering  <jim@meyering.net>
44857
44858         Sync from coreutils.
44859
44860         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
44861
44862         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
44863
44864         * lib/modechange.c (mode_compile): Reject an invalid mode string
44865         that starts with an octal digit.  From Andreas Gruenbacher.
44866
44867         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
44868         and dup to open_safer and dup_safer, respectively.
44869         (openat_permissive): Fix typo in comment.
44870
44871         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
44872         "gettext.h"; either no longer needed or are guaranteed by openat.h.
44873         (_): Remove; no longer needed.
44874         (openat): Renamed from rpl_openat; no need for rpl_openat
44875         since openat.h renames openat for us.
44876         Replace most of the body with a call to openat_permissive,
44877         to avoid duplicate code.
44878         Port to (probably hypothetical) environments were mode_t is
44879         wider than int.
44880         (openat_permissive): Require mode arg, so that we can check
44881         types better.  Put it just after flags.  Change cwd failure
44882         indicator from pointer-to-bool to pointer-to-errno-value.
44883         All callers changed.
44884         Invoke openat_save_fail and/or openat_restore_fail if
44885         cwd_errno is null, so that openat can call us.
44886         (openat_permissive, fdopendir, fstatat, unlinkat):
44887         Simplify errno handling to avoid some duplicate code,
44888         as it's OK to set errno on success.
44889         * lib/openat.h: Revamp code so that function macros depend on
44890         __OPENAT_PREFIX only, not also on AT_FDCWD.
44891         (openat_ro): Remove.  Caller changed to use openat_permissive.
44892         (openat_permissive): Now a macro, if not a function.
44893         (openat_restore_fail, openat_save_fail): Now always functions,
44894         since mkdirat needs them even if __OPENAT_PREFIX is defined.
44895
44896         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
44897         and openat.c.
44898         * lib/mkdirat.c: Include openat-priv.h.
44899         Remove definitions of macros defined therein.
44900         * lib/openat.c: Likewise.
44901
44902         * lib/mkdirat.c (mkdirat): New file and function.
44903         * lib/openat.h (mkdirat): Declare.
44904
44905         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
44906
44907         * lib/openat.h (openat_permissive): Declare.
44908         (openat_ro): Define.
44909
44910         * lib/openat.c (EXPECTED_ERRNO): New macro.
44911         (openat_permissive): New function -- used in remove.c rewrite.
44912         (all functions): Set errno just before returning, only if there
44913         was an actual failure.
44914         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
44915
44916         Emulate openat-family functions using Linux's procfs, if possible.
44917         Idea and some code based on Ulrich Drepper's glibc changes.
44918
44919         * lib/openat.c: (BUILD_PROC_NAME): New macro.
44920         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
44921         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
44922         before falling back on save_cwd and restore_cwd.
44923         (fdopendir, fstatat, unlinkat): Likewise.
44924
44925         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
44926         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
44927
44928         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
44929         as second argument to va_arg.  Otherwise, some versions of gcc
44930         warn that `if this code is reached, the program will abort'.
44931
44932 2006-01-09  Jim Meyering  <jim@meyering.net>
44933
44934         Sync from coreutils.
44935         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
44936         Require openat-priv.h.
44937
44938 2006-01-09  Bruno Haible  <bruno@clisp.org>
44939
44940         * modules/strnlen (Include): Use strnlen.h.
44941
44942 2006-01-09  Bruno Haible  <bruno@clisp.org>
44943
44944         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
44945
44946 2006-01-09  Bruno Haible  <bruno@clisp.org>
44947
44948         * lib/sysexit_.h (EX_OK): New macro.
44949         Suggested by Martin Lambers <marlam@marlam.de>.
44950
44951 2006-01-09  Bruno Haible  <bruno@clisp.org>
44952
44953         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
44954         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
44955
44956 2006-01-09  Bruno Haible  <bruno@clisp.org>
44957
44958         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
44959         numbers.
44960
44961 2006-01-09  Bruno Haible  <bruno@clisp.org>
44962
44963         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
44964         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
44965         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
44966         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
44967
44968 2006-01-09  Bruno Haible  <bruno@clisp.org>
44969
44970         * build-aux/javacomp.sh.in: New file, moved from lib/.
44971         * modules/javacomp-script (Files): Update.
44972         (configure.ac): Add AC_CONFIG_FILES invocation.
44973         (EXTRA_DIST): Remove variable.
44974
44975         * build-aux/javaexec.sh.in: New file, moved from lib/.
44976         * modules/javaexec (Files): Update.
44977         (configure.ac): Add AC_CONFIG_FILES invocation.
44978         (EXTRA_DIST): Remove javaexec.sh.in.
44979
44980         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
44981         * modules/csharpcomp-script (Files): Update.
44982         (configure.ac): Add AC_CONFIG_FILES invocation.
44983         (EXTRA_DIST): Remove variable.
44984
44985         * build-aux/csharpexec.sh.in: New file, moved from lib/.
44986         * modules/csharpexec (Files): Update.
44987         (configure.ac): Add AC_CONFIG_FILES invocation.
44988         (EXTRA_DIST): Remove csharpexec.sh.in.
44989
44990 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
44991
44992         Sync from coreutils.
44993
44994         Add POSIX ACL support
44995         * lib/acl.h (copy_acl, set_acl): Add declarations.
44996         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
44997         systems other than Linux.
44998         (chmod_or_fchmod): New function: use fchmod when possible,
44999         and chmod otherwise.
45000         (file_has_acl): Add a POSIX ACL implementation, with a
45001         Linux-specific subcase.
45002         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
45003         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
45004         acls are unsupported.
45005         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
45006         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
45007         are unsupported.
45008
45009 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
45010
45011         Sync from coreutils.
45012         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
45013
45014 2006-01-07  Bruno Haible  <bruno@clisp.org>
45015
45016         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
45017         gl_EARLY.
45018
45019 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45020
45021         * lib/strftime.c (tzname): Don't declare if it is already #defined.
45022         Problem reported for Mingw by Mark Junker.
45023
45024 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45025
45026         * README: Gnulib normally doesn't generate a tarball.
45027
45028 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
45029
45030         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
45031         long int, not int, for nanosecond counts, so that people who are
45032         used to POSIX struct timespec won't be surprised.  Reported by Jim
45033         Meyering.
45034
45035 2005-12-28  Bruno Haible  <bruno@clisp.org>
45036
45037         * build-aux/config.rpath: Update from GNU gettext.
45038
45039 2005-12-16  Jim Meyering  <jim@meyering.net>
45040
45041         * modules/fprintftime: New module.
45042         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
45043
45044 2005-12-16  Jim Meyering  <jim@meyering.net>
45045
45046         * m4/fprintftime.m4: New file.
45047
45048 2005-12-16  Jim Meyering  <jim@meyering.net>
45049
45050         * lib/fprintftime.c, lib/fprintftime.h: New files.
45051
45052 2005-12-15  Simon Josefsson  <jas@extundo.com>
45053
45054         * modules/socklen (configure.ac): Fix M4 macro name, to align with
45055         new m4/socklen.m4.
45056
45057 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
45058
45059         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
45060         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
45061
45062 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
45063
45064         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
45065         * lib/argp-help.c (fill_in_uparams): Check if the constructed
45066         struct uparams is valid. Fall back to the default values if it is
45067         not.
45068
45069 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
45070
45071         * modules/argp (Files): Add argp-pin.c
45072         (Depends-on): dirname
45073         (lib_SOURCES): Add argp-pin.c
45074
45075 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
45076
45077         * m4/argp.m4:  Check if program_invocation_name and
45078         program_invocation_short_name are declared and define appropriate
45079         macros if they are not.
45080
45081 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
45082
45083         * lib/argp-help.c (__argp_base_name): New function
45084         (__argp_short_program_name): Rewrite using __argp_base_name
45085         * lib/argp-namefrob.h: Define program_invocation_name and
45086         program_invocation_short_name if requested
45087         (__argp_base_name): Add prototype
45088         * lib/argp-parse.c (argp_def): Use gettext wrappers
45089         (argp_default_parser): Use __argp_base_name
45090         * lib/argp-pin.c: New file. Defines program_invocation_name and
45091         program_invocation_short_name on systems that lack them.
45092
45093 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
45094
45095         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
45096         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
45097         porting problem reported by Georg Schwarz in
45098         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
45099
45100 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
45101
45102         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
45103         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
45104         porting problem reported by Georg Schwarz in
45105         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
45106
45107 2005-12-05  Bruno Haible  <bruno@clisp.org>
45108
45109         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
45110         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
45111         Reported by Mark Junker <mjscod@gmx.de>.
45112
45113 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
45114
45115         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
45116         Use implementation from Albert Chin, with some
45117         comments/corrections by Stepan Kasal and myself.
45118
45119 2005-12-02  Bruno Haible  <bruno@clisp.org>
45120
45121         * gnulib-tool (func_import): Accept GPLed build tool modules when
45122         --lgpl is given.
45123         * modules/csharpcomp-script: New file.
45124         * modules/csharpcomp: Depend on it.
45125         * modules/javacomp-script: New file.
45126         * modules/javacomp: Depend on it.
45127         Suggested by Simon Josefsson.
45128
45129 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
45130
45131         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
45132         statement, to work around an HP-UX 10.20 compiler bug reported by
45133         Peter O'Gorman.
45134
45135 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
45136
45137         * modules/savedir (Depends-on): Add openat.
45138
45139 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
45140
45141         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
45142         (uintmax_t) [defined uintmax_t]: Do not declare.
45143         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
45144         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
45145         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
45146         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
45147         sake of portability to weird hosts that C allows (though we don't
45148         know of any practical examples).
45149
45150         * lib/savedir.h (fdsavedir): New decl.
45151         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
45152         contains most of the former guts of savedir.
45153         (savedir): Use savedirstream.
45154         Include "openat.h".
45155
45156 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
45157
45158         * modules/obstack (Files): Add m4/ulonglong.m4.
45159         Problem reported by Davide Angelocola.
45160
45161 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45162
45163         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
45164         coreutils no longer futzes with rounding modes.
45165
45166 2005-11-14  Jim Meyering  <jim@meyering.net>
45167
45168         * lib/mkstemp-safer.c: Include <config.h>, required for possible
45169         replacement of mkstemp.
45170
45171 2005-11-10  Simon Josefsson  <jas@extundo.com>
45172
45173         * lib/readline.c: Remove EOL.
45174
45175 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45176
45177         * modules/gethrxtime (Depends-on): Add gettime.
45178
45179 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45180
45181         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
45182         or gettimeofday; no longer needed.
45183
45184 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45185
45186         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
45187         time business.
45188         (gethrxtime) [! (HAVE_NANOUPTIME
45189         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
45190         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
45191         our own approximation.
45192
45193 2005-11-08  Eric Blake  <ebb9@byu.net>
45194
45195         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
45196
45197 2005-11-08  Eric Blake  <ebb9@byu.net>
45198
45199         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
45200
45201 2005-11-04  Bruno Haible  <bruno@clisp.org>
45202
45203         * gnulib-tool: Implement --update mode.
45204
45205 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
45206
45207         Fix porting problem reported by Theodoros V. Kalamatianos.
45208         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
45209         Don't assume that futimes failing means we must fail.
45210
45211 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
45212
45213         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
45214         variables to suggest the intended function of the PATH_MAX check.
45215
45216 2005-10-30  Kean Johnston  <jkj@sco.com>
45217
45218         Trivial changes to support SCO systems.
45219         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
45220         as PATH_MAX.
45221         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
45222         where __ptr is null when no I/O is pending.
45223
45224 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
45225
45226         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
45227         leave errno alone.  Problem reported by Dmitry V. Levin.
45228
45229 2005-10-28  Simon Josefsson  <jas@extundo.com>
45230
45231         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
45232         Test more.
45233
45234         * tests/test-gc-md2.c, tests/test-md2.c: New files.
45235
45236         * modules/md2, modules/md2-tests: New files.
45237
45238 2005-10-28  Simon Josefsson  <jas@extundo.com>
45239
45240         * m4/inet_ntop.m4: More tests.
45241
45242         * m4/gc-md2.m4, md2.m4: New file.
45243
45244 2005-10-28  Simon Josefsson  <jas@extundo.com>
45245
45246         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
45247         "restrict" keywords, as per POSIX.  Protect the function
45248         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
45249         Don't use K&R prototypes.  Check the sprintf return values.
45250         Re-define EAFNOSUPPORT if not present.  Indent.
45251
45252         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
45253         suggested by Bruno Haible <bruno@clisp.org>.
45254
45255         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
45256
45257         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
45258
45259         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
45260         libgcrypt).
45261
45262         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
45263
45264         * lib/md2.h, lib/md2.c: New files.
45265
45266 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
45267
45268         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
45269         errno alone.  Problem reported by Frederic Jolliton.
45270
45271 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
45272
45273         * modules/verify (License): Change from GPL to LGPL.  This is a
45274         tiny module and there are apparently near-equivalents that are
45275         under the BSD license.
45276
45277 2005-10-24  Simon Josefsson  <jas@extundo.com>
45278
45279         * modules/sha1: Relicense to LGPL.
45280
45281 2005-10-24  Simon Josefsson  <jas@extundo.com>
45282
45283         * lib/md4.h: Shrink buffer size, now that we changed the type.
45284
45285 2005-10-23  Simon Josefsson  <jas@extundo.com>
45286
45287         * gnulib-tool (func_import): Fix --tests-base.
45288
45289 2005-10-22  Simon Josefsson  <jas@extundo.com>
45290
45291         * modules/arcfour (Depends-on): Need stdint.
45292
45293 2005-10-22  Simon Josefsson  <jas@extundo.com>
45294
45295         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
45296         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
45297
45298 2005-10-22  Simon Josefsson  <jas@extundo.com>
45299
45300         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
45301         suggested by Bruno Haible <bruno@clisp.org>.
45302
45303 2005-10-22  Simon Josefsson  <jas@extundo.com>
45304
45305         * lib/crc.h: Include stddef.h, for size_t.
45306
45307 2005-10-22  Simon Josefsson  <jas@extundo.com>
45308
45309         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
45310         arcfour_context struct (simplify test vector testing in GNU
45311         Shishi).
45312
45313 2005-10-21  Simon Josefsson  <jas@extundo.com>
45314
45315         * modules/des, modules/des-tests: New files.
45316
45317         * modules/gc-des, modules/gc-des-tests: New files.
45318
45319         * tests/test-des.c, tests/test-gc-des.c: New file.
45320
45321 2005-10-21  Simon Josefsson  <jas@extundo.com>
45322
45323         * modules/arctwo, modules/arctwo-tests: New files.
45324
45325         * tests/test-arctwo.c: New file.
45326
45327         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
45328
45329         * tests/test-gc-arctwo.c: New file.
45330
45331 2005-10-21  Simon Josefsson  <jas@extundo.com>
45332
45333         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
45334         Bruno Haible <bruno@clisp.org>.
45335
45336         * m4/gc-des.m4: New file.
45337
45338 2005-10-21  Simon Josefsson  <jas@extundo.com>
45339
45340         * m4/arctwo.m4: New file.
45341
45342         * m4/gc-arctwo.m4: New file.
45343
45344 2005-10-21  Simon Josefsson  <jas@extundo.com>
45345
45346         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
45347         block.
45348
45349 2005-10-21  Simon Josefsson  <jas@extundo.com>
45350
45351         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
45352         <bruno@clisp.org>.
45353
45354         * lib/hmac-sha1.c (hmac_sha1): Likewise.
45355
45356         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
45357         Bruno Haible <bruno@clisp.org>.
45358
45359         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
45360         <bruno@clisp.org>.
45361
45362 2005-10-21  Simon Josefsson  <jas@extundo.com>
45363
45364         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
45365
45366 2005-10-21  Simon Josefsson  <jas@extundo.com>
45367
45368         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
45369
45370 2005-10-21  Simon Josefsson  <jas@extundo.com>
45371
45372         * lib/des.h, lib/des.c: New files.
45373
45374         * lib/gc-gnulib.c: Support DES.c
45375
45376 2005-10-21  Simon Josefsson  <jas@extundo.com>
45377
45378         * lib/arctwo.h, lib/arctwo.c: New files.
45379
45380         * lib/gc-gnulib.c: Support ARCTWO.
45381
45382 2005-10-21  Simon Josefsson  <jas@extundo.com>
45383
45384         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
45385         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45386
45387 2005-10-21  Simon Josefsson  <jas@extundo.com>
45388
45389         * gnulib-tool (func_import, func_create_testdir): Define automake
45390         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
45391         Makefile.am snippet),
45392         suggested by Bruno Haible <bruno@clisp.org>.
45393
45394         * modules/gc (Makefile.am): Use it.
45395
45396 2005-10-21  Bruno Haible  <bruno@clisp.org>
45397
45398         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
45399         patch.
45400
45401 2005-10-19  Simon Josefsson  <jas@extundo.com>
45402
45403         * tests/test-gc-rijndael.c: New file.
45404
45405         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
45406
45407 2005-10-19  Simon Josefsson  <jas@extundo.com>
45408
45409         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
45410         interface too.
45411
45412 2005-10-19  Simon Josefsson  <jas@extundo.com>
45413
45414         * tests/test-gc-arcfour.c: New file.
45415
45416         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
45417
45418 2005-10-19  Simon Josefsson  <jas@extundo.com>
45419
45420         * modules/gc-md4, modules/gc-md4-tests: New file.
45421
45422         * tests/test-gc-md4.c: New file.
45423
45424 2005-10-19  Simon Josefsson  <jas@extundo.com>
45425
45426         * m4/gc-md4.m4: New file.
45427
45428 2005-10-19  Simon Josefsson  <jas@extundo.com>
45429
45430         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
45431         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
45432         <kasal@ucw.cz>.
45433
45434 2005-10-19  Simon Josefsson  <jas@extundo.com>
45435
45436         * m4/gc-arcfour.m4: New file.
45437
45438         * m4/gc-rijndael.m4: New file.
45439
45440 2005-10-19  Simon Josefsson  <jas@extundo.com>
45441
45442         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
45443
45444 2005-10-19  Simon Josefsson  <jas@extundo.com>
45445
45446         * lib/gc-gnulib.c: Support ARCFOUR.
45447
45448 2005-10-19  Simon Josefsson  <jas@extundo.com>
45449
45450         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
45451         support.
45452
45453         * lib/gc.h: Add ECB enum type.
45454
45455         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
45456
45457 2005-10-18  Simon Josefsson  <jas@extundo.com>
45458
45459         * tests/test-md5.c: New file.
45460
45461         * modules/md5-tests: New file.
45462
45463 2005-10-18  Simon Josefsson  <jas@extundo.com>
45464
45465         * tests/test-md4.c: New file.
45466
45467         * modules/md4, modules/md4-tests: New files.
45468
45469 2005-10-18  Simon Josefsson  <jas@extundo.com>
45470
45471         * m4/md4.m4: New file.
45472
45473 2005-10-18  Simon Josefsson  <jas@extundo.com>
45474
45475         * lib/md4.h, lib/md4.c: New files, based on md5.?.
45476
45477 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
45478
45479         * gnulib-tool (func_create_testdir): Omit the second check whether
45480         BUILT_SOURCES in nonempty.
45481
45482 2005-10-17  Simon Josefsson  <jas@extundo.com>
45483
45484         * tests/test-rijndael.c: New file.
45485
45486 2005-10-17  Simon Josefsson  <jas@extundo.com>
45487
45488         * modules/sha1: Depend on stdint instead of md5.
45489
45490         * modules/md5: Depend on stdint, remove uint32_t.
45491
45492 2005-10-17  Simon Josefsson  <jas@extundo.com>
45493
45494         * modules/gc-sha1-tests: New file.
45495
45496         * tests/test-gc-sha1.c: New file.
45497
45498 2005-10-17  Simon Josefsson  <jas@extundo.com>
45499
45500         * m4/md5.m4: Remove call to uint32_t.m4.
45501
45502 2005-10-17  Simon Josefsson  <jas@extundo.com>
45503
45504         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
45505
45506         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
45507         md5.h.
45508
45509         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
45510
45511         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
45512
45513 2005-10-17  Simon Josefsson  <jas@extundo.com>
45514
45515         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
45516
45517 2005-10-17  Simon Josefsson  <jas@extundo.com>
45518
45519         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
45520
45521 2005-10-17  Simon Josefsson  <jas@extundo.com>
45522
45523         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
45524
45525         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
45526
45527 2005-10-17  Bruno Haible  <bruno@clisp.org>
45528
45529         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
45530         that it can also be used in a test.
45531
45532 2005-10-16  Bruno Haible  <bruno@clisp.org>
45533
45534         * gnulib-tool (func_emit_tests_Makefile_am): Also define
45535         TESTS_ENVIRONMENT, so that individual tests can augment it.
45536
45537         * gnulib-tool (func_create_testdir): Use an intermediate target for
45538         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
45539         macros, like $(ALLOCA_H), which cannot be passed through the command
45540         line.
45541
45542 2005-10-15  Simon Josefsson  <jas@extundo.com>
45543
45544         * modules/rijndael-tests: New file.
45545
45546         * modules/rijndael: New file.
45547
45548 2005-10-15  Simon Josefsson  <jas@extundo.com>
45549
45550         * m4/rijndael.m4: New file.
45551
45552 2005-10-15  Simon Josefsson  <jas@extundo.com>
45553
45554         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
45555
45556         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
45557
45558 2005-10-14  Simon Josefsson  <jas@extundo.com>
45559
45560         * tests/test-arcfour.c: New file.
45561
45562         * modules/arcfour, modules/arcfour-tests: New files.
45563
45564 2005-10-14  Simon Josefsson  <jas@extundo.com>
45565
45566         * m4/arcfour.m4: New file.
45567
45568 2005-10-14  Simon Josefsson  <jas@extundo.com>
45569
45570         * lib/arcfour.h, lib/arcfour.c: New files.
45571
45572 2005-10-14  Roland McGrath  <roland@redhat.com>
45573
45574         Import from libc.  [BZ #1331]
45575         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
45576         macro argument.
45577         Reported by Matej Vela <vela@debian.org>.
45578
45579 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45580
45581         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
45582         include <wchar.h>; no longer needed.
45583
45584 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45585
45586         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
45587
45588 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
45589         and  Ulrich Drepper  <drepper@redhat.com>
45590
45591         Import from libc.
45592         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
45593         instead of inline stream orientation test and two separate
45594         function calls.  Pay no attention to USE_IN_LIBIO.
45595
45596 2005-10-13  Simon Josefsson  <jas@extundo.com>
45597
45598         * modules/gc-hmac-md5-tests: New file.
45599
45600         * tests/test-gc-hmac-sha1.c: New file.
45601
45602         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
45603
45604         * modules/gc-hmac-md5-tests: New file.
45605
45606         * tests/test-gc-md5.c: New file.
45607
45608         * modules/gc-md5-tests: New file.
45609
45610 2005-10-13  Simon Josefsson  <jas@extundo.com>
45611
45612         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
45613         Move memory allocation outside of loop.
45614
45615 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
45616
45617         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
45618         intermediate directory is in a read-only file system.  Problem
45619         reported by Eric Blake.
45620
45621 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
45622
45623         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
45624
45625 2005-10-12  Simon Josefsson  <jas@extundo.com>
45626
45627         * tests/test-hmac-sha1.c: New file.
45628
45629         * modules/hmac-sha1-tests: New file.
45630
45631         * modules/hmac-sha1: New file.
45632
45633 2005-10-12  Simon Josefsson  <jas@extundo.com>
45634
45635         * modules/gc-sha1: New file.
45636
45637 2005-10-12  Simon Josefsson  <jas@extundo.com>
45638
45639         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
45640
45641         * tests/test-gc-pbkdf2-sha1.c: New file.
45642
45643 2005-10-12  Simon Josefsson  <jas@extundo.com>
45644
45645         * modules/gc-md5, modules/gc-hmac-md5: New files.
45646
45647         * modules/gc (Files): Remove md5, memxor and hmac files.
45648
45649 2005-10-12  Simon Josefsson  <jas@extundo.com>
45650
45651         * m4/gc-pbkdf2-sha1.m4: New file.
45652
45653         * m4/gc-hmac-sha1.m4: New file.
45654
45655         * m4/gc-sha1: New file.
45656
45657         * m4/hmac-sha1.m4: New file.
45658
45659 2005-10-12  Simon Josefsson  <jas@extundo.com>
45660
45661         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
45662
45663         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
45664
45665 2005-10-12  Simon Josefsson  <jas@extundo.com>
45666
45667         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
45668         suggested by Bruno Haible <bruno@clisp.org>.
45669
45670 2005-10-12  Simon Josefsson  <jas@extundo.com>
45671
45672         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
45673
45674 2005-10-12  Simon Josefsson  <jas@extundo.com>
45675
45676         * lib/gc-pbkdf2-sha1.c: New file.
45677
45678         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
45679
45680 2005-10-12  Simon Josefsson  <jas@extundo.com>
45681
45682         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
45683
45684         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
45685
45686 2005-10-12  Simon Josefsson  <jas@extundo.com>
45687
45688         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
45689         GC_USE_HMAC_MD5, respectively.
45690
45691         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
45692         (gc_md5): Fix typo.
45693
45694         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
45695
45696         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
45697
45698         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
45699
45700 2005-10-12  Bruno Haible  <bruno@clisp.org>
45701
45702         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
45703         Reported by Stepan Kasal <kasal@ucw.cz>.
45704
45705 2005-10-11  Simon Josefsson  <jas@extundo.com>
45706
45707         * tests/test-crc.c: New file.
45708
45709         * modules/crc, modules/crc-tests: New files.
45710
45711 2005-10-11  Simon Josefsson  <jas@extundo.com>
45712
45713         * m4/crc.m4: New file.
45714
45715 2005-10-11  Simon Josefsson  <jas@extundo.com>
45716
45717         * lib/gc.h: Add gc_hash and gc_hash_buffer.
45718
45719         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
45720
45721         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
45722
45723 2005-10-11  Simon Josefsson  <jas@extundo.com>
45724
45725         * lib/crc.h, lib/crc.c: New files.
45726
45727         * lib/gc.h (gc_hash_buffer): Add doc.
45728
45729 2005-10-11  Bruno Haible  <bruno@clisp.org>
45730
45731         * modules/c-strcasestr: New file.
45732         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
45733
45734 2005-10-11  Bruno Haible  <bruno@clisp.org>
45735
45736         * modules/c-strcase: New file.
45737         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
45738
45739 2005-10-11  Bruno Haible  <bruno@clisp.org>
45740
45741         * lib/strcasecmp.c: Include limits.h.
45742         (strcasecmp): Avoid integer overflow on exotic platforms.
45743         * lib/strncasecmp.c: Include limits.h.
45744         (strncasecmp): Avoid integer overflow on exotic platforms.
45745         Reported by Paul Eggert.
45746
45747 2005-10-11  Bruno Haible  <bruno@clisp.org>
45748
45749         * lib/c-strcasestr.h: New file, from GNU gettext.
45750         * lib/c-strcasestr.c: New file, from GNU gettext.
45751
45752 2005-10-11  Bruno Haible  <bruno@clisp.org>
45753
45754         * lib/c-strcase.h: New file, from GNU gettext.
45755         * lib/c-strcasecmp.c: New file, from GNU gettext.
45756         * lib/c-strncasecmp.c: New file, from GNU gettext.
45757
45758 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45759
45760         * modules/mempcpy (License): GPL -> LGPL.
45761         * modules/strchrnul (License): Likewise.
45762         * modules/sysexits (License): Likewise.
45763
45764 2005-10-08  Simon Josefsson  <jas@extundo.com>
45765
45766         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
45767
45768 2005-10-07  Simon Josefsson  <jas@extundo.com>
45769
45770         * m4/memxor.m4: Remove gl_C_RESTRICT call.
45771
45772 2005-10-06  Simon Josefsson  <jas@extundo.com>
45773
45774         * tests/test-hmac-md5.c: New file.
45775
45776         * modules/hmac-md5-tests: New file.
45777
45778         * modules/hmac-md5: New file.
45779
45780 2005-10-06  Simon Josefsson  <jas@extundo.com>
45781
45782         * m4/hmac-md5.m4: New file.
45783
45784         * m4/memxor.m4: Require gl_C_RESTRICT.
45785
45786 2005-10-06  Simon Josefsson  <jas@extundo.com>
45787
45788         * lib/memxor.c (memxor): Avoid casts and warnings.
45789
45790 2005-10-06  Simon Josefsson  <jas@extundo.com>
45791
45792         * lib/hmac-md5.c: New file.
45793
45794         * lib/hmac.h: New file.
45795
45796 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
45797
45798         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
45799         promotes to int, not unsigned int, to catch the AIX 5.3
45800         compiler bug.
45801
45802 2005-10-05  Simon Josefsson  <jas@extundo.com>
45803
45804         * modules/memxor: New file.
45805
45806         * modules/iconv (Files): Move config.rpath to havelib, it is used
45807         there.
45808
45809         * modules/havelib (Files): Add config.rpath.
45810
45811 2005-10-05  Simon Josefsson  <jas@extundo.com>
45812
45813         * m4/memxor.m4: New file.
45814
45815 2005-10-05  Simon Josefsson  <jas@extundo.com>
45816
45817         * lib/memxor.c (memxor): Fix compiler error.
45818
45819         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
45820         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
45821
45822         * lib/memxor.h, lib/memxor.c: New files.
45823
45824         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
45825         we assume all systems have it, suggested by Jim Meyering
45826         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
45827         any systems lack sys/socket.h; mingw32 is known to lack it, but we
45828         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
45829         same reasons.
45830
45831 2005-10-05  Simon Josefsson  <jas@extundo.com>
45832
45833         * config/srclist.txt: Add glibc bug 1423 for md5.h.
45834
45835 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
45836
45837         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
45838         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
45839         needed, since the source code now assumes these .h files.
45840
45841 2005-10-05  Derek Price  <derek@ximbiot.com>
45842
45843         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
45844
45845 2005-10-05  Bruno Haible  <bruno@clisp.org>
45846
45847         * modules/stdint (License): Change to LGPL.
45848
45849 2005-10-04  Simon Josefsson  <jas@extundo.com>
45850
45851         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
45852         D. Baushke" <mdb@gnu.org>.
45853
45854 2005-10-04  Bruno Haible  <bruno@clisp.org>
45855
45856         * lib/verify.h (verify_true): Provide alternative definition for C++.
45857
45858 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
45859
45860         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
45861         (SSIZE_MAX): New macro, if not already defined.
45862         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
45863         than 2 GiB.
45864
45865 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
45866
45867         Sync from coreutils.
45868         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
45869         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
45870         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
45871         ULLONG_MAX doesn't work with 2.7.2.1.
45872
45873 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
45874
45875         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
45876         From Ben Pfaff.
45877
45878         * modules/exclude (Depends-on): Depend on verify.
45879         * modules/strtoimax (Depends-on): Likewise.
45880         * modules/utimecmp (Depends-on): Likewise.
45881
45882 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
45883
45884         * lib/exclude.c: Include verify.h.
45885         (verify): Remove.  All callers changed to use verify.h's version.
45886         * lib/strtoimax.c: Likewise.
45887         * lib/utimecmp.c: Likewis.e
45888
45889         Sync from coreutils.
45890         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
45891         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
45892         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
45893         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
45894         bother returning ENOSYS if settimeofday or stime fails; just let
45895         them return whatever errno they want to return.
45896         * lib/utimens.c: Include unistd.h, for dup2.
45897         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
45898         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
45899
45900 2005-10-02  Jim Meyering  <jim@meyering.net>
45901
45902         Sync from coreutils.
45903         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
45904         from glibc-2.2.5 that fails for read-only files.
45905
45906 2005-10-02  Jim Meyering  <jim@meyering.net>
45907
45908         Sync from coreutils.
45909         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
45910         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
45911         `#if HAVE_CONFIG_H'.
45912         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
45913         Remove AT_FDCWD test.
45914         Do not consume the fd unless successful.
45915         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
45916         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
45917         block, so that we don't even try to compile it if settimeofday is
45918         available.  This works around a compilation failure on OSF1 V5.1,
45919         due to stime requiring a `long int*' while tv_sec is `int'.
45920
45921 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
45922
45923         Sync from coreutils.
45924         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
45925         against `yes', rather than just testing for nonempty.
45926
45927 2005-10-01  Simon Josefsson  <jas@extundo.com>
45928
45929         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
45930         and Darwin.
45931
45932         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
45933         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
45934         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
45935         freeaddrinfo and gai_strerror are declared by the POSIX headers.
45936         Check if struct addrinfo is declared.
45937
45938 2005-10-01  Simon Josefsson  <jas@extundo.com>
45939
45940         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
45941         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
45942         AI_* and EAI_* definitions.  Protect function declarations.
45943
45944 2005-10-01  Jim Meyering  <jim@meyering.net>
45945
45946         Sync from coreutils.
45947
45948         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
45949         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
45950         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
45951         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
45952         in the inet and nsl libraries.  Required on Solaris 5.7.
45953
45954 2005-10-01  Jim Meyering  <jim@meyering.net>
45955
45956         Sync from coreutils.
45957         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
45958         in the inet and nsl libraries.  Required on Solaris 5.7.
45959
45960 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
45961
45962         * lib/getdelim.c (getdelim): Remove unused variables.
45963
45964 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
45965
45966         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
45967         so that the code works even with ancient cpp.  Portability problem
45968         with GCC 2.7.2.1 reported by Thomas M.Ott.
45969
45970 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
45971
45972         * modules/regex (Depends-on): Add strcase.
45973
45974         * modules/gethostname (Licence): Change from GPL to LGPL, since
45975         gethostname.c is a trivial implementation of a standard library
45976         function.
45977         * modules/poll (License): Change from GPL to LGPL, since it's
45978         derived from LGPL code.
45979
45980 2005-09-27  Jim Meyering  <jim@meyering.net>
45981
45982         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
45983         HAVE_CONFIG_H.
45984
45985         * lib/intprops.h (signed_type_or_expr__): Define.
45986         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
45987         for unsigned types.
45988
45989 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
45990
45991         * lib/verify.h (verify_expr): Remove, replacing with:
45992         (verify_true): New macro that returns true instead of void.
45993         (verify_type__): Remove.
45994         (verify): Use verify_true rather than verify_type__.
45995
45996 2005-09-26  Bruno Haible  <bruno@clisp.org>
45997
45998         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
45999         is necessary.
46000         (lib_SOURCES): Remove mbchar.c.
46001         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
46002         (Files): Add m4/mbrtowc.m4.
46003         * modules/mbiter: Likewise.
46004         * modules/mbuiter: Likewise.
46005
46006 2005-09-26  Bruno Haible  <bruno@clisp.org>
46007
46008         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
46009         compile mbchar.c if they are not both present.
46010         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
46011         * m4/mbiter.m4 (gl_MBITER): Likewise.
46012         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
46013         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
46014         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
46015
46016 2005-09-25  Jim Meyering  <jim@meyering.net>
46017
46018         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
46019         also uses socklen_t.
46020
46021 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
46022
46023         * lib/utimens.c (ENOSYS): Define if not already defined.
46024         (futimens): Support having a null PATH if the file descriptor
46025         is nonnegative.
46026
46027         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
46028         Remove.
46029         (__attribute): Define to empty unless GCC 3.1 or later.
46030         This works around a core dump on OpenBSD 3.4, which has GCC
46031         2.95.3, which dumps core when given __attribute__(()).  It also
46032         simplifies other tests, since we really don't want to bother with
46033         worrying about which ancient version of GCC supported what.
46034         Original problem reported by Yoann Vandoorselaere, with part of
46035         the fix suggested by Derek Price.
46036
46037 2005-09-24  Jim Meyering  <jim@meyering.net>
46038
46039         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
46040         so we can once again use a positive bitfield width of 1 -- now we
46041         don't have to explain why we were using a bitfield width of 2.
46042
46043 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
46044
46045         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
46046         and similarly for the other external symbols.  Problem reported
46047         by James Gallager.
46048
46049         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
46050         bug reported by Jim Meyering.
46051
46052         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
46053         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
46054         not needed, since socklen is a prerequisite module.
46055
46056 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
46057
46058         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
46059         Problem reported by Eric Blake.
46060         (getaddrinfo): Initialize se so that it's not garbage.
46061         Redo internal storage allocation so that it doesn't make unportable
46062         assumptions about alignment.
46063         Fix a memory leak.
46064
46065         * lib/utimens.c (futimens): Use futimesat if available.
46066         Prefer it to futimes since it doesn't have the futimes bug.
46067
46068         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
46069         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
46070         Instead, declare a function that returns a pointer to an array,
46071         and use verify_type__ to declare the size of the array.
46072         Problem and germ of a solution reported by Bruno Haible.
46073         (verify_type__): Use 2, not 1, for bitfield size, to avoid
46074         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
46075
46076 2005-09-23  Jim Meyering  <jim@meyering.net>
46077
46078         Sync from coreutils.
46079         Correct build failure (socklen_t not defined) on at least
46080         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
46081         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
46082
46083 2005-09-23  Jim Meyering  <jim@meyering.net>
46084
46085         * modules/getaddrinfo (Depends-on): Add socklen.
46086
46087 2005-09-23  Bruno Haible  <bruno@clisp.org>
46088
46089         * tests/test-verify.c: New file.
46090
46091 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46092
46093         Sync from coreutils.
46094
46095         * modules/argmatch (Depends-on): Add verify.
46096         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
46097         unistd-safer.
46098         * modules/save-cwd (Depends-on): Likewise.
46099
46100         * modules/openat (Files): Add lib/openat-die.c.
46101         (Depends-on): Remove error, exitfail.
46102         Add dirname.
46103
46104         * modules/verify: New file.
46105         * MODULES.html.sh (Diagnostics <assert.h>): New section,
46106         with "verify" module.
46107
46108 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46109
46110         Sync from coreutils.
46111
46112         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
46113         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
46114         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
46115         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
46116         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
46117         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
46118         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
46119         Don't bother checking for string.h, stdlib.h, unistd.h.
46120         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
46121         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
46122         module's job.
46123         * m4/jm-macros.m4 (gl_MACROS): Likewise.
46124         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
46125
46126         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
46127         (gl_GETDATE): Use it.
46128
46129         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
46130
46131 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46132
46133         Sync from coreutils.
46134
46135         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
46136         stat-time.h.
46137         * lib/argmatch.h: Include verify.h
46138         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
46139         (ARGMATCH_ASSERT): Remove; unused.
46140         * lib/canonicalize.c: Assume STDC_HEADERS.
46141         * lib/exclude.c: Include "strcase.h".
46142         * lib/regex_internal.h [!defined _LIBC]: Likewise.
46143         * lib/getusershell.c: Include stdio--.h rather than stdio.h
46144         and stdio-safer.h.
46145         (getusershell): Call fopen, not fopen_safer.
46146         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
46147         Do not include unistd-safer.h.
46148         (save_cwd): Don't call fd_safer; no longer needed
46149         now that we include fcntl--.h.
46150
46151         * lib/getdate.y (relative_time): New type.
46152         (RELATIVE_TIME_0): New constant.
46153         (parser_control): Use relative_time instead of doing it ourselves.
46154         (%union): Add new relative_time rel member.
46155         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
46156         Now typeless.
46157         (relunit, relunit_snumber): Now of type rel.
46158         (zone, rel, relunit, get_date): Adjust to above changes.
46159
46160         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
46161         Do not include unistd-safer.h.
46162         (getloadavg): Don't call fd_safer; no longer needed
46163         now that we include fcntl--.h.
46164
46165         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
46166         (make_dir_parents): Treat ENOSYS like EEXIST.
46167
46168         Improve quality of diagnostics on restore_cwd failure.
46169         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
46170         (make_dir_parents): Last arg is now int * (for errno), not bool *.
46171         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
46172         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
46173         each time through the loop.  Do not diagnose restore_cwd failure;
46174         that is the caller's job (and perhaps the caller does not care).
46175
46176         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
46177         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
46178         If the file already exists but is not a directory, don't bother
46179         to try to make its parents.
46180         Close potential file descriptor leak if we can't chdir("/") (!).
46181         Don't always return true if chdir($PWD) fails; return true only
46182         if the requested action was done successfully (except for the
46183         chdir($PWD)).
46184         Don't log final directory unless we actually made it.
46185         Refactor to avoid duplicate code to fix up permissions.
46186         Don't attempt to fix up parent permissions if chdir($PWD) fails.
46187
46188         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
46189         to make it a bit faster and (I hope) clearer.
46190         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
46191         Fix bug in formats like %2N.
46192
46193         * lib/verify.h: New file.
46194
46195 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46196
46197         Sync from coreutils.
46198         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
46199
46200 2005-09-22  Jim Meyering  <jim@meyering.net>
46201
46202         Sync from coreutils.
46203
46204         * m4/lstat.m4 (gl_FUNC_LSTAT):
46205         Use AC_LIBSOURCES to require lstat.c and lstat.h.
46206         Remove obsolete comment.
46207         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
46208         * m4/xstrtod.m4: Likewise.
46209
46210         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
46211
46212 2005-09-22  Jim Meyering  <jim@meyering.net>
46213
46214         Sync from coreutils.
46215
46216         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
46217
46218         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
46219         the .tm_year member, since otherwise gcc-4.0 would now warn about
46220         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
46221
46222         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
46223         order to avoid an unsuppressible warning from gcc on 64-bit systems.
46224
46225         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
46226         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
46227         when run in a time zone for which daylight savings time is in effect
46228         for the starting date.
46229
46230         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
46231         stop us from restricting permissions of just-created absolute-named
46232         directories.
46233         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
46234         to restore initial working directory.
46235         * lib/mkdir-p.c (make_dir_parents): New parameter:
46236         different_working_dir, to tell caller if/when we change the working
46237         directory and are unable to return to the initial one.
46238         * lib/mkdir-p.h (make_dir_parents): Update prototype.
46239         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
46240         `return false'.  This fixes a bug introduced on 2004-07-30.
46241
46242         * lib/openat.c (fdopendir): Be sure to close the supplied
46243         file descriptor before returning.  This makes our replacement
46244         implementation a little closer to Solaris's, where fdopendir
46245         ties the file descriptor to the returned DIR* pointer.
46246         * lib/openat.c (unlinkat): New function.
46247         * lib/openat.h (unlinkat): Add prototype.
46248         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
46249         (openat_restore_fail): Rename from openat_restore_die.
46250         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
46251
46252         Provide an alternative to exiting immediately upon save_cwd or
46253         restore_cwd failure.  Now, an application can arrange e.g.,
46254         to perform a longjump in that case.
46255         * lib/openat.c: Include dirname.h.
46256         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
46257         (rpl_openat, fdopendir, fstatat): Call openat_save_die
46258         and openat_restore_die rather than calling error directly.
46259         Don't include "error.h" or "exitfail.h"; they're no longer needed.
46260
46261         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
46262         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
46263         define.
46264
46265         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
46266         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
46267                             int utc, int nanoseconds);
46268         Background:
46269         date should not have to allocate a megabyte of virtual memory to
46270         handle a format argument like +%1048575T.  When implemented with
46271         strftime, it must allocate such a buffer, use strftime to fill it
46272         in, print it, then free it.
46273         With fprintftime, it simply prints everything and exits.
46274         With no need for memory allocation, that's one fewer way to fail.
46275         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
46276         optional field width, not before, so we accept %9:z, not %:9z.
46277         (my_strftime): Be sure to use L_('x') for literals.
46278
46279         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
46280         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
46281         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
46282         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
46283         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
46284         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
46285         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
46286         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
46287         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
46288         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
46289         * lib/xgethostname.c, lib/xreadlink.c:
46290         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
46291
46292         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
46293         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
46294         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
46295         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
46296         and don't include <sys/file.h>).
46297
46298 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
46299
46300         Sync from coreutils.
46301
46302         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
46303         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
46304         [!LDAV_DONE]: Avoid unused variable warning.
46305
46306 2005-09-21  Bruno Haible  <bruno@clisp.org>
46307
46308         * lib/unicodeio.h (unicode_to_mb): New declaration.
46309
46310 2005-09-20  Derek Price  <derek@ximbiot.com>
46311
46312         * lib/getaddrinfo.c: Don't include <netdb.h> included from
46313         getaddrinfo.h.
46314
46315 2005-09-20  Bruno Haible  <bruno@clisp.org>
46316
46317         * gnulib-tool: Remove trailing slashes from the values specified for
46318         --source-base, --m4-base, --tests-base, --aux-dir.
46319         Suggested by Simon Josefsson <jas@extundo.com>.
46320
46321 2005-09-20  Bruno Haible  <bruno@clisp.org>
46322
46323         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
46324         func_modules_to_filelist, func_import, func_create_testdir): Make all
46325         sorting results locale-independent, so that gnulib-cache.m4 doesn't
46326         change when gnulib-tool is invoked in a different locale.
46327
46328 2005-09-19  Simon Josefsson  <jas@extundo.com>
46329
46330         * m4/socklen.m4: Fix typo.
46331
46332 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46333
46334         Use a consistent style for including <config.h>.
46335         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
46336         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
46337         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
46338         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
46339         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
46340         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
46341         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
46342         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
46343         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
46344         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
46345         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
46346         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
46347         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
46348         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
46349         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
46350         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
46351         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
46352         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
46353         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
46354         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
46355         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
46356         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
46357         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
46358         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
46359         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
46360         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
46361         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
46362         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
46363         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
46364         lib/xstrtoumax.c, lib/yesno.c:
46365         Standardize inclusion of config.h.
46366         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
46367         lib/inttostr.h:  Removed inclusion of config.h from header files.
46368         * lib/inttostr.c:  Adjusted in-tree users.
46369         * lib/timespec.h: Remove superfluous warning to include config.h.
46370         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
46371         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
46372         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
46373         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
46374         config.h with HAVE_CONFIG_H.
46375
46376 2005-09-19  Jim Meyering  <jim@meyering.net>
46377
46378         * modules/pathmax (License): Change to LGPL.
46379
46380 2005-09-19  Derek Price  <derek@ximbiot.com>
46381
46382         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
46383
46384 2005-09-19  Bruno Haible  <bruno@clisp.org>
46385
46386         * gnulib-tool (import): Provide default for --tests-base.
46387
46388 2005-09-19  Bruno Haible  <bruno@clisp.org>
46389
46390         * doc/quote.texi: New file, extracted from gnulib.texi.
46391         * doc/ctime.texi: New file, extracted from gnulib.texi.
46392         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
46393         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
46394         * doc/gnulib.texi: Include them.
46395
46396 2005-09-18  Bruno Haible  <bruno@clisp.org>
46397
46398         Portability fix.
46399         * gnulib-tool (func_readlink): New function.
46400         (func_ln_if_changed): Use it.
46401
46402 2005-09-18  Bruno Haible  <bruno@clisp.org>
46403
46404         * gnulib-tool: Support --with-tests also with --import.
46405         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
46406         (func_import): Use variables $testsbase and $inctests. Emit a
46407         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
46408         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
46409         SUBDIRS += $testsdir.
46410         (func_create_testdir): Update.
46411
46412 2005-09-18  Bruno Haible  <bruno@clisp.org>
46413
46414         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
46415         instead of $dry_run.
46416         (func_cp_if_changed, func_mv_if_changed): Remove functions.
46417         (func_ln_if_changed): Don't handle dry-run here.
46418         (func_import): In dry-run mode, detect more precisely which actions
46419         would be performed, and don't use "...ing" verbs.
46420
46421 2005-09-18  Bruno Haible  <bruno@clisp.org>
46422
46423         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
46424         (func_import): Use join on two temporary files instead of three nested
46425         loops, in order to determine which files are new or old.
46426
46427 2005-09-18  Bruno Haible  <bruno@clisp.org>
46428
46429         * gnulib-tool (func_import): Comment out code that spits out the
46430         new files with --dry-run.
46431
46432 2005-09-18  Bruno Haible  <bruno@clisp.org>
46433
46434         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
46435
46436 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
46437
46438         * lib/stat-time.h: New file.
46439         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
46440         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
46441         in a different way.
46442         (timespec_cmp): New function.
46443         * lib/utimecmp.c: Include stat-time.h.
46444         (SYSCALL_RESOLUTION): Depend on whether various struct stat
46445         members exist, not on the obsolescent ST_MTIM_NSEC.
46446         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
46447
46448 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
46449
46450         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
46451
46452 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
46453
46454         * MODULES.html.sh (File system functions): Add stat-time.
46455         * modules/stat-time: New file.
46456         * modules/timespec (Files): Remove m4/st_mtim.m4; this
46457         is now done in a different way, by the stat-time module.
46458         * modules/utimecmp (Depends-on): Add stat-time.
46459
46460 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46461
46462         * m4/st_mtim.m4: Remove.  Superseded by...
46463         * m4/stat-time.m4: New file.
46464         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
46465         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
46466
46467 2005-09-15  Derek Price  <derek@ximbiot.com>
46468
46469         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
46470
46471 2005-09-15  Derek Price  <derek@ximbiot.com>
46472
46473         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
46474         * lib/regex_internal.c: Ditto, using this...
46475         (__GNUC_PREREQ): ...new macro.
46476         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
46477         using...
46478         (__GNUC_PREREQ): ...this new macro.
46479
46480         * lib/strstr.h: Include string.h. Define strstr as a macro here.
46481
46482 2005-09-15  Derek Price  <derek@ximbiot.com>
46483             Paul Eggert  <eggert@cs.ucla.edu>
46484
46485         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
46486         changes, consolidating in...
46487         * lib/regex_internal.h: ...this file.
46488
46489 2005-09-13  Jim Meyering  <jim@meyering.net>
46490
46491         * lib/canon-host.c: Filter through gnu indent and reword comments
46492         slightly.
46493         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
46494
46495 2005-09-13  Derek Price  <derek@ximbiot.com>
46496
46497         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
46498         failure.
46499         Reported by Jim Meyering  <jim@meyering.net>.
46500
46501 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46502
46503         * lib/base64.c: Typo.
46504         (base64_encode): Put b64str in initialized data section.
46505
46506 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
46507
46508         Merge glibc and coreutils changes into gnulib, plus a few
46509         extra fixes.
46510         * lib/md5.c: Use #error rather than a string.
46511         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
46512         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
46513         (__attribute__): Define to empty for non recent-GCC.
46514         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
46515         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
46516         Renamed from their non-__ counterparts, with new macros replacing
46517         them if not _LIBC.  Add __THROW attribute.
46518         (rol): Remove.
46519         (struct md5_ctx): Align buffer if using GCC.
46520         * lib/sha1.h (struct sha1_ctx): Likewise.
46521         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
46522         The old name was backwards.
46523         (NOTSWAP): Remove; not used.
46524         (rol): New macro, moved here from md5.h.
46525         (sha1_process_block): Remove a FIXME that doesn't make sense.
46526
46527 2005-09-12  Derek Price  <derek@ximbiot.com>
46528
46529         Return usable errors from canon-host.
46530         * lib/canon-host.h: New file.
46531         * lib/canon-host.c (canon_host): Wrap...
46532         (canon_host_r): ...this new function, which now relies exclusively on
46533         getaddrinfo.
46534         (ch_strerror): New function.
46535         (last_cherror): New global.
46536         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
46537         interface.
46538         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
46539         void *.
46540         (freeaddrinfo): Free ai->ai_canonname when set.
46541
46542 2005-09-12  Derek Price  <derek@ximbiot.com>
46543
46544         Make canon-host require getaddrinfo.
46545         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
46546         AC_LIBSOURCE canon-host.h.  Call...
46547         (gl_PREREQ_CANON_HOST): ...this new function, which requires
46548         gl_GETADDRINFO.
46549         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
46550
46551 2005-09-12  Derek Price  <derek@ximbiot.com>
46552
46553         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
46554         LGPL.
46555         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
46556
46557 2005-09-12  Derek Price  <derek@ximbiot.com>
46558
46559         * lib/gai_strerror.c: Include config.h when available.  Include
46560         getaddrinfo.h before other headers to test interface.
46561         Reported by Larry Jones <lawrence.jones@ugs.com>.
46562
46563 2005-09-12  Derek Price  <derek@ximbiot.com>
46564             Paul Eggert  <eggert@cs.ucla.edu>
46565
46566         * modules/glob (Files): Add glob-libc.h.
46567
46568 2005-09-12  Derek Price  <derek@ximbiot.com>
46569             Paul Eggert  <eggert@cs.ucla.edu>
46570
46571         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
46572         glob_.h, glob-libc.h.
46573         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
46574
46575 2005-09-12  Derek Price  <derek@ximbiot.com>
46576             Paul Eggert  <eggert@cs.ucla.edu>
46577
46578         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
46579         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
46580         protecting things that should be done only in gnulib contexts.
46581         * lib/glob_.h: New file, containing only the glob things needed for
46582         gnulib.
46583         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
46584         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
46585         (glob, globfree, glob_pattern_p): Now defined simply in terms of
46586         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
46587         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
46588         and to respect the namespace rules better.
46589
46590 2005-09-08  Simon Josefsson  <jas@extundo.com>
46591
46592         * modules/socklen: New file.
46593
46594 2005-09-08  Simon Josefsson  <jas@extundo.com>
46595
46596         * m4/socklen.m4: New file.
46597
46598 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46599
46600         * modules/utimens (Files): Add m4/utimbuf.m4, since
46601         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
46602         Reported by Sergey Poznyakoff.
46603
46604 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46605
46606         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
46607         definitions, since that's the preferred style in glibc.
46608         Fix a minor spacing issue, and update copyright notice to match
46609         glibc's.
46610
46611 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46612
46613         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
46614
46615 2005-09-06  Simon Josefsson  <jas@extundo.com>
46616
46617         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
46618         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
46619
46620 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46621
46622         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
46623         warning.
46624
46625 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46626
46627         * config/srclist.txt: Add glibc bug 1302.
46628
46629 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
46630
46631         Change bitset word type from unsigned int to unsigned long int,
46632         as this has better performance on typical 64-bit hosts.
46633         Port bitset code to hosts with unusual word sizes.
46634         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
46635         (build_collating_symbol):
46636         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
46637         argument is a bitset.  This is merely a style issue, but it makes
46638         it clearer that an entire array is expected.
46639         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
46640         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
46641         Port to the case where bitset_word is not the same as unsigned int.
46642         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
46643         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
46644         Likewise.
46645         * lib/regexec.c (check_dst_limits_calc_pos_1,
46646         check_subexp_matching_top):
46647         (build_trtable, group_nodes_into_DFAstates):
46648         Likewise.
46649         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
46650         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
46651         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
46652         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
46653         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
46654         * lib/regcomp.c (optimize_subexps, lower_subexp):
46655         Work even if bitset_word has holes in its bitwise representation.
46656         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
46657         * lib/regexec.c (check_dst_limits_calc_pos_1,
46658         check_subexp_matching_top):
46659         Likewise.
46660         * lib/regex_internal.c (re_string_reconstruct):
46661         Don't assume UCHAR_MAX == 255.
46662         * lib/regex_internal.h (bitset_set_all): Likewise.
46663         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
46664         All uses changed.
46665         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
46666         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
46667         All uses changed.
46668         (BITSET_WORD_MAX): New macro.
46669         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
46670         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
46671         (bitset_empty, bitset_copy):
46672         Prefer sizeof (bitset) to multiplying it out ourselves.
46673         (bitset_not_merge): Remove; unused.
46674         (bitset_contain): Return bool, not unsigned int with one bit on.
46675         All callers changed.
46676         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
46677         alignment than re_node_set; do this by defining a new internal
46678         type struct dests_alloc and using it to allocate memory.
46679
46680 2005-09-05  Bruno Haible  <bruno@clisp.org>
46681
46682         * gnulib-tool (func_import): Fix comparison in handling of symbolic
46683         links.
46684
46685 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
46686
46687         * modules/size_max (Makefile.am): Add size_max.h
46688
46689 2005-09-04  Derek Price  <derek@ximbiot.com>
46690
46691         * gnulib-tool (func_import): Fix reversed $symbolic logic.
46692
46693 2005-09-03  Simon Josefsson  <jas@extundo.com>
46694
46695         * gnulib-tool: Fix typo.
46696
46697 2005-09-03  Simon Josefsson  <jas@extundo.com>
46698
46699         * config/srclist.txt: Add glibc bug 1293.
46700
46701 2005-09-03  Derek Price  <derek@ximbiot.com>
46702
46703         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
46704         From Larry Jones <lawrence.jones@ugs.com>.
46705
46706 2005-09-02  Simon Josefsson  <jas@extundo.com>
46707
46708         * modules/socklen: New file.
46709
46710 2005-09-02  Simon Josefsson  <jas@extundo.com>
46711
46712         * modules/havelib: New module.
46713
46714         * modules/gettext, modules/iconv, modules/lock, modules/readline:
46715         Use havelib.
46716
46717 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
46718
46719         Check for arithmetic overflow when calculating sizes, to prevent
46720         some buffer-overflow issues.  These patches are conservative, in the
46721         sense that when I couldn't determine whether an overflow was possible,
46722         I inserted a run-time check.
46723         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
46724         macros.
46725         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
46726         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
46727         (re_xnrealloc, re_x2nrealloc): New inline functions.
46728         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
46729         parse_bracket_exp):
46730         (build_equiv_class, build_charclass): Check for arithmetic overflow
46731         in size expression calculations.
46732         * lib/regex_internal.c (re_string_realloc_buffers):
46733         (build_wcs_upper_buffer, re_node_set_add_intersect):
46734         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
46735         (re_dfa_add_node, register_state): Likewise.
46736         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
46737         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
46738         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
46739         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
46740
46741 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
46742
46743         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
46744         m4/ulonglong.m4.  Problem reported by Martin Lambers.
46745
46746 2005-09-02  Bruno Haible  <bruno@clisp.org>
46747
46748         Support for lib vs. lib64 distinction on biarch platforms.
46749         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
46750         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
46751         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
46752
46753 2005-09-02  Bruno Haible  <bruno@clisp.org>
46754
46755         * gnulib-tool (import): In the other first-use case, provide defaults
46756         as well.
46757
46758 2005-09-02  Bruno Haible  <bruno@clisp.org>
46759
46760         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
46761         patches not yet found in the latest gettext release.
46762
46763 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46764
46765         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
46766         to avoid a collision with bits/local_lim.h in glibc.
46767         All uses changed.  Problem reported by Dmitry V. Levin in
46768         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
46769
46770         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
46771         bugs in int versus size_t comparisons.
46772         (re_string_context_at): Fix bug where the code assumed that
46773         Idx is signed.
46774
46775         Use bool where appropriate.
46776         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
46777         All callers changed.
46778         (calc_eclosure_iter): Likewise, for ROOT arg.
46779         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
46780         (build_charclass_op): Likewise, for NON_MATCH arg.
46781         * lib/regex_internal.c (re_string_allocate, re_string_construct):
46782         (re_string_construct_common): Likewise, for ICASE arg.
46783         * lib/regexec.c (re_search_2_stub, re_search_stub):
46784         Likewise, for RET_LEN arg.
46785         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
46786         (set_regs): Likewise, for FL_BACKTRACK arg.
46787         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
46788         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
46789         (calc_eclosure_iter, parse_bracket_exp):
46790         Use bool for internal variables that are booleans.
46791         * lib/regexec.c (re_search_internal, check_matching,
46792         proceed_next_node):
46793         (set_regs, build_sifted_states, sift_states_bkref):
46794         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
46795         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
46796         (find_collation_sequence_value):
46797         Likewise.
46798         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
46799         (re_node_set_compare):
46800         Return bool, not int. All callers changed.
46801         * lib/regexec.c (check_halt_node_context, check_dst_limits):
46802         (build_trtable, check_node_accept): Likewise.
46803         * lib/regex_internal.h: Include stdbool.h.
46804
46805         Fix bugs uncovered when converting to bool.
46806         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
46807         failure instead of charging ahead blindly.
46808         * lib/regex_internal.c (register_state): Likewise.
46809         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
46810         for freeing internal storage.
46811         (group_nodes_into_DFA_states): Use unsigned int, not int, for
46812         bitset pieces used as boolean, to avoid undefined behavior
46813         on hosts that do int overflow checking.
46814
46815 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46816
46817         * config/srclist.txt: Add glibc bugs 1285-1287.
46818
46819 2005-09-01  Jim Meyering  <jim@meyering.net>
46820
46821         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
46822         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
46823         Require gl_STAT_MACROS, too.
46824
46825 2005-09-01  Bruno Haible  <bruno@clisp.org>
46826
46827         * gnulib-tool (import): In the first-use case, provide defaults.
46828
46829 2005-09-01  Bruno Haible  <bruno@clisp.org>
46830
46831         * gnulib-tool (func_import): Remove the .tmp files.
46832
46833 2005-09-01  Bruno Haible  <bruno@clisp.org>
46834
46835         * gnulib-tool (func_import): Fix handling of symbolic links.
46836
46837 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46838
46839         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
46840         old glibc regex code mishandles strings longer than 2**31 bytes.
46841         This patch fixes this when the regex code is used in gnulib
46842         (i.e., outside glibc).
46843
46844         This patch should not affect the use of the regex code inside
46845         glibc.  No doubt this problem also needs to be handled for glibc
46846         as well, but the result will be an incompatible change to the
46847         glibc ABI, and the old ABI will have to be supported too.  That
46848         can be the the subject for another patch.
46849
46850         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
46851         governing whether the rest of this patch is active.  By default,
46852         the macro is disabled and the patch has no effect.
46853         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
46854         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
46855         (struct re_pattern_buffer, re_search, re_search_2, re_match):
46856         (re_match_2, re_set_registers): Use the new types.
46857         * lib/regex_internal.h (Idx, re_hashval_t): New types.
46858         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
46859         New macros.
46860         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
46861         (re_string_context_at, bin_tree_t, re_dfastate_t):
46862         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
46863         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
46864         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
46865         (re_string_char_size_at, re_string_wchar_at):
46866         (re_string_elem_size_at):
46867         Use the new types and macros to port to 64-bit hosts.
46868         Use unsigned types for internal values, so that the code
46869         mostly works even for arrays larger than SSIZE_MAX.
46870         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
46871         (search_duplicated_node, calc_eclosure_iter, fetch_number):
46872         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
46873         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
46874         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
46875         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
46876         (calc_inveclosure, parse_dup_op, build_range_exp):
46877         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
46878         (fetch_number, create_token_tree, mark_opt_subexp):
46879         Likewise.
46880         * lib/regex_internal.c (re_string_construct_common,
46881         create_ci_newstate):
46882         (create_cd_newstate, re_string_allocate, re_string_construct):
46883         (re_string_realloc_buffers, build_wcs_upper_buffer):
46884         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
46885         (re_string_reconstruct, re_string_peek_byte_case):
46886         (re_string_fetch_byte_case, re_string_context_at):
46887         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
46888         (re_node_set_init_copy, re_node_set_add_intersect):
46889         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
46890         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
46891         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
46892         (re_acquire_state, re_acquire_state_context, register_state):
46893         Likewise.
46894         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
46895         search_cur_bkref_entry):
46896         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
46897         (re_search_internal, re_search_2_stub, re_search_stub)
46898         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
46899         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
46900         (update_cur_sifted_state, check_dst_limits):
46901         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
46902         (check_subexp_limits, sift_states_bkref, merge_state_array):
46903         (check_subexp_matching_top, get_subexp, get_subexp_sub):
46904         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
46905         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
46906         (expand_bkref_cache, check_node_accept_bytes):
46907         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
46908         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
46909         (acquire_init_state_context, check_halt_node_context):
46910         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
46911         (sift_states_backward, clean_state_log_if_needed):
46912         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
46913         (find_recover_state, transit_state_sb, transit_state_mb):
46914         (transit_state_bkref, build_trtable, match_ctx_clean):
46915         Likewise.
46916         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
46917         to work around an assumption that REG_MISSING is negative.
46918
46919         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
46920         (seek_collating_symbol_entry) [defined _LIBC]:
46921         (lookup_collation_sequence_value) [defined _LIBC]:
46922         (build_range_exp, build_collating_symbol) [defined _LIBC]:
46923         Use prototypes rather than old-style function definitions.
46924         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
46925         (transit_state_sb) [0]:
46926         (find_collation_sequence_value) [defined _LIBC]: Likewise.
46927
46928         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
46929         rm_eo.
46930
46931         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
46932         (optimize_subexps, lower_subexp):
46933         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
46934         since the signed shift might overflow.  Use 1u<<31 instead.
46935         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
46936         Likewise.
46937         * lib/regexec.c (check_dst_limits_calc_pos_1,
46938         check_subexp_matching_top): Likewise.
46939
46940         * lib/regcomp.c (optimize_subexps, lower_subexp):
46941         Use CHAR_BIT rather than 8, for clarity.
46942         * lib/regexec.c (check_dst_limits_calc_pos_1):
46943         (check_subexp_matching_top): Likewise.
46944         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
46945         have to worry about portability issues when shifting it left.
46946         Remove no-longer-needed test for table_size > 0.
46947         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
46948         in a word, as the resulting behavior is undefined.
46949         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
46950         in one case, a <= should have been an <, and in another case the
46951         whole test was missing.
46952         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
46953         the standard name CHAR_BIT.
46954         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
46955         this is not true on one's complement and signed-magnitude hosts.
46956
46957         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
46958         next_last_offset.
46959         (struct re_dfa_t): Remove unused member states_alloc.
46960         * lib/regcomp.c (init_dfa): Don't initialize unused members.
46961
46962 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46963
46964         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
46965         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
46966         and large-file glibc and in 32-bit large-file Solaris.
46967
46968 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46969
46970         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
46971         lengths fit in regoff_t; this isn't true if regoff_t is the same
46972         width as size_t.
46973         * lib/regex.c (re_search_internal): 5th arg is LAST_START
46974         (= START + RANGE) instead of RANGE.  This avoids overflow
46975         problems when regoff_t is the same width as size_t.
46976         All callers changed.
46977         (re_search_2_stub): Check for overflow when adding the
46978         sizes of the two strings.
46979         (re_search_stub): Check for overflow when adding START
46980         to RANGE; if it occurs, substitute the extreme value.
46981
46982 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46983
46984         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
46985
46986 2005-08-31  Jim Meyering  <jim@meyering.net>
46987
46988         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
46989         a pointer-to-const.
46990         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
46991         (register_state): Likewise.
46992         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
46993         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
46994         (group_nodes_into_DFAstates): Likewise.
46995
46996 2005-08-31  Jim Meyering  <jim@meyering.net>
46997
46998         * check-module: Add a FIXME comment.
46999
47000 2005-08-31  Eric Blake  <ebb9@byu.net>
47001
47002         * modules/unistd-safer (Files): Add unistd--.h.
47003         * modules/stdio-safer (Files): Add stdio--.h.
47004
47005 2005-08-31  Derek Price  <derek@ximbiot.com>
47006
47007         * lib/getdelim.c (getdelim): Return EOF on EOF.
47008         Reported by Larry Jones <lawrence.jones@ugs.com>.
47009
47010 2005-08-31  Bruno Haible  <bruno@clisp.org>
47011
47012         Avoid unnecessary diffs in the generated lib/Makefile.am.
47013         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
47014         the generated files.
47015         (func_import): Don't set cmd.
47016
47017 2005-08-31  Bruno Haible  <bruno@clisp.org>
47018
47019         * lib/strstr.c: Include <stddef.h>, for NULL.
47020         * lib/strcasestr.c: Likewise.
47021         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47022
47023 2005-08-31  Bruno Haible  <bruno@clisp.org>
47024
47025         * gnulib-tool: New option --macro-prefix.
47026         (func_import): Use macro_prefix.
47027         (import): Handle option --macro-prefix.
47028
47029 2005-08-31  Bruno Haible  <bruno@clisp.org>
47030
47031         * gnulib-tool (import): Rename most ac_* variables to cached_*.
47032         Also use new variables cached_lgpl, cached_libtool.
47033
47034 2005-08-31  Bruno Haible  <bruno@clisp.org>
47035
47036         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
47037         always instantiating them.
47038
47039 2005-08-31  Bruno Haible  <bruno@clisp.org>
47040
47041         * gnulib-tool (func_import): Read the previous cached settings
47042         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
47043         earlier added by gnulib but are now dropped. Warn when a gnulib file
47044         overwrites a non-gnulib file.
47045
47046 2005-08-31  Bruno Haible  <bruno@clisp.org>
47047
47048         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
47049         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
47050         projects that don't keep autogenerated files in CVS. Put into
47051         actioncmd only the specified modules, not the transitive closure.
47052
47053 2005-08-31  Bruno Haible  <bruno@clisp.org>
47054
47055         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
47056         Create directories that shall be filled.
47057         (import): Don't look for gl_* macros in configure.ac. Recurse across
47058         all directories containing a gnulib-cache.m4 files, if meaningful.
47059
47060 2005-08-31  Bruno Haible  <bruno@clisp.org>
47061
47062         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
47063         (import): Set seen_libtool when we see gl_LIBTOOL.
47064
47065 2005-08-31  Bruno Haible  <bruno@clisp.org>
47066
47067         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
47068         declaration macro definitions from generated gnulib.m4.
47069
47070 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
47071
47072         * lib/iconvme.h: Add prototype for iconv_alloc.
47073
47074 2005-08-29  Simon Josefsson  <jas@extundo.com>
47075
47076         * lib/iconvme.c: Fix errno.
47077
47078 2005-08-29  Bruno Haible  <bruno@clisp.org>
47079
47080         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
47081         that it works when the directory contains spaces.
47082
47083 2005-08-29  Bruno Haible  <bruno@clisp.org>
47084
47085         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
47086
47087 2005-08-29  Bruno Haible  <bruno@clisp.org>
47088
47089         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
47090         Emit more advice.
47091
47092 2005-08-29  Bruno Haible  <bruno@clisp.org>
47093         and Stepan Kasal  <kasal@ucw.cz>
47094
47095         * check-module: If more parameters are given, check each of them
47096         separately; add more exceptions, as noted by Jim Meyering.
47097         (check_module): New procedure.
47098         (%exempt_header): Now contains all exceptions.
47099
47100 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
47101
47102         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
47103
47104 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
47105
47106         * lib/iconvme.c: Split iconv_string into iconv_alloc.
47107
47108 2005-08-28  Bruno Haible  <bruno@clisp.org>
47109
47110         * m4/gnulib-tool.m4: New file.
47111
47112 2005-08-27  Jim Meyering  <jim@meyering.net>
47113
47114         * modules/unistd-safer (Files): Add pipe-safer.c.
47115         * modules/fcntl-safer (Files): Add creat-safer.c.
47116
47117 2005-08-27  Jim Meyering  <jim@meyering.net>
47118
47119         * m4/stdlib-safer.m4: New file.  From coreutils.
47120         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
47121         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
47122         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
47123         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
47124         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
47125
47126 2005-08-27  Jim Meyering  <jim@meyering.net>
47127
47128         * lib/fopen-safer.c: Merge minor changes from coreutils.
47129         * lib/dup-safer.c: Likewise.
47130         * lib/fd-safer.c: Likewise.
47131
47132         Merge from coreutils.
47133         * lib/stdio--.h: New file.
47134         * lib/stdlib--.h: New file.
47135         * lib/mkstemp-safer.c: New file.
47136
47137         GNU tar needs these.
47138         * lib/pipe-safer.c: New file.
47139         * lib/creat-safer.c: New file.
47140         * lib/fcntl--.h (creat): Define to creat_safer.
47141         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
47142         * lib/unistd--.h (pipe): Define to pipe_safer.
47143         * lib/unistd-safer.h: Declare pipe_safer.
47144
47145 2005-08-26  Simon Josefsson  <jas@extundo.com>
47146
47147         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
47148         Haible <bruno@clisp.org>.
47149
47150 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
47151
47152         * lib/regex_internal.h: Remove all references to
47153         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
47154         or better.
47155         (bitset_not, bitset_merge, bitset_not_merge):
47156         (bitset_mask, re_string_allocate, re_string_construct):
47157         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
47158         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
47159         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
47160         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
47161         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47162         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47163         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
47164         (re_acquire_state_context):
47165         Remove unnecessary forward decls.
47166         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
47167         Put __attribute at function definition,
47168         now that the function decl has been removed.
47169         * lib/regex_internal.c (re_string_peek_byte_case):
47170         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
47171         Likewise.
47172
47173 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
47174
47175         * m4/regex.m4: Add AC_PREREQ(2.50).
47176         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
47177
47178 2005-08-25  Simon Josefsson  <jas@extundo.com>
47179
47180         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
47181         __fsetlocking.
47182
47183 2005-08-25  Simon Josefsson  <jas@extundo.com>
47184
47185         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
47186         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
47187         GLIBC specific code.
47188
47189 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47190
47191         Make regex safe for g++.  This fixes one real bug (an "err"
47192         that should have been "*err").  g++ problem reported by
47193         Sam Steingold.
47194         * lib/regex_internal.h (re_calloc): New macro, consistent with
47195         re_malloc etc.  All callers of calloc changed to use re_calloc.
47196         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
47197         not int.  All callers changed.
47198         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
47199         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
47200         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
47201         (find_recover_state): Change "err" to "*err"; this fixes what
47202         appears to be a real bug.
47203         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
47204         versus int.
47205
47206 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47207
47208         * modules/regex (Depends-on): Add malloc, since the code
47209         assumes that !malloc(0) means failure.
47210
47211 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47212
47213         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
47214
47215         alloca modernization/simplification for regex.
47216         * lib/regex.c: Remove portability cruft for alloca.  This no longer
47217         needs to be at the start of the file, and can be moved into
47218         regex_internal.h and simplified.
47219         * lib/regex_internal.h: Include <alloca.h>.
47220         (__libc_use_alloca) [!defined _LIBC]: New macro.
47221         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
47222         now works outside glibc.
47223
47224 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47225
47226         * config/srclist.txt: Add glibc bugs 1241, 1245.
47227
47228 2005-08-25  Jim Meyering  <jim@meyering.net>
47229
47230         * lib/open-safer.c: Include <config.h>.
47231         Otherwise, we'd lose LARGEFILE support in any file using
47232         e.g. "fcntl--.h"
47233
47234 2005-08-25  Bruno Haible  <bruno@clisp.org>
47235
47236         * m4/minmax.m4: Require autoconf 2.52.
47237         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
47238         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
47239         alternatives of translit over the alphabet.
47240         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
47241
47242 2005-08-24  Simon Josefsson  <jas@extundo.com>
47243
47244         * tests/test-getpass.c: New file.
47245
47246 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47247
47248         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
47249         for GNU regex features.
47250
47251 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47252
47253         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
47254         * lib/regex.h (regerror): Likewise.
47255
47256         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
47257         requires this.  (The code never needed it.)
47258
47259         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
47260         All uses of recently-renamed identifiers changed to use the new,
47261         POSIX-compliant names.  The code will build and run just fine
47262         without these changes, but it's better to eat our own dog food
47263         and use the standard-conforming names.
47264
47265         * lib/regex.h: Fix a multitude of POSIX name space violations.
47266         These changes have an effect only for programs that define
47267         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
47268         do not change anything for programs compiled in the normal way.
47269         Also, there is no effect on the ABI.
47270
47271         (_REGEX_SOURCE): New macro.
47272         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
47273         defined and _GNU_SOURCE is not; this fixes a name space violation.
47274
47275         Rename the following macros to obey POSIX requirements.
47276         The old names are still visible as macros if _REGEX_SOURCE is defined.
47277         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
47278         RE_BACKSLASH_ESCAPE_IN_LISTS.
47279         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
47280         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
47281         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
47282         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
47283         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
47284         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
47285         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
47286         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
47287         (REG_INTERVALS): renamed from RE_INTERVALS.
47288         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
47289         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
47290         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
47291         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
47292         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
47293         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
47294         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
47295         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
47296         RE_UNMATCHED_RIGHT_PAREN_ORD.
47297         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
47298         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
47299         (REG_DEBUG): renamed from RE_DEBUG.
47300         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
47301         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
47302         unusual, since we can't clash with the POSIX REG_ICASE.
47303         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
47304         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
47305         (REG_NO_SUB): renamed from RE_NO_SUB.
47306         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
47307         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
47308         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
47309         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
47310         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
47311         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
47312         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
47313         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
47314         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
47315         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
47316         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
47317         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
47318         RE_SYNTAX_POSIX_MINIMAL_BASIC.
47319         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
47320         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
47321         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
47322         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
47323         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
47324         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
47325         (REG_FIXED): Renamed from REGS_FIXED.
47326         (REG_NREGS): Renamed from RE_NREGS.
47327
47328         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
47329         of other REG_* macros, since POSIX says the user is allowed to
47330         #undef these macros selectively.
47331
47332         (reg_errcode_t): Update comment stating what other tables need
47333         to be consistent.
47334
47335         Rename the following enum values to obey POSIX requirements.
47336         The old names are still visible as macros.
47337         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
47338         is not defined, since GNU is supposed to be a superset of POSIX as
47339         much as possible, and since we want reg_errcode_t to be a signed
47340         type for implementation consistency.
47341         (_REG_NOERROR): Renamed from REG_NOERROR.
47342         (_REG_NOMATCH): Renamed from REG_NOMATCH.
47343         (_REG_BADPAT): Renamed from REG_BADPAT.
47344         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
47345         (_REG_ECTYPE): Renamed from REG_ECTYPE.
47346         (_REG_EESCAPE): Renamed from REG_EESCAPE.
47347         (_REG_ESUBREG): Renamed from REG_ESUBREG.
47348         (_REG_EBRACK): Renamed from REG_EBRACK.
47349         (_REG_EPAREN): Renamed from REG_EPAREN.
47350         (_REG_EBRACE): Renamed from REG_EBRACE.
47351         (_REG_BADBR): Renamed from REG_BADBR.
47352         (_REG_ERANGE): Renamed from REG_ERANGE.
47353         (_REG_ESPACE): Renamed from REG_ESPACE.
47354         (_REG_BADRPT): Renamed from REG_BADRPT.
47355         (_REG_EEND): Renamed from REG_EEND.
47356         (_REG_ESIZE): Renamed from REG_ESIZE.
47357         (_REG_ERPAREN): Renamed from REG_ERPAREN.
47358         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
47359         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
47360         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
47361         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
47362
47363         (_REG_RE_NAME, _REG_RM_NAME): New macros.
47364         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
47365         changed.  But support the old name if the new one is not defined
47366         and if _REGEX_SOURCE.
47367
47368         Change the following member names in struct re_pattern_buffer.
47369         The old names are still supported if !_REGEX_SOURCE.
47370         The new names are always supported, regardless of _REGEX_SOURCE.
47371         (re_buffer): Renamed from buffer.
47372         (re_allocated): Renamed from allocated.
47373         (re_used): Renamed from used.
47374         (re_syntax): Renamed from syntax.
47375         (re_fastmap): Renamed from fastmap.
47376         (re_translate): Renamed from translate.
47377         (re_can_be_null): Renamed from can_be_null.
47378         (re_regs_allocated): Renamed from regs_allocated.
47379         (re_fastmap_accurate): Renamed from fastmap_accurate.
47380         (re_no_sub): Renamed from no_sub.
47381         (re_not_bol): Renamed from not_bol.
47382         (re_not_eol): Renamed from not_eol.
47383         (re_newline_anchor): Renamed from newline_anchor.
47384
47385         Change the following member names in struct re_registers.
47386         The old names are still supported if !_REGEX_SOURCE.
47387         The new names are always supported, regardless of _REGEX_SOURCE.
47388         (rm_num_regs): Renamed from num_regs.
47389         (rm_start): Renamed from start.
47390         (rm_end): Renamed from end.
47391
47392         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
47393         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
47394         Prepend __ to parameter names.
47395
47396         Undo yesterday's changes.
47397
47398 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47399
47400         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
47401         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
47402         lib/regex.c.
47403
47404 2005-08-24  Jim Meyering  <jim@meyering.net>
47405
47406         Sync from coreutils.
47407         * m4/fcntl-safer.m4: New file.
47408
47409         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
47410         and object files for this module.
47411
47412 2005-08-24  Jim Meyering  <jim@meyering.net>
47413
47414         Sync from coreutils.
47415         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
47416
47417 2005-08-24  Jim Meyering  <jim@meyering.net>
47418
47419         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
47420         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
47421
47422 2005-08-24  Jim Meyering  <jim@meyering.net>
47423
47424         * modules/fcntl-safer: New module.
47425         * modules/fts (Depends-on): Add fcntl-safer.
47426         * MODULES.html.sh (File descriptor based Input/Output):
47427         Add fcntl-safer.
47428
47429 2005-08-24  Bruno Haible  <bruno@clisp.org>
47430
47431         Support for unit test modules.
47432         * modules/README: Mention tests modules.
47433         * modules/TEMPLATE-TESTS: New file.
47434         * gnulib-tool: New options --extract-tests-module, --with-tests and
47435         --tests-base (unused for the moment).
47436         (testsbase, inctests): New variables.
47437         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
47438         (func_verify_module): Exclude TEMPLATE-TESTS.
47439         (func_verify_nontests_module, func_verify_tests_module): New functions.
47440         (func_get_dependencies): Add implicit dependency for tests modules.
47441         (func_get_tests_module): New function.
47442         (func_modules_transitive_closure): When --with-tests was specified,
47443         include the unit tests as well, unless explicitly avoided.
47444         (func_emit_lib_Makefile_am): Ignore the tests modules here.
47445         (func_emit_tests_Makefile_am): New function.
47446         (func_create_testdir): When --with-tests was specified, emit a
47447         tests/ directory.
47448         * MODULES.html.sh (Future developments): Update.
47449
47450 2005-08-24  Bruno Haible  <bruno@clisp.org>
47451
47452         * modules/tls-tests: New file.
47453         * tests/test-tls.c: New file, from GNU gettext.
47454
47455 2005-08-24  Bruno Haible  <bruno@clisp.org>
47456
47457         * modules/lock-tests: New file.
47458         * tests/test-lock.c: New file, from GNU gettext.
47459
47460 2005-08-24  Bruno Haible  <bruno@clisp.org>
47461
47462         * lib/lock.h: Add multiple inclusion guard.
47463         * lib/tls.h: Add multiple inclusion guard.
47464
47465 2005-08-24  Bruno Haible  <bruno@clisp.org>
47466
47467         * gnulib-tool: Add support for the --aux-dir option to
47468         --create-testdir, --create-megatestdir, --test, --megatest.
47469         (func_create_testdir, func_create_megatestdir): Optionally emit a
47470         AC_CONFIG_AUX_DIR directive.
47471         (create-testdir, create-megatestdir, test, megatest): Provide a
47472         default value for $auxdir.
47473
47474 2005-08-24  Bruno Haible  <bruno@clisp.org>
47475
47476         * gnulib-tool (import): Use compound statement instead of subshell
47477         where possible.
47478
47479 2005-08-24  Bruno Haible  <bruno@clisp.org>
47480
47481         * gnulib-tool (import): Change --aux-dir default to "build-aux".
47482
47483 2005-08-24  Bruno Haible  <bruno@clisp.org>
47484
47485         * gnulib-tool (func_version): Update.
47486
47487 2005-08-24  Bruno Haible  <bruno@clisp.org>
47488
47489         * gnulib-tool (func_import, func_create_testdir,
47490         func_create_megatestdir): Quote all autoconf macro arguments.
47491
47492 2005-08-24  Bruno Haible  <bruno@clisp.org>
47493
47494         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
47495         option --force, because --force causes the aclocal.m4 of each
47496         subdirectory to be newer than the corresponding config.h.in.
47497
47498 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47499
47500         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
47501         All contents moved to gl_REGEX.
47502         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
47503         assume that it does.
47504
47505 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47506
47507         * lib/regex.h (REG_NOSYS)
47508         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
47509         Define, since POSIX requires it as of 2001.
47510         (_REG_ENOSYS)
47511         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
47512         New private symbol, used to keep the enum signed in all cases.
47513         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
47514         Youngman in
47515         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
47516
47517         * lib/regex_internal.c (re_string_skip_chars, register_state):
47518         (calc_state_hash):
47519         Remove forward decls; no longer needed now that we use prototypes.
47520         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
47521         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
47522         (clean_state_log_if_needed): Likewise.
47523
47524 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47525
47526         * config/srclist.txt: Add glibc bugs 1231-1233.
47527
47528 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47529
47530         Fix problems reported by Sam Steingold in
47531         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
47532         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
47533         assumed that reg_errcode_t is a signed type, which is not
47534         necessarily true if _XOPEN_SOURCE is not defined.
47535         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
47536         since some compilers warn about it otherwise.
47537
47538 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47539
47540         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
47541         (init_word_char, create_initial_state, duplicate_node_closure):
47542         (fetch_token, peek_token_bracket, build_range_exp):
47543         (build_collating_symbol): Remove forward decls; no longer needed
47544         now that we use prototypes.
47545
47546         * lib/regcomp.c:
47547         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
47548         (re_compile_fastmap_iter, regcomp, regerror, regfree):
47549         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
47550         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
47551         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
47552         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
47553         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
47554         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
47555         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
47556         (build_range_exp, build_collating_symbol, parse_bracket_exp):
47557         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
47558         (build_charclass, build_charclass_op, fetch_number, create_tree):
47559         (create_token_tree, mark_opt_subexp, duplicate_tree):
47560         Use prototypes rather than old-style definitions.
47561
47562         * lib/regex_internal.c:
47563         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
47564         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
47565         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
47566         (re_string_reconstruct, re_string_peek_byte_case):
47567         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
47568         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
47569         (re_node_set_init_copy, re_node_set_add_intersect):
47570         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47571         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47572         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
47573         (re_acquire_state, re_acquire_state_context, register_state):
47574         (create_ci_newstate, create_cd_newstate, free_state):
47575         Likewise.
47576         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
47577         re_search_2):
47578         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
47579         (re_search_internal, prune_impossible_nodes):
47580         (acquire_init_state_context, check_matching, static):
47581         (check_halt_node_context, check_halt_state_context, proceed_next_node):
47582         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
47583         (update_regs, sift_states_backward, build_sifted_states):
47584         (clean_state_log_if_needed, merge_state_array):
47585         (update_cur_sifted_state, add_epsilon_src_nodes):
47586         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
47587         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
47588         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
47589         (find_recover_state, check_subexp_matching_top, transit_state_mb):
47590         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
47591         (check_arrival, check_arrival_add_next_nodes):
47592         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
47593         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
47594         (check_node_accept_bytes, check_node_accept, extend_buffers):
47595         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
47596         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
47597         (sift_ctx_init):
47598         Likewise.
47599
47600         * lib/regex_internal.h:
47601         (re_string_allocate, re_string_construct, re_string_reconstruct):
47602         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
47603         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
47604         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
47605         (re_string_context_at, re_string_peek_byte_case):
47606         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
47607         is defined, since we now use prototypes always.
47608
47609         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
47610         C89 or better.  All uses removed.
47611
47612 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47613
47614         * config/srclist.txt: Add glibc bugs 1220-1227.
47615
47616 2005-08-20  Jim Meyering  <jim@meyering.net>
47617
47618         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
47619         of unused local, dfa.
47620
47621 2005-08-20  Bruno Haible  <bruno@clisp.org>
47622
47623         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
47624
47625 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47626
47627         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
47628         (re_node_set_insert_last, re_dfa_add_node):
47629         Rename local variables to avoid GCC shadowing warnings.
47630
47631 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47632
47633         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
47634         [defined lint]: Suppress bogus uninitialized-variable warnings.
47635
47636         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
47637         and let the caller return REG_ESPACE if out of space.  This
47638         removes an uninitialied-variable warning with GCC 4.0.1, and also
47639         avoids taking the address of a local variable.  All callers
47640         changed.
47641
47642 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47643
47644         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
47645         $LIBCSRC/posix/regexec.c.
47646         Add glibc bug 1217 for regcomp.c.
47647
47648 2005-08-19  Jim Meyering  <jim@meyering.net>
47649
47650         * lib/regexec.c (proceed_next_node): Redo local variables to
47651         avoid GCC shadowing warnings.
47652
47653 2005-08-18  Bruno Haible  <bruno@clisp.org>
47654
47655         * lib/strstr.c (strstr): Fix return value in multibyte case.
47656         * lib/strcasestr.c (strcasestr): Likewise.
47657
47658 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
47659
47660         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
47661
47662 2005-08-17  Jim Meyering  <jim@meyering.net>
47663
47664         Make the %s format (seconds since the epoch) work for a negative
47665         number and when used with a zero-padded field width, e.g. %015s.
47666
47667         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
47668         label so that it precedes the code to set `digits'.  Otherwise,
47669         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
47670         print `00-22'.  Now, it prints `-0022', as it should.
47671
47672 2005-08-17  Bruno Haible  <bruno@clisp.org>
47673
47674         * modules/strstr (Files): Add m4/mbrtowc.m4.
47675         (Depends-on): Add mbuiter.
47676
47677 2005-08-17  Bruno Haible  <bruno@clisp.org>
47678
47679         * modules/strcasestr: New file.
47680         * MODULES.html.sh (String handling, based on ANSI C 89): Add
47681         strcasestr.
47682
47683 2005-08-17  Bruno Haible  <bruno@clisp.org>
47684
47685         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
47686
47687 2005-08-17  Bruno Haible  <bruno@clisp.org>
47688
47689         * modules/mbuiter: New file.
47690         * MODULES.html.sh (Extended multibyte and wide character utilities):
47691         Add mbuiter.
47692
47693 2005-08-17  Bruno Haible  <bruno@clisp.org>
47694
47695         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
47696         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
47697
47698 2005-08-17  Bruno Haible  <bruno@clisp.org>
47699
47700         * m4/strcasestr.m4: New file.
47701
47702 2005-08-17  Bruno Haible  <bruno@clisp.org>
47703
47704         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
47705         * lib/strstr.c: Completely rewritten, with multibyte locale support.
47706
47707 2005-08-17  Bruno Haible  <bruno@clisp.org>
47708
47709         * lib/strcasestr.h: New file.
47710         * lib/strcasestr.c: New file.
47711
47712 2005-08-17  Bruno Haible  <bruno@clisp.org>
47713
47714         * lib/strcasecmp.c: Use mbuiter.h.
47715
47716 2005-08-17  Bruno Haible  <bruno@clisp.org>
47717
47718         * lib/mbuiter.h: New file.
47719
47720 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
47721
47722         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
47723         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
47724         and gl_GETOPT are both invoked via different paths (as happens
47725         with GNU tar CVS because it uses both argp and getopt), the former
47726         wins.
47727
47728 2005-08-16  Bruno Haible  <bruno@clisp.org>
47729
47730         * modules/tls: New file.
47731         * MODULES.html.sh (Multithreading): Add tls.
47732
47733 2005-08-16  Bruno Haible  <bruno@clisp.org>
47734
47735         * modules/strnlen1: New file.
47736         * MODULES.html.sh (String handling): Add strnlen1.
47737
47738 2005-08-16  Bruno Haible  <bruno@clisp.org>
47739
47740         * modules/strcase (Files): Add m4/mbrtowc.m4.
47741         (Depends-on): Add strnlen1, mbchar.
47742
47743 2005-08-16  Bruno Haible  <bruno@clisp.org>
47744
47745         * modules/mbiter: New file.
47746         * MODULES.html.sh (Extended multibyte and wide character utilities):
47747         Add mbiter.
47748
47749 2005-08-16  Bruno Haible  <bruno@clisp.org>
47750
47751         * modules/mbfile: New file.
47752         * MODULES.html.sh (Extended multibyte and wide character utilities):
47753         Add mbfile.
47754
47755 2005-08-16  Bruno Haible  <bruno@clisp.org>
47756
47757         * modules/mbchar: New file.
47758         * MODULES.html.sh (Extended multibyte and wide character utilities):
47759         New section.
47760
47761 2005-08-16  Bruno Haible  <bruno@clisp.org>
47762
47763         * m4/tls.m4: New file, from GNU gettext.
47764
47765 2005-08-16  Bruno Haible  <bruno@clisp.org>
47766
47767         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
47768         always.
47769         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
47770
47771 2005-08-16  Bruno Haible  <bruno@clisp.org>
47772
47773         * m4/mbiter.m4: New file.
47774
47775 2005-08-16  Bruno Haible  <bruno@clisp.org>
47776
47777         * m4/mbfile.m4: New file.
47778
47779 2005-08-16  Bruno Haible  <bruno@clisp.org>
47780
47781         * m4/mbchar.m4: New file.
47782
47783 2005-08-16  Bruno Haible  <bruno@clisp.org>
47784
47785         * lib/tls.h: New file, from GNU gettext.
47786         * lib/tls.c: New file, from GNU gettext.
47787
47788 2005-08-16  Bruno Haible  <bruno@clisp.org>
47789
47790         * lib/strnlen1.h: New file.
47791         * lib/strnlen1.c: New file.
47792
47793 2005-08-16  Bruno Haible  <bruno@clisp.org>
47794
47795         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
47796         (mbi_init): Update.
47797         (mbi_avail, mbi_advance): Let the iteration end before the terminating
47798         NUL byte, not after it.
47799
47800 2005-08-16  Bruno Haible  <bruno@clisp.org>
47801
47802         * lib/strcase.h (strcasecmp): Add note in comments.
47803         * lib/strncasecmp.c: Use code from strcasecmp.c.
47804         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
47805         (strcasecmp): Work correctly in multibyte locales.
47806
47807 2005-08-16  Bruno Haible  <bruno@clisp.org>
47808
47809         * lib/mbiter.h: New file.
47810
47811 2005-08-16  Bruno Haible  <bruno@clisp.org>
47812
47813         * lib/mbfile.h: New file.
47814
47815 2005-08-16  Bruno Haible  <bruno@clisp.org>
47816
47817         * lib/mbchar.h: New file.
47818         * lib/mbchar.c: New file.
47819
47820 2005-08-16  Bruno Haible  <bruno@clisp.org>
47821
47822         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
47823         the valid ones. Makes the comparison operations transitive:
47824         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
47825         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
47826
47827 2005-08-15  Simon Josefsson  <jas@extundo.com>
47828
47829         * modules/ssize_t (License): Change to 'unlimited'.
47830
47831         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
47832
47833 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47834
47835         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
47836         Add comments for each pending glibc patch.
47837
47838 2005-08-15  Bruno Haible  <bruno@clisp.org>
47839
47840         * lib/regex.h (__restrict_arr): Don't define to __restrict if
47841         __cplusplus is defined.
47842
47843 2005-08-14  Jim Meyering  <jim@meyering.net>
47844
47845         Sync from coreutils.
47846
47847         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
47848         Use the hash-table-based cycle-detection code not just when
47849         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
47850         Reported by James Youngman in
47851         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
47852         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
47853         FTS_TIGHT_CYCLE_CHECK.
47854         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
47855         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
47856         once again.
47857         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
47858         * lib/fts.c (fd_safer): Remove decl.
47859         Include fcntl--.h rather than unistd-safer.h
47860         (fts_safe_changedir): Don't call fd_safer; no longer needed
47861         now that we include fcntl--.h.
47862
47863 2005-08-12  Simon Josefsson  <jas@extundo.com>
47864
47865         * modules/getndelim2: Use ssize_t module.
47866         * modules/getnline: Likewise.
47867         * modules/safe-read: Likewise.
47868         * modules/xreadlink: Likewise.
47869
47870         * modules/ssize_t: New file.
47871
47872 2005-08-12  Simon Josefsson  <jas@extundo.com>
47873
47874         * m4/readline.m4: Look for termcap, curses or ncurses if required.
47875
47876 2005-08-12  Simon Josefsson  <jas@extundo.com>
47877
47878         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47879         ssize_t.
47880
47881 2005-08-12  Simon Josefsson  <jas@extundo.com>
47882
47883         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
47884         readline, getdelim and check_version.
47885         (Support for systems lacking ISO C 99: Sizes of integer types):
47886         Add size_max.
47887
47888 2005-08-12  Bruno Haible  <bruno@clisp.org>
47889
47890         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
47891
47892 2005-08-11  Simon Josefsson  <jas@extundo.com>
47893
47894         * modules/readline: New file.
47895
47896         * modules/strnlen (Files): Add strnlen.h.
47897
47898 2005-08-11  Simon Josefsson  <jas@extundo.com>
47899
47900         * m4/readline.m4: New file.
47901
47902 2005-08-11  Simon Josefsson  <jas@extundo.com>
47903
47904         * lib/readline.h, readline.c: New file.
47905
47906 2005-08-11  Simon Josefsson  <jas@extundo.com>
47907
47908         * doc/gnulib.texi (Initial import, Finishing touches): Mention
47909         gl_AVOID.
47910
47911 2005-08-11  Bruno Haible  <bruno@clisp.org>
47912
47913         * lib/strnlen.h (strnlen): Change parameter name to match comment.
47914
47915 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
47916
47917         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
47918
47919 2005-08-10  Simon Josefsson  <jas@extundo.com>
47920
47921         * tests/test-iconvme.c: New file.
47922
47923 2005-08-10  Simon Josefsson  <jas@extundo.com>
47924
47925         * m4/strnlen.m4: New file.
47926
47927         * m4/strndup.m4: Don't check for strnlen declaration, done in
47928         strnlen.m4.
47929
47930 2005-08-10  Simon Josefsson  <jas@extundo.com>
47931
47932         * lib/strndup.c: Use strnlen.h.
47933
47934         * lib/strnlen.h: New file.
47935
47936 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47937
47938         * README: Typos.
47939
47940 2005-08-02  Simon Josefsson  <jas@extundo.com>
47941
47942         * modules/readline: New file.
47943
47944 2005-08-02  Simon Josefsson  <jas@extundo.com>
47945
47946         * modules/getdelim: New file.
47947
47948         * modules/getline: Rewrite, don't use getndelim2.
47949
47950 2005-08-02  Simon Josefsson  <jas@extundo.com>
47951
47952         * m4/getline.m4: Separate out getdelim stuff into separate module.
47953
47954         * m4/getdelim.m4: New file.
47955
47956 2005-08-02  Simon Josefsson  <jas@extundo.com>
47957
47958         * lib/getline.h, getline.c: Rewrite.
47959
47960         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
47961
47962 2005-07-31  Bruno Haible  <bruno@clisp.org>
47963
47964         * lib/lock.h (gl_lock_initializer): New macro.
47965         (gl_lock_define_initialized): Use it.
47966         (gl_rwlock_initializer): New macro.
47967         (gl_rwlock_define_initialized): Use it.
47968         (gl_recursive_lock_initializer): New macro.
47969         (gl_recursive_lock_define_initialized): Use it.
47970
47971 2005-07-30  Karl Berry  <karl@gnu.org>
47972
47973         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
47974         Report from Ben Pfaff, regarding getopt.
47975
47976 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
47977
47978         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
47979         normal way.
47980         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
47981         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
47982         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
47983         (gl_GETOPT): Use the new macros.  Most of the implementation
47984         is moved to the new macros.  This is for programs like Emacs
47985         that don't want all the functionality of gl_GETOPT.
47986
47987 2005-07-26  Bruno Haible  <bruno@clisp.org>
47988
47989         * m4/lock.m4: Update from GNU gettext.
47990
47991 2005-07-26  Bruno Haible  <bruno@clisp.org>
47992
47993         * lib/lock.h: Update from GNU gettext.
47994         * lib/lock.c: Update from GNU gettext.
47995
47996 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
47997
47998         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
47999         obsolescent AC_TRY_RUN.  Include the default includes files, for
48000         'exit'.
48001
48002 2005-07-24  Bruno Haible  <bruno@clisp.org>
48003
48004         * modules/visibility: New file.
48005         * MODULES.html.sh (Misc): Add visibility.
48006
48007 2005-07-24  Bruno Haible  <bruno@clisp.org>
48008
48009         * m4/visibility.m4: New file.
48010
48011 2005-07-24  Bruno Haible  <bruno@clisp.org>
48012
48013         * doc/visibility.texi: New file.
48014
48015 2005-07-22  Bruno Haible  <bruno@clisp.org>
48016
48017         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
48018         $(ALLOCA_H), redundant through BUILT_SOURCES.
48019         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
48020         redundant through BUILT_SOURCES.
48021         * modules/byteswap (Makefile.am): Remove explicit dependency on
48022         $(BYTESWAP_H), redundant through BUILT_SOURCES.
48023         * modules/fnmatch (Makefile.am): Remove explicit dependency on
48024         $(FNMATCH_H), redundant through BUILT_SOURCES.
48025         * modules/getopt (Makefile.am): Remove explicit dependency on
48026         $(GETOPT_H), redundant through BUILT_SOURCES.
48027         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
48028         redundant through BUILT_SOURCES.
48029         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
48030         redundant through BUILT_SOURCES.
48031         * modules/stdbool (Makefile.am): Remove explicit dependency on
48032         $(STDBOOL_H), redundant through BUILT_SOURCES.
48033         * modules/stdint (Makefile.am): Remove explicit dependency on
48034         $(STDINT_H), redundant through BUILT_SOURCES.
48035         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
48036         Remove explicit dependency on $(SYSEXITS_H).
48037         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
48038
48039 2005-07-18  Simon Josefsson  <jas@extundo.com>
48040
48041         * lib/check-version.c (check_version): Accept identical versions too.
48042
48043 2005-07-18  Bruno Haible  <bruno@clisp.org>
48044
48045         * modules/lock: New file.
48046         * MODULES.html.sh (Multithreading): New section.
48047
48048 2005-07-18  Bruno Haible  <bruno@clisp.org>
48049
48050         * m4/lock.m4: New file, from GNU gettext.
48051
48052 2005-07-18  Bruno Haible  <bruno@clisp.org>
48053
48054         * lib/lock.h: New file, from GNU gettext.
48055         * lib/lock.c: New file, from GNU gettext.
48056
48057 2005-07-18  Bruno Haible  <bruno@clisp.org>
48058
48059         * lib/lock.h (gl_once_t): New type.
48060         (gl_once_define, gl_once): New macros.
48061         * lib/lock.c (fresh_once): New variable.
48062         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
48063         functions.
48064
48065 2005-07-16  Simon Josefsson  <jas@extundo.com>
48066
48067         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
48068         workaround, suggested by Bruno.
48069
48070 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
48071
48072         * modules/xalloc (Depends-on): Add xalloc-die.
48073         * modules/xvasprintf (Depends-on): Add xalloc-die.
48074
48075 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
48076
48077         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
48078         with a minor change.
48079
48080 2005-07-15  Bruno Haible  <bruno@clisp.org>
48081
48082         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
48083         When using lib/poll.c, define poll as rpl_poll.
48084
48085 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
48086
48087         * modules/argp (Depends-on): Remove unlocked-io.
48088
48089 2005-07-14  Derek Price  <derek@ximbiot.com>
48090
48091         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
48092         for glob symlink bug.
48093
48094 2005-07-14  Bruno Haible  <bruno@clisp.org>
48095
48096         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
48097         Instead, test for *_unlocked function declarations directly.
48098
48099 2005-07-11  Simon Josefsson  <jas@extundo.com>
48100
48101         * modules/size_max: New file.
48102
48103         * modules/xsize: Depend on size_max module for size_max.m4.
48104
48105 2005-07-11  Simon Josefsson  <jas@extundo.com>
48106
48107         * lib/size_max.h: New file.
48108
48109 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
48110
48111         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
48112         copyright symbol and the year.
48113         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
48114         (version_etc_va): Use parameterized copyright notice.
48115         Reword to conform to the current GNU coding standards.
48116
48117 2005-07-11  Karl Berry  <karl@gnu.org>
48118
48119         * doc/gnulib.texi (Quoting): new node.
48120         (Initial import): more info, from Patrice.
48121
48122 2005-07-11  Bruno Haible  <bruno@clisp.org>
48123
48124         * gnulib-tool (func_usage): Document option --avoid.
48125         (Command line options): Handle --avoid.
48126         (func_acceptable): New function.
48127         (func_modules_transitive_closure): Use it.
48128
48129 2005-07-11  Bruno Haible  <bruno@clisp.org>
48130
48131         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
48132         Reported by Jim Meyering.
48133
48134 2005-07-10  Bruno Haible  <bruno@clisp.org>
48135
48136         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
48137         Needed when size_t is smaller than 'unsigned int'.
48138         Reported by Paul Eggert.
48139
48140 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48141
48142         * modules/argp (Depends-on): Add unlocked-io
48143
48144 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48145
48146         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
48147         block of defines.
48148
48149 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
48150
48151         * config/srclist.txt: Comment out regcomp.c, since we have a porting
48152         fix now.
48153
48154 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
48155         and Paul Eggert  <eggert@cs.ucla.edu>
48156
48157         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
48158         in wint_t, not wchar_t.  Remove now-unnecessary cast.
48159
48160 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48161
48162         * modules/regex (Files): Add lib/regex_internal.c,
48163         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
48164         (Depends-on): Add extensions.
48165         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
48166
48167 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48168
48169         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
48170         pathconf.
48171         * m4/same.m4 (gl_SAME): Likewise.
48172         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
48173
48174         * m4/regex.m4: Adjust to new libc regex implementation.
48175         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
48176         all the .c and .h parts of (the new) regex.
48177         Quote the m4 stuff better.
48178         Check for RE_ICASE bug of old gnulib.
48179         Check for REG_STARTEND of recent libc.
48180         Rename local variables from jm_* to gl_*.
48181         Quote operand of "test -f".
48182         Say "recent enough" version of libc, not "version 2".
48183         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
48184         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
48185         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
48186         Remove check for btowc, isascii.
48187         Require AM_LANGINFO_CODESET.
48188
48189 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48190
48191         * lib/regex.c, regex.h: Sync from libc.
48192         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
48193         * lib/regexec.c:
48194         New files, synced from libc, except that regex_internal.h
48195         currently has a small porting fix.
48196
48197 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48198
48199         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
48200         regex_internal.c, regexec.c.
48201         Add regex_internal.h too, but as a comment, since the libc version
48202         is currently broken in gnulib mode.
48203
48204 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
48205
48206         Support programs like Emacs that use gnulib but not gettext.
48207         * MODULES.html.sh (Internationalization functions): Add gettext-h.
48208         * modules/gettext-h: New file.
48209         * modules/gettext (Files): Remove lib/gettext.h.
48210         (Depends-on): Add gettext-h.
48211         (Makefile.am): Remove lib_SOURCES.
48212         * modules/argmatch, modules/c-stack, modules/closeout:
48213         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
48214         * modules/execute, modules/file-type, modules/getaddrinfo:
48215         * modules/getopt, modules/human, modules/javacomp:
48216         * modules/javaexec, modules/mkdir-p, modules/obstack:
48217         * modules/openat, modules/pagealign_alloc, modules/pipe:
48218         * modules/quotearg, modules/regex, modules/rpmatch:
48219         * modules/unicodeio, modules/userspec, modules/version-etc:
48220         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
48221         * modules/xsetenv:
48222         Depend on gettext-h, not gettext.
48223
48224 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
48225
48226         * gnulib-tool (func_import): Add support for 'public domain' license.
48227         * modules/alloca, modules/atexit, modules/memmove:
48228         Now public domain, not GPL.
48229         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
48230         * modules/realloc, modules/strerror, modules/strtod:
48231         Now LGPL, not GPL.
48232
48233 2005-07-05  Bruno Haible  <bruno@clisp.org>
48234
48235         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
48236         autoconf CVS. Needed for mingw.
48237
48238 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
48239
48240         Remove the dependency of the strftime module on the tzset module.
48241         * modules/strftime (Depends-on): Remove dependency on tzset.
48242
48243 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
48244
48245         Remove the dependency of the strftime module on the tzset module.
48246         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
48247         gl_FUNC_TZSET_CLOBBER.
48248
48249 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
48250
48251         Remove the dependency of the strftime module on the tzset module.
48252         * lib/strftime.c (my_strftime)
48253         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
48254         Copy the input structure, to work around some of the bug with
48255         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
48256         Solaris releases, you should also use the tzset module, but we won't
48257         require it as a dependency any more since we don't want LGPLed code
48258         to depend on GPLed code.
48259
48260 2005-07-02  Jim Meyering  <jim@meyering.net>
48261
48262         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
48263         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
48264         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
48265         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
48266
48267 2005-07-02  Jim Meyering  <jim@meyering.net>
48268
48269         * lib/backupfile.c (backup_args): Change a `0' to NULL.
48270
48271 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
48272
48273         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
48274         declares only 'struct timespec;' (!).
48275
48276 2005-07-01  Jim Meyering  <jim@meyering.net>
48277
48278         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
48279         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
48280         * lib/save-cwd.c, tempname.c:
48281         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48282         and don't include <sys/file.h>).
48283
48284 2005-06-29  Jim Meyering  <jim@meyering.net>
48285
48286         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
48287         type name.  Use the variable name instead.
48288         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
48289         Likewise.
48290
48291 2005-06-28  Simon Josefsson  <jas@extundo.com>
48292
48293         * modules/check-version (Files): Add check-version.m4.
48294
48295 2005-06-28  Simon Josefsson  <jas@extundo.com>
48296
48297         * m4/check-version.m4: New file, suggested by Jim Meyering
48298         <jim@meyering.net>.
48299
48300 2005-06-28  Simon Josefsson  <jas@extundo.com>
48301
48302         * lib/check-version.h, lib/check-version.c: New files.
48303
48304 2005-06-28  Simon Josefsson  <jas@extundo.com>
48305
48306         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
48307         collision with global variable.  Better indentation.  Don't
48308         increment buffer pointer beyond buffer end.  Based on comments
48309         from Paul Eggert <eggert@cs.ucla.edu>.
48310
48311         * lib/base64.h: Indent.
48312
48313 2005-06-28  Simon Josefsson  <jas@extundo.com>
48314
48315         * doc/gnulib.texi (Library version handling): New section.
48316
48317 2005-06-28  Jim Meyering  <jim@meyering.net>
48318
48319         * check-module (find_included_lib_files): Hard-code another
48320         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
48321         but modules/fts-lgpl (correctly) does not list those files.
48322
48323         * modules/canonicalize (Files): Add lib/pathmax.h.
48324
48325 2005-06-25  Simon Josefsson  <jas@extundo.com>
48326
48327         * modules/check-version: New file.
48328
48329 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
48330
48331         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
48332         initializer of struct addrinfo, as an indication that we don't
48333         care how many members the structure has.
48334
48335 2005-06-24  Derek Price  <derek@ximbiot.com>
48336         and Bruno Haible  <bruno@clisp.org>
48337
48338         Remove stat module & update lstat.
48339         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
48340         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48341         * m4/stat.m4: Remove this file.
48342
48343 2005-06-24  Derek Price  <derek@ximbiot.com>
48344         and Bruno Haible  <bruno@clisp.org>
48345
48346         Remove stat module & update lstat.
48347         * lib/stat.c: Remove this file...
48348         (slash_aware_lstat): ...moving this content and its support...
48349         * lib/lstat.c (rpl_lstat): ...into here.
48350         * lib/lstat.h: New file.
48351
48352 2005-06-24  Derek Price  <derek@ximbiot.com>
48353         and Bruno Haible  <bruno@clisp.org>
48354
48355         Remove stat module & update lstat.
48356         * config/srclist.txt (libc sources): Remove stat.
48357
48358 2005-06-24  Derek Price  <derek@ximbiot.com>
48359         and Bruno Haible  <bruno@clisp.org>
48360
48361         Remove stat module & update lstat.
48362         * MODULES.html.sh (stat): Remove.
48363         * MODULES.html: Regenerated.
48364         * modules/lstat (Description): Correct function name.
48365         (Files): Add "lstat.h".
48366         (Depends-on): Remove stat, add xalloc, stat-macros.
48367         * modules/stat: Remove this file.
48368         (Include): Add "lstat.h", remove <sys/stat.h>.
48369
48370 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48371
48372         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
48373         (ranged_convert): Don't save conversion in a temporary struct.
48374         This causes a warning with GCC 4.0.0, and anyway in the typical
48375         case it's not worth the extra 100 bytes or so of code.
48376         (ranged_convert, __mktime_internal): When calling a function via a
48377         pointer P, use P () rather than (*P) (), as we now assume C89 or
48378         better.
48379
48380 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
48381
48382         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
48383         "who -r" failed to give output.  Problem reported by Tim Waugh.
48384
48385         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
48386         (xcalloc): Use it to avoid needless tests.
48387         Problem reported by Jim Meyering.
48388
48389 2005-06-20  Derek Price  <derek@ximbiot.com>
48390
48391         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
48392         unnecessary for Autoconfs > 2.59c.
48393
48394 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
48395
48396         * lib/argp.h (__option_is_short): Check upper limit of
48397         __key. Isprint() requires its argument to have the value
48398         of an unsigned char or EOF.
48399
48400 2005-06-16  Jim Meyering  <jim@meyering.net>
48401
48402         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
48403         when either N or S is zero.
48404
48405 2005-06-16  Derek Price  <derek@ximbiot.com>
48406
48407         * m4/bison.m4: Declare YACC & YFLAGS precious.
48408
48409 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
48410
48411         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
48412         multibyte string or pattern, fall back on unibyte matching.
48413         Problem reported by James Youngman.
48414
48415 2005-06-08  Bruno Haible  <bruno@clisp.org>
48416
48417         * modules/csharpcomp: New file.
48418         * MODULES.html.sh (C#): Add csharpcomp.
48419
48420 2005-06-08  Bruno Haible  <bruno@clisp.org>
48421
48422         * m4/csharpcomp.m4: New file, from GNU gettext.
48423
48424 2005-06-08  Bruno Haible  <bruno@clisp.org>
48425
48426         * lib/csharpcomp.h: New file, from GNU gettext.
48427         * lib/csharpcomp.c: New file, from GNU gettext.
48428         * lib/csharpcomp.sh.in: New file, from GNU gettext.
48429
48430 2005-06-08  Bruno Haible  <bruno@clisp.org>
48431
48432         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
48433         warning on mingw.
48434
48435 2005-06-07  Derek Price  <derek@ximbiot.com>
48436
48437         Sync from CVS.
48438         * lib/glob_.h: Indent nested #ifdef.
48439
48440 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
48441
48442         Sync from coreutils.
48443         Use "file name" when talking about file names, instead of "filename"
48444         or "path", as per the GNU coding standards.
48445         * lib/mkdir-p.c: Renamed from makepath.c.
48446         (make_dir_parents): Renamed from make_path.  All callers changed.
48447         * lib/mkdir-p.h: Likewise.  All includers changed.
48448         * lib/filenamecat.c: Renamed from path-concat.c.
48449         (file_name_concat): Renamed from path_concat.  All callers changed.
48450         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
48451         * lib/filenamecat.h: Likewise.  All includers changed.
48452         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
48453         in comments or local variable names.
48454         * lib/basename.c: Likewise.
48455         * lib/canonicalize.c, canonicalize.h: Likewise.
48456         * lib/dirname.c, dirname.h: Likewise.
48457         * lib/euidaccess.c: Likewise.
48458         * lib/exclude.c: Likewise
48459         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
48460         * lib/fsusage.c, fsuage.h: Likewise.
48461         * lib/fts.c, fts_.h: Likewise.
48462         * lib/getcwd.c: Likewise.
48463         * lib/getloadavg.c: Likewise.
48464         * lib/mkstemp.c: Likewise.
48465         * lib/mountlist.c, mountlist.h: Likewise.
48466         * lib/openat.c, openat.h: Likewise.
48467         * lib/readlink-stub.c: Likewise.
48468         * lib/readutmp.c, readutmp.h: Likewise.
48469         * lib/rename.c: Likewise.
48470         * lib/rmdir.c: Likewise.
48471         * lib/same.c: Likewise.
48472         * lib/savedir.c: Likewise.
48473         * lib/stripslash.c: Likewise.
48474         * lib/tempname.c: Likewise.
48475         * lib/xreadlink.c: Likewise.
48476         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
48477         All uses changed.
48478         * lib/exclude.h: Likewise.
48479
48480         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
48481         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48482         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
48483         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48484         * lib/pathmax.h: Include <limits.h> unconditionally, since other
48485         files have been getting away with it for years (MORE/BSD 4.3
48486         is extinct now).
48487         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
48488         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48489
48490         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
48491         Define to 256, not 255, as per modern POSIX.
48492
48493 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
48494
48495         Sync from coreutils.
48496         Use "file name" when talking about file names, instead of "filename"
48497         or "path", as per the GNU coding standards.
48498         * MODULES.html.sh: mkdir-p renamed from makepath.
48499         filenamecat renamed from path-concat.
48500         * modules/filenamecat: Renamed from modules/path-concat.
48501         (Files): filenamecat.h and filenamecat.c renamed from
48502         path-concat.h and path-concat.c.
48503         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
48504         (Include): filenamecat.h, not path-concat.h.
48505         * modules/mkdir-p: Renamed from modules/makepath.
48506         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
48507         makepath.c.
48508         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
48509         (Include): mkdir-p.h, not makepath.h.
48510
48511 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
48512
48513         Sync from coreutils.
48514         * m4/mkdir-p.m4: Renamed from makepath.m4.
48515         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
48516         Rename files from makepath.c to mkdir-p.c, and from
48517         makepath.h to mkdir-p.h.
48518         * m4/filenamecat.m4: Renamed from path-concat.m4.
48519         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
48520         Rename files from path-concat.c to filenamecat.c,
48521         and from path-concat.h to filenamecat.h.
48522         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
48523         "file name" in local variables or comments.
48524         * m4/rename.m4: Likewise.
48525
48526 2005-06-01  Bruno Haible  <bruno@clisp.org>
48527
48528         * modules/csharpexec: New file.
48529         * MODULES.html.sh (C#): New section.
48530
48531 2005-06-01  Bruno Haible  <bruno@clisp.org>
48532
48533         * m4/csharp.m4: New file, from GNU gettext.
48534         * m4/csharpexec.m4: New file, from GNU gettext.
48535
48536 2005-06-01  Bruno Haible  <bruno@clisp.org>
48537
48538         * lib/csharpexec.h: New file, from GNU gettext.
48539         * lib/csharpexec.c: New file, from GNU gettext.
48540         * lib/csharpexec.sh.in: New file, from GNU gettext.
48541
48542 2005-05-31  Derek Price  <derek@ximbiot.com>
48543             Paul Eggert  <eggert@cs.ucla.edu>
48544
48545         Sync from cvs.
48546         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
48547
48548 2005-05-31  Derek Price  <derek@ximbiot.com>
48549             Paul Eggert  <eggert@cs.ucla.edu>
48550
48551         Sync from cvs.
48552         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
48553
48554 2005-05-29  Derek Price  <derek@ximbiot.com>
48555
48556         * config/srclist.txt (glob_.h, glob.c): Add these files.
48557
48558 2005-05-29  Derek Price  <derek@ximbiot.com>
48559
48560         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
48561         * modules/glob: New file.
48562         * modules/getlogin_r: Add link to POSIX spec in description.
48563
48564 2005-05-29  Derek Price  <derek@ximbiot.com>
48565             Paul Eggert  <eggert@cs.ucla.edu>
48566
48567         * m4/glob.m4: New file.
48568
48569 2005-05-29  Derek Price  <derek@ximbiot.com>
48570             Paul Eggert  <eggert@cs.ucla.edu>
48571
48572         * lib/glob_.h, lib/glob.c: New files.
48573
48574 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
48575
48576         * modules/fts (Files): Remove m4/inttypes-pri.m4.
48577         * modules/fts-lgpl (Depends-on): Remove gettext.
48578
48579 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
48580
48581         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
48582         and don't require gt_INTTYPES_PRI.
48583
48584 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
48585
48586         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
48587
48588         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
48589         the configuration hassle isn't worth it.
48590         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
48591         (LONGEST_MODIFIER, PRIuMAX): Remove.
48592
48593 2005-05-27  Bruno Haible  <bruno@clisp.org>
48594
48595         * lib/getlogin_r.h: Remove second include of <stddef.h>.
48596
48597 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
48598
48599         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
48600         _POSIX_PTHREAD_SEMANTICS for Solaris.
48601
48602 2005-05-25  Derek Price  <derek@ximbiot.com>
48603
48604         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
48605
48606 2005-05-25  Derek Price  <derek@ximbiot.com>
48607             Paul Eggert  <eggert@cs.ucla.edu>
48608
48609         * modules/getlogin_r, m4/getlogin_r.m4: New files.
48610         * lib/getlogin_r.c, getlogin_r.h: New files.
48611
48612 2005-05-25  Bruno Haible  <bruno@clisp.org>
48613             Derek Price  <derek@ximbiot.com>
48614
48615         * lib/getlogin_r.h: Simplify API documentation.
48616
48617 2005-05-23  Derek Price  <derek@ximbiot.com>
48618
48619         * modules/minmax (Files): Add m4/minmax.m4.
48620         (configure.ac): Add gl_MINMAX.
48621
48622 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
48623
48624         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
48625         so that unistd-safer.h (GPL'ed code) need not be included.
48626
48627 2005-05-22  Bruno Haible  <bruno@clisp.org>
48628
48629         * m4/minmax.m4: New file.
48630         Based on a patch by Derek Price <derek@ximbiot.com>.
48631
48632 2005-05-22  Bruno Haible  <bruno@clisp.org>
48633
48634         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
48635         (INT64_MIN): Fix definition.
48636         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
48637
48638         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
48639         NEED_SIGNED_INT_TYPES.
48640
48641         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
48642         HAVE_SYSTEM_INTTYPES.
48643
48644 2005-05-22  Bruno Haible  <bruno@clisp.org>
48645
48646         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
48647         Also include <sys/param.h> if it defines MIN, MAX.
48648         Based on a patch by Derek Price <derek@ximbiot.com>.
48649
48650 2005-05-21  Jim Meyering  <jim@meyering.net>
48651
48652         * modules/fts (Files): Add m4/inttypes-pri.m4.
48653         (Depends-on): Add lstat and remove gettext.  Alphabetize.
48654
48655 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
48656
48657         New fts module.
48658         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
48659         (setup_dir, free_dir): New functions.
48660         (enter_dir, leave_dir): Define trivial
48661         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
48662         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
48663         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
48664         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
48665         Move to fts-cycle.c.
48666         (fts_open): Use setup_dir.
48667         (fts_close): Use free_dir.
48668         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
48669         This adds a label and some gotos, but the alternatives were messier.
48670         Check for memory allocation failure when entering a dir.
48671         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
48672         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
48673         (FTS): New member fts_cycle, that is a union that contains the
48674         old active_dir_ht and cycle_state.  All uses changed to mention
48675         fts_cycle.ht and fts_cycle.state.
48676         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
48677         fts.c, with the following changes:
48678         (setup_dir, free_dir): New functions.
48679         (enter_dir): Now returns bool.  Return true if successful, false
48680         if memory exhausted.  All callers changed.
48681         Do not bother partly cleaning up on
48682         memory allocation failure; that is free_dir's job.
48683         However, free ad if hash_insert fails, to avoid memory leak.
48684         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
48685         fts->fts_options to see which union member to use.
48686
48687 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
48688
48689         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
48690         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
48691
48692 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
48693
48694         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
48695
48696 2005-05-20  Jim Meyering  <jim@meyering.net>
48697
48698         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
48699         Now a macro, to pacify GCC.
48700
48701 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
48702
48703         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
48704         of -1.
48705
48706 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
48707
48708         * lib/chown.c (rpl_chown): Return -1 on failure.
48709
48710 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
48711
48712         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
48713         Don't check for stddef.h.
48714         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
48715         don't use its results.
48716         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
48717         since we include them unconditionally.  Don't require
48718         AM_STDBOOL_H, since stdbool is a prerequisite.
48719         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
48720         since we assume C89 or better.
48721         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
48722         as we don't use their results.
48723         Don't check for fchdir, memmove, memset, strrchr, as we use
48724         them unconditionally.
48725         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
48726         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
48727
48728 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
48729
48730         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
48731         Include <stddef.h> unconditionally, since we assume C89 now.
48732         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
48733         * lib/fts.c: Include fts_.h first, to check interface.
48734         Do not include intprops.h; no longer needed.
48735         Include cycle-check.h and hash.h, since fts_.h no longer does.
48736         Remove unnecessary casts of closedir to void.
48737         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
48738         decide whether to decrement nlinks.
48739         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
48740         (FTS): Use struct hash_table * instead of Hash_table, so that
48741         we no longer need to include hash.h here.
48742
48743 2005-05-18  Jim Meyering  <jim@meyering.net>
48744
48745         * modules/dirfd (License): Change to LGPL.  Most of the code
48746         is already in the public domain.
48747
48748 2005-05-18  Jim Meyering  <jim@meyering.net>
48749
48750         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
48751         Reported by Yoann Vandoorselaere.
48752
48753 2005-05-17  Jim Meyering  <jim@meyering.net>
48754
48755         * m4/fts.m4: New file, from coreutils.
48756
48757 2005-05-17  Jim Meyering  <jim@meyering.net>
48758
48759         * lib/fts.c, lib/fts_.h: New files, from coreutils.
48760
48761 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
48762
48763         Sync from coreutils.
48764         * m4/unlinkdir.m4: New file.
48765
48766 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
48767
48768         Sync from coreutils.
48769         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
48770         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
48771         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
48772         White space changes only.
48773         * lib/makepath.c (make_path): Port to hosts where leading "//" is
48774         special.
48775         * lib/yesno.c: Include getline.h, not ctype.h.
48776         (yesno): Don't remove leading white space; POSIX doesn't allow it.
48777         Use getline to remove arbitrary restriction on response length.
48778
48779 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
48780
48781         * config/srclist-update: Spell out "Street" in FSF postal
48782         mail address; this is the style the FSF seems to prefer.
48783
48784         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
48785         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
48786         this updates FSF postal mail address.
48787
48788         Sync from coreutils.
48789         * modules/unlinkdir: New file.
48790         * modules/yesno (Depends-on): Add getline.
48791         * MODULES.html.sh (File system functions): Add unlinkdir.
48792
48793 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
48794
48795         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
48796         lib/strsep.h:
48797         Change the initial comment to refer to GPL, not LGPL.
48798         gnulib-tool will change it to LGPL as needed.
48799
48800         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
48801         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
48802         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
48803         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
48804         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
48805         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
48806         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
48807         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
48808         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
48809         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
48810         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
48811         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
48812         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
48813         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
48814         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
48815         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
48816         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
48817         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
48818         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
48819         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
48820         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
48821         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
48822         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
48823         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
48824         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
48825         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
48826         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
48827         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
48828         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
48829         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
48830         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
48831         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
48832         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
48833         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
48834         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
48835         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
48836         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
48837         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
48838         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
48839         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
48840         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
48841         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
48842         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
48843         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
48844         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
48845         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
48846         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
48847         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
48848         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
48849         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
48850         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
48851         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
48852         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
48853         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
48854         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
48855         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
48856         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
48857         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
48858         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
48859         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
48860         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
48861         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
48862         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
48863         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
48864         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
48865         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
48866         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
48867         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
48868         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
48869         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
48870         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
48871         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
48872         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
48873         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
48874         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
48875         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
48876         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
48877         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
48878         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
48879         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
48880         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
48881         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
48882         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
48883         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
48884         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
48885         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
48886         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
48887         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
48888         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
48889         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
48890         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
48891         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
48892         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
48893         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
48894         lib/yesno.c, lib/yesno.h:
48895         Update FSF postal mail address.
48896
48897 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
48898
48899         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
48900         tests/test-memmem.c, tests/test-stpncpy.c:
48901         Update FSF postal mail address.
48902
48903 2005-05-13  Bruno Haible  <bruno@clisp.org>
48904
48905         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
48906         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
48907         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
48908         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
48909         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
48910         Add support for 64-bit integers in the MSVC compiler.
48911
48912 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
48913
48914         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
48915
48916 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
48917
48918         * gnulib-tool (func_import): Sort and uniquify recommended includes.
48919
48920 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
48921
48922         * doc/getdate.texi (General date syntax): Don't say that date
48923         date --iso-8601=ns generates acceptable dates; it doesn't yet.
48924         Problem reported by Nic Ferrier.
48925
48926 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48927
48928         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
48929         specified in ai_socktype. Fix invalid ai_protocol
48930         check. ai_protocol is usually set to 0 or depending on
48931         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
48932         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
48933         ai_socktype / ai_protocol in the returned addrinfo structure.
48934
48935 2005-05-10  Simon Josefsson  <jas@extundo.com>
48936
48937         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
48938         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48939
48940 2005-05-10  Karl Berry  <karl@gnu.org>
48941
48942         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
48943         (from http://www.gnu.org/licenses).
48944         * doc/COPYING.LIB: also rename to COPYING.LESSER.
48945         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
48946         fdl.texi suffices.
48947
48948 2005-05-10  Karl Berry  <karl@gnu.org>
48949
48950         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
48951         (COPYING.DOC): remove.
48952
48953         * config/srclist-update: new FSF address.
48954
48955 2005-05-10  Derek Price  <derek@ximbiot.com>
48956
48957         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
48958         possible.
48959
48960 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48961             Bruno Haible  <bruno@clisp.org>
48962
48963         * modules/inet_ntop: New file.
48964         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48965         inet_ntop.
48966
48967 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48968             Bruno Haible  <bruno@clisp.org>
48969
48970         * m4/inet_ntop.m4: New file.
48971
48972 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48973             Bruno Haible  <bruno@clisp.org>
48974
48975         * lib/inet_ntop.h: New file.
48976         * lib/inet_ntop.c: New file, from glibc with modifications.
48977
48978 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
48979
48980         * modules/time_r (License): Change to LGPL.
48981         * modules/extensions (License): Change to LGPL.  Actually,
48982         the license is more permissive than that, but currently gnulib-tool
48983         doesn't know how to handle more-permissive licenses.
48984
48985         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
48986         Problem reported by Dave Love.
48987
48988 2005-05-08  Jim Meyering  <jim@meyering.net>
48989
48990         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
48991         blank.
48992
48993 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
48994
48995         * modules/argmatch (Depends-on): Add stdbool.
48996         * modules/backupfile (Depends-on): Likewise.
48997         * modules/chdir-long (Depends-on): Likewise.
48998         * modules/closeout (Depends-on): Likewise.
48999         * modules/cycle-check (Depends-on): Likewise.
49000         * modules/dirname (Depends-on): Likewise.
49001         * modules/fnmatch (Depends-on): Likewise.
49002         * modules/fsusage (Depends-on): Likewise.
49003         * modules/fwriteerror (Depends-on): Likewise.
49004         * modules/getcwd (Depends-on): Likewise.
49005         * modules/getloadavg (Depends-on): Likewise.
49006         * modules/hard-locale (Depends-on): Likewise.
49007         * modules/makepath (Depends-on): Likewise.
49008         * modules/mountlist (Depends-on): Likewise.
49009         * modules/nanosleep (Depends-on): Likewise.
49010         * modules/posixtm (Depends-on): Likewise.
49011         * modules/quotearg (Depends-on): Likewise.
49012         * modules/readtokens (Depends-on): Likewise.
49013         * modules/readtokens0 (Depends-on): Likewise.
49014         * modules/readutmp (Depends-on): Likewise.
49015         * modules/save-cwd (Depends-on): Likewise.
49016         * modules/strftime (Depends-on): Likewise.
49017         * modules/userspec (Depends-on): Likewise.
49018         * modules/utimecmp (Depends-on): Likewise.
49019         * modules/xgetcwd (Depends-on): Likewise.
49020         * modules/xnanosleep (Depends-on): Likewise.
49021         * modules/xstrtod (Depends-on): Likewise.
49022         * modules/yesno (Depends-on): Likewise.
49023
49024 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
49025
49026         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
49027         needless checks.
49028
49029 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
49030
49031         Merge from coreutils.  Among other things,
49032         add bulletproofing for cases where stdin, stdout, or stderr are closed.
49033         * lib/fd-safer.c: New file.
49034         * lib/fcntl-safer.h, open-safer.c: Remove.
49035         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
49036         * lib/dup-safer.c: Include unistd-safer.h first.
49037         Don't include errno.h.
49038         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
49039         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
49040         * lib/file-type.c: Rely on file-type.h change.
49041         * lib/getloadavg.c: Include unistd-safer.h.
49042         (getloadavg): Use safer open.
49043         * lib/getusershell.c: Include "stdio-safer.h".
49044         (getusershell): Use safer fopen.
49045         * lib/long-options.c (long_options): Use NULL rather than 0.
49046         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
49047         'free'.
49048         * lib/modechange.c: Likewise.
49049         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
49050         (MODE_DONE): New constant.
49051         (struct mode_change): Remove 'next' member.
49052         (make_node_op_equals): New function; like the old one of the
49053         same name, except it allocates an array.
49054         (mode_compile, mode_create_from_ref): Use it.
49055         (mode_compile): Allocate result as an array, not a linked list.
49056         Parse octal string ourself, so that we catch mistakes like "+0".
49057         (mode_adjust): Arg is an array, not a linked list.
49058         * lib/modechange.c: Include stat-macros.h, xalloc.h.
49059         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
49060         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
49061         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
49062         Remove.  This is now stat-macros.h's job.
49063         (talloc): Remove.  All callers replaced by xalloc, so that
49064         our invokers don't have to worry about reporting memory failures.
49065         (make_node_op_equals): Remove.
49066         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
49067         New constants.
49068         (struct mode_change): Moved here from modechange.h.
49069         (mode_append_entry): Remove.
49070         (mode_compile): Remove MASKED_OPS arg, since it encouraged
49071         apps to have incorrect behavior.  Use simpler algorithm for head
49072         and tail.  Don't futz with umask; that's now the job of mode_adjust.
49073         Detect more invalid usages rather than having somewhat-random behavior.
49074         Don't insert an "a=" action, as that leads to incorrect behavior.
49075         (mode_compile, mode_create_from_ref): Return NULL on error instead
49076         of an enum, since now there's only one way to have an error.  All
49077         callers changed.
49078         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
49079         at the correct time.  Simplify calculation of "+u" and its ilk.
49080         Don't mishandle "+X".
49081         (mode_free): Remove "register" and localize decls.
49082         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
49083         (struct mode_change): Move to modechange.c; callers don't
49084         need to see this stuff.
49085         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
49086         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
49087         (mode_change, mode_adjust): Reflect the new signatures noted above.
49088         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
49089         that might redefine system include files.
49090         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
49091         (my_usleep): Use NULL rather than (void *) 0.
49092         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
49093         Use siginterrupt to specify that system calls should be interrupted.
49094         (rpl_nanosleep): Move initialization of suspended closer to call of
49095         my_usleep.
49096         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
49097         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
49098         (desirable_utmp_entry): New function.
49099         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
49100         using x2nrealloc, to simplify logic.
49101         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
49102         size calculation.  Do not assume utmp file is a regular file.
49103         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
49104         (READ_UTMP_CHECK_PIDS): New constant.
49105         * lib/save-cwd.c: Include unistd-safer.h.
49106         (save_cwd): Use fd_safer.
49107         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
49108         [!_LIBC] Include "stat-macros.h" instead.
49109         * lib/unistd-safer.h (fd_safer): New decl.
49110
49111 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
49112
49113         * modules/getloadavg (Depends-on): Add unistd-safer.
49114         * modules/getusershell (Depends-on): Add stdio-safer.
49115         * modules/lstat (Depends-on): Remove xalloc.
49116         * modules/mkstemp (Depends-on): Add stat-macros.
49117         * modules/modechange (Depends-on): Remove xstrtol.
49118         Add stat-macros, xalloc.
49119         * modules/save-cwd (Depends-on): Add unistd-safer.
49120         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
49121         * modules/unistd-safer (Files): Add lib/fd-safer.c
49122         (Makefile.am): Remove lib_SOURCES.
49123
49124         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
49125         Remove fcntl-safer; unistd-safer supersedes it.
49126
49127 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
49128
49129         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
49130         AC_HEADER_STAT.
49131         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
49132         (gl_PREREQ_CHOWN): Remove.
49133         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
49134         it.  Don't require AC_HEADER_STAT.
49135         (gl_PREREQ_LSTAT): Remove.
49136         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
49137         Don't require AC_HEADER_STAT.
49138         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
49139         (gl_PREREQ_RMDIR): Remove.
49140         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
49141         mention stat-macros.h or AC_HEADER_STAT, since we'll make
49142         the stat-macros module a prerequisite.
49143         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
49144         * m4/filemode.m4 (gl_FILEMODE): Likewise.
49145         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
49146         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
49147         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
49148         variable names.
49149         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
49150         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
49151         variable prefixes.
49152         * m4/fcntl-safer.m4: Remove.
49153         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
49154         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
49155         Invoke gl_PREREQ_FD_SAFER.
49156         (gl_PREREQ_FD_SAFER): New macro.
49157         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
49158         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
49159         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
49160         Remove duplicate call to AC_LIBOBJ(readutmp).
49161         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
49162
49163         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
49164         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
49165
49166 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
49167
49168         * MODULES.html.sh (Misc): Add byteswap.
49169
49170 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49171
49172         * modules/getcwd (Depends-on): Add extensions.
49173         * modules/openat (Depends-on): Likewise.
49174
49175 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49176
49177         * modules/byteswap: New file.
49178
49179 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49180
49181         * m4/byteswap.m4: New file.
49182
49183 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49184
49185         * lib/byteswap_.h: New file.
49186
49187 2005-04-25  Karl Berry  <karl@gnu.org>
49188
49189         * m4/gettext.m4: Update from GNU gettext 0.14.4.
49190
49191 2005-04-25  Albert Chin  <china@thewrittenword.com>
49192
49193         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
49194         Toolkit C bug.
49195
49196 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
49197
49198         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
49199         (func_ln_if_changed) Remove forcibly for no error message
49200         in case file does not exist.
49201
49202 2005-04-19  Simon Josefsson  <jas@extundo.com>
49203
49204         * gnulib-tool (Options): Make --symlink mean --symbolic.
49205
49206 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
49207
49208         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
49209
49210 2005-04-16  Simon Josefsson  <jas@extundo.com>
49211
49212         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
49213
49214 2005-04-15  Simon Josefsson  <jas@extundo.com>
49215
49216         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
49217
49218 2005-04-15  Simon Josefsson  <jas@extundo.com>
49219
49220         * gnulib-tool: Rename --symlink to --symbolic.
49221
49222 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
49223
49224         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
49225         symbolic links to files instead of copying/moving.  Add --aux-dir,
49226         specifying directory relative --dir where auxiliary build tools
49227         are placed.
49228
49229 2005-04-14  Bruno Haible  <bruno@clisp.org>
49230
49231         * modules/allocsa (License): Change to LGPL.
49232         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49233
49234 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
49235
49236         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
49237         that "UTC +1 second" continues to work.  Problem reported
49238         by Dmitry V. Levin.
49239         (relunit_snumber): New rule.
49240         (relunit): Use it.
49241
49242 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
49243
49244         * lib/getdate.y (universal_time_zone_table): New constant.
49245         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
49246         universal_time_zone_table.
49247         (lookup_zone): Prefer universal_time_zone_table to
49248         local_time_zone_table, so that "GMT" time stamps are allowed in
49249         London during the summer.  Problem reported by Ian Abbott.
49250
49251 2005-04-12  Jim Meyering  <jim@meyering.net>
49252
49253         * lib/human.c (humblock): Set *options even when returning due to
49254         xstrtoumax conversion failure.  Thanks to a used-uninitialized
49255         warning from gcc-4.
49256
49257 2005-04-09  Jim Meyering  <jim@meyering.net>
49258
49259         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
49260         -Wuninitialized: initialize tm0.tm_year.
49261
49262 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
49263
49264         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
49265         count, since there's no maximum.  All uses changed.
49266         Add member dsts_seen.
49267         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
49268         not being INT_MAX.
49269         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
49270         Use pc_rels_seen to decide whther a date is absolute.
49271
49272         * lib/getdate.y (number): Don't overwrite year.
49273         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
49274         check.
49275
49276 2005-04-02  Simon Josefsson  <jas@extundo.com>
49277
49278         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
49279         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
49280
49281 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
49282
49283         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
49284         where no absolute path name can be longer than PATH_MAX.
49285
49286 2005-03-27  Jim Meyering  <jim@meyering.net>
49287
49288         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
49289
49290 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
49291
49292         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
49293         "one's complement" -> "ones' complement" in comment, as per Knuth.
49294         "value of type" -> "type or expression" in comment.
49295         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
49296
49297 2005-03-26  Jim Meyering  <jim@meyering.net>
49298
49299         Comment nits.
49300         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
49301         Correct typos: s/or/of/.
49302
49303 2005-03-26  Jim Meyering  <jim@meyering.net>
49304
49305         * modules/check-include-files: Move to ../ and rename to...
49306         * check-module: ...this.
49307
49308 2005-03-25  Jim Meyering  <jim@meyering.net>
49309
49310         * modules/xvasprintf (Files): Add xalloc.h.
49311
49312 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
49313
49314         * modules/gettext (Files): config/config.rpath ->
49315         build-aux/config.rpath
49316         * modules/iconv (Files): Likewise.
49317         Problem reported by Oskar Liljeblad.
49318
49319 2005-03-23  Jim Meyering  <jim@meyering.net>
49320
49321         * modules/check-include-files: New script to check for
49322         missing dependencies, multiple includes, etc.
49323
49324         * modules/c-strtold (Depends-on): Add xalloc.
49325         * modules/c-strtod (Depends-on): Add xalloc.
49326         * modules/hash (Depends-on): Add xalloc.
49327         (Files): Remove lib/xalloc.h.
49328
49329         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
49330         * modules/userspec (Files): Add lib/inttostr.h.
49331
49332 2005-03-23  Jim Meyering  <jim@meyering.net>
49333
49334         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
49335
49336 2005-03-22  Jim Meyering  <jim@meyering.net>
49337
49338         * modules/stat-macros: New module.
49339         * modules/canonicalize, modules/euidaccess, modules/file-type,
49340         * modules/filemode, modules/lchown, modules/makepath,
49341         * modules/rmdir, modules/stat: Depend on new stat-macros module
49342         rather than listing lib/stat-macros.h manually.
49343         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
49344
49345 2005-03-22  Jim Meyering  <jim@meyering.net>
49346
49347         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
49348
49349 2005-03-22  Bruno Haible  <bruno@clisp.org>
49350
49351         * config/srclist.txt: Replace target directory 'config' with
49352         'build-aux'.
49353         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
49354         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
49355         ../build-aux/.
49356
49357 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
49358
49359         * modules/chdir-long (Depends-on): Add mempcpy.
49360
49361         * modules/acl, modules/backupfile, modules/c-strtod,
49362         modules/c-strtold, modules/canon-host, modules/canonicalize,
49363         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
49364         modules/exclude, modules/exitfail, modules/file-type,
49365         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
49366         modules/getdate, modules/getline, modules/getpagesize,
49367         modules/getpass, modules/getugroups, modules/group-member,
49368         modules/hard-locale, modules/hash, modules/human, modules/idcache,
49369         modules/inttostr, modules/long-options, modules/makepath,
49370         modules/md5, modules/memcasecmp, modules/memcoll,
49371         modules/modechange, modules/mountlist, modules/path-concat,
49372         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
49373         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
49374         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
49375         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
49376         modules/strftime, modules/strndup, modules/strverscmp,
49377         modules/timespec, modules/unlocked-io, modules/userspec,
49378         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
49379         modules/yesno:
49380         Remove lib_SOURCES line from Makefile.am section, as this is now
49381         done automatically by the corresponding Autoconf macro.
49382
49383 2005-03-21  Jim Meyering  <jim@meyering.net>
49384
49385         Changes imported from coreutils.
49386
49387         * lib/cycle-check.c: Don't include xalloc.h.
49388
49389         * lib/path-concat.c: Don't include assert.h.
49390         (path_concat): Remove assertion that would have triggered
49391         for ABASE starting with more than one slash.
49392         Reported by Andreas Schwab.
49393
49394         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
49395         properly when ABASE is an absolute file name.
49396         Correct the description of this function.
49397         Include <assert.h>.
49398         Add an assertion and a test driver.
49399         This fixes a bug introduced on 2004-07-02.
49400         Andreas Schwab reported the resulting failure of cp --parents:
49401         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
49402
49403 2005-03-21  Jim Meyering  <jim@meyering.net>
49404
49405         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
49406         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
49407
49408 2005-03-21  Jim Meyering  <jim@meyering.net>
49409         and  Paul Eggert  <eggert@cs.ucla.edu>
49410
49411         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
49412         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
49413         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
49414         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
49415         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
49416         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
49417         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
49418         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
49419         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
49420         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
49421         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
49422         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
49423         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
49424         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
49425         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
49426         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
49427         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
49428         for these modules.
49429
49430 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
49431
49432         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
49433         (which shouldn't happen), generate nothing instead of returning 0
49434         immediately, so that nstrftime (NULL, ...) doesn't return 0.
49435
49436 2005-03-16  Bruno Haible  <bruno@clisp.org>
49437
49438         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
49439         HAVE_LONGLONG_64BIT.
49440
49441 2005-03-16  Bruno Haible  <bruno@clisp.org>
49442
49443         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
49444         HAVE_LONGLONG_64BIT.
49445
49446 2005-03-16  Bruno Haible  <bruno@clisp.org>
49447
49448         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
49449         HAVE_LONGLONG_64BIT.
49450
49451 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
49452
49453         * lib/strftime.c (my_strftime): Prepend space to format so that we can
49454         reliably distinguish strftime failure from empty output on POSIX
49455         hosts.
49456
49457 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
49458
49459         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
49460         (iconv_string): Don't guess a size-zero buffer, as that might cause
49461         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
49462         result would be 'too large', where 'too large' is (heuristically)
49463         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
49464         overflow concerns.  This will prevent some unwanted malloc failures
49465         when the inputs are very large.
49466
49467 2005-03-15  Karl Berry  <karl@gnu.org>
49468
49469         * config/srclist.txt (config.rpath): from gettext.
49470         * config/config.rpath: update.
49471
49472 2005-03-15  Bruno Haible  <bruno@clisp.org>
49473
49474         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
49475         to 'negate'.
49476
49477         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
49478         variable.
49479
49480         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
49481         results.
49482
49483 2005-03-14  Simon Josefsson  <jas@extundo.com>
49484
49485         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
49486         <fx@gnu.org>.
49487
49488 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
49489
49490         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
49491         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
49492         intprops.h.
49493         * lib/strtol.c: Likewise.
49494
49495 2005-03-14  Jim Meyering  <jim@meyering.net>
49496
49497         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
49498         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
49499         to be nonzero so that we (and caller) can detect the difference
49500         between a valid zero-length expansion and an error return, even
49501         when the underlying strftime fails before writing anything into
49502         that location.
49503
49504 2005-03-14  Bruno Haible  <bruno@clisp.org>
49505
49506         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
49507         Update from GNU gettext 0.14.3.
49508
49509 2005-03-10  Jim Meyering  <jim@meyering.net>
49510
49511         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
49512
49513 2005-03-10  Jim Meyering  <jim@meyering.net>
49514
49515         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
49516         so that this module works on systems without fchdir.
49517
49518 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
49519
49520         Factor int-properties macros into a single file, except for
49521         glibc-related files.
49522         * lib/intprops.h: New file.
49523         * lib/getloadavg.c: Include it instead of limits.h.
49524         (INT_STRLEN_BOUND): Remove.
49525         * lib/human.c: Include intprops.h.
49526         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
49527         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
49528         302/1000.
49529         * lib/inttostr.h: Include intprops.h instead of limits.h.
49530         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
49531         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
49532         for consistency with intprops.h.
49533         (time_t_is_integer, twos_complement_arithmetic): Use them.
49534         * lib/sig2str.h: Include <signal.h>, intprops.h.
49535         (INT_STRLEN_BOUND): Remove.
49536         * lib/strftime.c (TYPE_SIGNED): Remove.
49537         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
49538         * lib/strtol.c: Adjust comments to match intprops.h.
49539         * lib/userspec.c: Include intprops.h.
49540         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
49541         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
49542         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
49543         instead of rolling our own expressions.
49544         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
49545
49546         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
49547         instead of int.
49548         (my_strftime): Do not mishandle years close to INT_MAX, by doing
49549         the right thing even if adding 1900 would overflow.  Similarly
49550         for tm_mon + 1 and tm_yday + 1.
49551         Make %Y always equivalent to %C%y, and similarly for %G and %g.
49552         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
49553         (DO_SIGNED_NUMBER): New macro.
49554         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
49555
49556 2005-03-07  Bruno Haible  <bruno@clisp.org>
49557
49558         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
49559
49560 2005-03-07  Bruno Haible  <bruno@clisp.org>
49561
49562         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
49563
49564 2005-03-04  Derek R. Price  <derek@ximbiot.com>
49565
49566         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
49567         (func_import): Only replace files via --import when they have actually
49568         changed.
49569
49570 2005-03-03  Derek R. Price  <derek@ximbiot.com>
49571
49572         * m4/mmap-anon.m4: New file.
49573         * m4/pagealign_alloc.m4: New file.
49574
49575 2005-03-03  Derek R. Price  <derek@ximbiot.com>
49576             Bruno Haible  <bruno@clisp.org>
49577
49578         * modules/pagealign_alloc: New file.
49579         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
49580
49581 2005-03-03  Derek R. Price  <derek@ximbiot.com>
49582             Bruno Haible  <bruno@clisp.org>
49583
49584         * lib/pagealign_alloc.h: New file.
49585         * lib/pagealign_alloc.c: New file.
49586
49587 2005-03-03  Bruno Haible  <bruno@clisp.org>
49588
49589         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
49590         Use an all-permissive copyright notice, recommended by RMS.
49591
49592 2005-03-02  Bruno Haible  <bruno@clisp.org>
49593
49594         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
49595         of AIX, the replacement has to be done only after <string.h> is
49596         included, therefore not in config.h. stpncpy.h does the replacement,
49597         and stpncpy.c uses it.
49598
49599 2005-03-02  Bruno Haible  <bruno@clisp.org>
49600
49601         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
49602         stpncpy.c uses it.
49603
49604 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49605
49606         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
49607         The workaround isn't strictly needed for POSIX conformance, and
49608         it's too much of a pain to configure and maintain.  We'll ask
49609         people to fix their kernels instead.
49610         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
49611         (NANOSLEEP_BUG_WORKAROUND): Remove.
49612         (xnanosleep): Remove the workaround.
49613
49614 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49615
49616         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
49617         Reported by Derek Price.
49618         (Include): Add "timespec.h".
49619
49620         * modules/xnanosleep (Depends-on): Remove gethrxtime.
49621
49622 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49623
49624         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
49625         to detect nanosleep bug.
49626
49627 2005-03-01  Bruno Haible  <bruno@clisp.org>
49628
49629         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
49630
49631 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
49632
49633         * modules/gethrxtime: New file.
49634         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
49635         (Depends-on): Add gethrxtime.
49636         (configure.ac): Add gl_XNANOSLEEP.
49637         (Makefile.am): Remove lib_SOURCES line.
49638
49639 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
49640
49641         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
49642         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
49643
49644 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
49645
49646         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
49647         * lib/timespec.h (gettime): Return void, since it always
49648         succeeds now.  All uses changed.
49649         * lib/gettime.c (gettime) Likewise.
49650         [HAVE_NANOTIME]: Prefer nanotime.
49651         Assume gettimeofday succeeds, as POSIX requires.
49652         Assime time () succeeds, since other code already does.
49653         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
49654         (timespec_subtract): Remove.
49655         (NANOSLEEP_BUG_WORKAROUND): New constant.
49656         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
49657         things considerably.  Use it only on GNU/Linux hosts, since the
49658         workaround shouldn't be needed elsewhere.
49659
49660 2005-02-24  Bruno Haible  <bruno@clisp.org>
49661
49662         * modules/gettext (Files): Add m4/glibc2.m4.
49663
49664 2005-02-24  Bruno Haible  <bruno@clisp.org>
49665
49666         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
49667         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
49668         * m4/progtest.m4:
49669         Update from GNU gettext 0.14.2.
49670         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
49671
49672 2005-02-24  Bruno Haible  <bruno@clisp.org>
49673
49674         * lib/localcharset.c: Update from GNU gettext 0.14.2.
49675         * lib/config.charset: Update from GNU gettext 0.14.2.
49676
49677 2005-02-24  Bruno Haible  <bruno@clisp.org>
49678
49679         * lib/gettext.h: Update from GNU gettext 0.14.2.
49680
49681 2005-02-23  Simon Josefsson  <jas@extundo.com>
49682
49683         * m4/iconvme.m4: New file.
49684
49685 2005-02-23  Jim Meyering  <jim@meyering.net>
49686
49687         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
49688         change.
49689         Thanks to Bruno Haible for catching it.
49690
49691 2005-02-22  Simon Josefsson  <jas@extundo.com>
49692
49693         * modules/iconvme: New file.
49694
49695         * MODULES.html.sh: Add iconvme.
49696
49697 2005-02-22  Simon Josefsson  <jas@extundo.com>
49698
49699         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
49700
49701 2005-02-22  Simon Josefsson  <jas@extundo.com>
49702
49703         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
49704
49705 2005-02-22  Jim Meyering  <jim@meyering.net>
49706
49707         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
49708         s/ifndef/ifdef/.
49709
49710 2005-02-20  Neil Conway  <neilc@samurai.com>
49711
49712         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
49713         returned by OSX/Darwin if the specified buffer is not large
49714         enough for the hostname.
49715
49716 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49717
49718         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
49719         pass it to _help, otherwise the latter coredumps trying to
49720         dereference state.root_argp.
49721
49722 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49723
49724         * modules/chdir-long (Depends-on): Add memrchr.
49725         * modules/memrchr (Files): Add lib/memrchr.h.
49726         (Include): "memrchr.h".
49727
49728 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49729
49730         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
49731
49732 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49733
49734         * lib/memrchr.h: New file.
49735         * lib/chdir-long.c: Include it.
49736         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
49737         Don't bother including stddef.h.
49738
49739 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
49740
49741         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
49742         inclusion.
49743         Include <sys/types.h>, for dev_t.
49744         (ME_DUMMY, ME_REMOTE): Move from here....
49745         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
49746         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
49747         Dmitry V. Levin.
49748         Include mountlist.h first, to test the interface.
49749
49750 2005-01-29  Bruno Haible  <bruno@clisp.org>
49751
49752         * lib/progname.c (program_name): Initialize.
49753         Needed when linking statically on MacOS X.
49754
49755 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49756
49757         Sync from coreutils.
49758         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
49759         (Depends-on): Add c-strtod.
49760         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
49761
49762 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49763
49764         Sync from coreutils.
49765         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
49766
49767         Remove files that are specific to coreutils.
49768         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
49769
49770 2005-01-28  Bruno Haible  <bruno@clisp.org>
49771
49772         * modules/javacomp: New file.
49773         * MODULES.html.sh (Java): Add javacomp.
49774
49775 2005-01-28  Bruno Haible  <bruno@clisp.org>
49776
49777         * m4/javacomp.m4: New file, from GNU gettext.
49778
49779 2005-01-28  Bruno Haible  <bruno@clisp.org>
49780
49781         * lib/javacomp.sh.in: New file, from GNU gettext.
49782         * lib/javacomp.h: New file, from GNU gettext.
49783         * lib/javacomp.c: New file, from GNU gettext.
49784
49785 2005-01-26  Simon Josefsson  <jas@extundo.com>
49786
49787         * lib/gai_strerror.c: Use GPL in header.
49788
49789 2005-01-26  Bruno Haible  <bruno@clisp.org>
49790
49791         * modules/javaexec: New file.
49792         * MODULES.html.sh (Java): Add javaexec.
49793
49794 2005-01-26  Bruno Haible  <bruno@clisp.org>
49795
49796         * m4/javaexec.m4: New file, from GNU gettext.
49797
49798 2005-01-26  Bruno Haible  <bruno@clisp.org>
49799
49800         * lib/javaexec.sh.in: New file, from GNU gettext.
49801         * lib/javaexec.h: New file, from GNU gettext.
49802         * lib/javaexec.c: New file, from GNU gettext.
49803
49804 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49805
49806         * modules/lchown (Depends-on): Remove lchown.h
49807
49808 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49809
49810         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
49811         must be defined if the header file was not found, in order
49812         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
49813
49814 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49815
49816         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
49817         initializers for struct pentry_state.
49818         (__argp_error): Check return value of __asprintf
49819         (__argp_failure): Translate error message
49820
49821         * lib/argp-parse.c: Removed braces around the expansion of N_()
49822
49823 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49824
49825         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
49826         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
49827         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
49828         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
49829         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
49830         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
49831         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
49832         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
49833         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
49834         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
49835         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
49836         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
49837         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
49838         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
49839         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
49840         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
49841         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
49842         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
49843         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
49844         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
49845         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
49846         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
49847         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
49848         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
49849         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
49850         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
49851         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
49852         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
49853         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
49854         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
49855         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
49856         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
49857         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
49858         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
49859         xstrtol.m4, xstrtoumax.m4, yesno.m4:
49860         Use an all-permissive copyright notice, recommended by RMS.
49861
49862 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
49863
49864         * modules/chdir-long (Depends-on): Remove mempcpy.
49865
49866 2005-01-21  Jim Meyering  <jim@meyering.net>
49867
49868         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
49869         same value as for Solaris 9.
49870
49871         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
49872         component length.  This included changing the parameter to be
49873         of type `char *' rather than `char const *'.
49874         * lib/chdir-long.h (chdir_long): Update prototype.
49875
49876         * lib/openat.c (fdopendir, fstatat): New functions.
49877         * lib/openat.h: Include headers required for use of DIR and struct
49878         stat.
49879         [AT_SYMLINK_NOFOLLOW]: Define.
49880         (fdopendir, fstatat): Add prototypes.
49881
49882 2005-01-21  Bruno Haible  <bruno@clisp.org>
49883
49884         * modules/classpath: New file.
49885         * MODULES.html.sh (Java): Add classpath.
49886
49887 2005-01-21  Bruno Haible  <bruno@clisp.org>
49888
49889         * lib/classpath.h: New file, from GNU gettext.
49890         * lib/classpath.c: New file, from GNU gettext.
49891
49892 2005-01-20  Simon Josefsson  <jas@extundo.com>
49893
49894         * modules/version-etc-fsf: New file.
49895
49896 2005-01-20  Simon Josefsson  <jas@extundo.com>
49897
49898         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
49899         * lib/version-etc.c: Remove version_etc_copyright.
49900         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
49901         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
49902
49903 2005-01-20  Simon Josefsson  <jas@extundo.com>
49904
49905         * lib/base64.h (isbase64): Add.
49906
49907         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
49908         using a unsigned prototype, don't inline.
49909         (base64_decode): Use it.
49910
49911 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
49912
49913         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
49914         it.
49915
49916 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
49917
49918         * lib/save-cwd.c (save_cwd): Remove code to support the case
49919         where fchdir is missing or flaky.
49920
49921 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
49922
49923         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
49924
49925 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
49926
49927         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
49928         AC_LIBSOURCES now does this.
49929         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
49930         with new ullong_max module.
49931
49932 2005-01-19  Bruno Haible  <bruno@clisp.org>
49933
49934         * modules/sh-quote: New file.
49935         * MODULES.html.sh (Executing programs): Add sh-quote.
49936
49937 2005-01-19  Bruno Haible  <bruno@clisp.org>
49938
49939         * lib/sh-quote.h: New file, from GNU gettext.
49940         * lib/sh-quote.c: New file, from GNU gettext.
49941
49942 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
49943
49944         Merge from coreutils.
49945         * m4/ullong_max.m4: New file.
49946         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
49947         (gl_MACROS): Assume localeconv exists.
49948
49949 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
49950
49951         Merge changes from coreutils, as described below in several
49952         changelogs dated today.
49953
49954         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
49955         (O_DIRECTORY): Remove; not needed here, since "." must be
49956         a directory.  All uses removed.
49957         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
49958         universal on Suns, and we also need to test for IRIX.
49959         Revamp code to use 'if' rather than '#if'.
49960         Avoid unnecessary comparison of cwd->desc to 0.
49961
49962         * lib/utimens.c (futimens): Robustify the previous patch, by checking
49963         for known valid error numbers rather than observed invalid ones.
49964
49965 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
49966
49967         * modules/ullong_max: New file.
49968
49969         * modules/chdir-long, modules/openat: New files.
49970         * modules/save-cwd (Depends-on): Depend on chdir-long.
49971         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
49972
49973 2005-01-18  Jim Meyering  <jim@meyering.net>
49974
49975         Merge from coreutils.
49976         * m4/chdir-long.m4, m4/openat.m4: New files.
49977         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
49978         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
49979         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
49980         is sane and DOES follow symlinks.  Besides, testing 20 different
49981         systems found no broken chown implementations.
49982         Prompted by a change in rsync's copy of this macro.
49983         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
49984
49985         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
49986
49987         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
49988         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
49989         NULL-means-set-to-current-time semantics.
49990         Remove temporary file immediately, rather than waiting
49991         for configure's at-exit trap code to do it.
49992
49993 2005-01-18  Jim Meyering  <jim@meyering.net>
49994
49995         * lib/version-etc.c (version_etc_copyright): Update copyright date.
49996
49997         * lib/utimens.c (futimens): Account for the fact that futimes
49998         can also fail with errno == ENOSYS or errno == ENOENT.
49999         Patch from Dmitry V. Levin.
50000
50001         Change the name of the robust chdir function from chdir to chdir_long.
50002         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
50003         (restore_cwd): Use chdir_long, not chdir.
50004         * lib/chdir-long.c: Renamed from chdir.c.
50005         * lib/chdir-long.h: Renamed from chdir.h.
50006         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
50007         Hurd.
50008
50009 2005-01-18  Bruno Haible  <bruno@clisp.org>
50010
50011         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
50012         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
50013         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
50014         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
50015         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
50016         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
50017         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
50018         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
50019         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
50020         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
50021         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
50022         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
50023         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
50024         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
50025         Use an all-permissive copyright notice, recommended by RMS.
50026
50027 2005-01-18  Bob Proulx  <bob@proulx.com>
50028
50029         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
50030         simplify offsetof() macro construct to avoid compile failure with
50031         native HP-UX 11.0 ANSI C compiler.
50032
50033 2005-01-17  Bruno Haible  <bruno@clisp.org>
50034
50035         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
50036         redundant because stpncpy.m4 takes care of it.
50037
50038 2005-01-17  Bruno Haible  <bruno@clisp.org>
50039
50040         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
50041
50042 2005-01-17  Bruno Haible  <bruno@clisp.org>
50043
50044         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
50045         used.
50046
50047 2005-01-17  Bruno Haible  <bruno@clisp.org>
50048
50049         * lib/fwriteerror.h (fwriteerror): Change specification to include
50050         fclose.
50051         * lib/fwriteerror.c: Include <stdbool.h>.
50052         (fwriteerror): At the end, close the file stream. Record whether
50053         stdout was already closed.
50054
50055 2005-01-17  Bruno Haible  <bruno@clisp.org>
50056
50057         * lib/execute.c (environ): Declare if needed.
50058         * lib/pipe.c (environ): Likewise.
50059         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
50060
50061 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50062
50063         * modules/argp: Depend on vsnprintf
50064
50065 2005-01-10  Jim Meyering  <jim@meyering.net>
50066
50067         * modules/closeout (Depends-on): Add atexit.
50068
50069 2005-01-06  Bruno Haible  <bruno@clisp.org>
50070
50071         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
50072
50073 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
50074
50075         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
50076         definitions to be after all include files, to avoid collisions.
50077         Problem reported by Bob Proulx.
50078
50079 2005-01-04  Jim Meyering  <jim@meyering.net>
50080
50081         Changes imported from coreutils.
50082         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
50083         as the mkstemp template, use a temporary directory and an
50084         8.3-friendly template to avoid trouble on systems like DJGPP.
50085         Reported by Juan M. Guerrero via Stepan Kasal.
50086         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
50087         close. Remove the temporary directory right away, rather than waiting
50088         for configure's at-exit trap code to do it.
50089         Suggestion from Stepan Kasal.
50090
50091 2005-01-01  Simon Josefsson  <jas@extundo.com>
50092
50093         * gnulib-tool: Print #include directives when --import'ing.
50094
50095 2004-12-28  Simon Josefsson  <jas@extundo.com>
50096
50097         * tests/test-base64.c: Include required header files.  Remove
50098         unused variables.
50099
50100 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50101
50102         * modules/error (Depends-on): Remove gettext.
50103
50104 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50105
50106         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
50107         not needed.  This removes a dependency on the gettext module.
50108         [defined _LIBC]: Do not include <libintl.h>; not needed.
50109
50110 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
50111
50112         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
50113         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
50114
50115 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
50116
50117         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
50118         HAVE_DECL_STRTOLD.
50119
50120 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50121
50122         * modules/getdate (Depends-on): Remove alloca-opt.
50123
50124 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50125
50126         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
50127
50128 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50129
50130         * lib/argp-parse.c: Include <stddef.h>.
50131         (alignof, alignto): New macros.
50132         (parser_init): Don't assume that void * is aligned sufficiently
50133         for struct option.
50134
50135         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
50136         need to extend the stack.
50137         (YYINITDEPTH): New macro, so that the initial stack isn't overly
50138         large.
50139
50140 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50141
50142         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
50143
50144 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
50145
50146         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
50147         (2004-10-24) change.  Apparently this was a false alarm.
50148
50149         * modules/getdate: Depend on alloca-opt, not alloca.
50150
50151 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
50152
50153         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
50154         Remove now-obsolete comment about AIX.
50155         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
50156         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
50157         (YYMAXDEPTH): New macro.
50158
50159 2004-12-18  Simon Josefsson  <jas@extundo.com>
50160
50161         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
50162
50163 2004-12-18  Bruno Haible  <bruno@clisp.org>
50164
50165         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
50166
50167 2004-12-18  Bruno Haible  <bruno@clisp.org>
50168
50169         * lib/fatal-signal.c (fatal_signals): Make non-const.
50170         (init_fatal_signals): New function.
50171         (uninstall_handlers, install_handlers): Ignore signals that were set to
50172         SIG_IGN.
50173         (at_fatal_signal): Call init_fatal_signals.
50174         (init_fatal_signal_set): Likewise. Ignore signals that were set to
50175         SIG_IGN.
50176         Reported by Paul Eggert.
50177
50178 2004-12-18  Bruno Haible  <bruno@clisp.org>
50179
50180         * doc/alloca.texi: New file.
50181         * doc/alloca-opt.texi: New file.
50182
50183 2004-12-17  Jim Meyering  <jim@meyering.net>
50184
50185         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
50186         Otherwise, install-sh could exit with improper exit status when
50187         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
50188
50189 2004-12-16  Simon Josefsson  <jas@extundo.com>
50190
50191         * tests/test-base64.c: Add license.
50192
50193 2004-12-15  Stepan Kasal  <address@hidden>
50194
50195         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
50196
50197 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
50198
50199         * modules/getcwd (Files): Add m4/d-ino.m4.
50200         Suggested by Mark D. Baushke.
50201
50202 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
50203
50204         * lib/getdate.y (textint): New member "negative".
50205         (time_zone_hhmm): New function.
50206         Expect 14 shift-reduce conflicts, not 13.
50207         (o_colon_minutes): New rule.
50208         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
50209         (yylex): Set the "negative" member of signed numbers.
50210
50211 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
50212
50213         * doc/getdate.texi (Time of day items, Time zone items):
50214         Describe new formats +00:00, UTC+00:00.
50215
50216 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
50217
50218         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
50219         spurious "-l"s.  Problem reported by Stepan Kasal.
50220
50221 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
50222
50223         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
50224         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
50225
50226 2004-12-04  Simon Josefsson  <jas@extundo.com>
50227
50228         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
50229         Vandoorselaere <yoann@prelude-ids.org>.
50230
50231 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
50232
50233         Changes imported from coreutils.
50234         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
50235         exist.
50236         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
50237
50238 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
50239
50240         Changes imported from coreutils.
50241         * lib/hard-locale.c: Assume <locale.h> exists.
50242         Include "strdup.h".
50243         (GLIBC_VERSION): New macro.
50244         (hard_locale): Assume setlocale exists.
50245         Rewrite to avoid #ifdef.
50246         Use strdup rather than malloc + strcpy.
50247         * lib/human.c: Assume <locale.h> exists.
50248         (human_readable): Assume localeconv exists.
50249
50250 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
50251
50252         * modules/hard-locale (Depends-on): Add strdup.
50253
50254 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
50255
50256         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
50257         convert T2, not T.  (Imported from libc.)
50258
50259 2004-11-30  Simon Josefsson  <jas@extundo.com>
50260
50261         * modules/restrict (License): Change to LGPL.
50262
50263 2004-11-30  Simon Josefsson  <jas@extundo.com>
50264
50265         * m4/restrict.m4: Add copyright and copying conditions.
50266
50267 2004-11-30  Simon Josefsson  <jas@extundo.com>
50268
50269         * m4/base64.m4: New file.
50270
50271 2004-11-30  Simon Josefsson  <jas@extundo.com>
50272
50273         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
50274         base64.
50275
50276         * tests/test-base64.c: New file.
50277
50278         * modules/base64: New file.
50279
50280 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
50281
50282         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
50283         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
50284
50285         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
50286
50287 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
50288
50289         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
50290         (__getcwd.c): Don't restore errno; glibc doesn't.
50291         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
50292         first, falling back to our code only if its results look suspicious.
50293         Ensure that the resulting buffer is only as large as necessary.
50294
50295         * lib/readutmp.c: Include readutmp.h first.
50296         Include <errno.h>, since readutmp.h no longer does that.
50297         * lib/readutmp.h: Don't include <errno.h>,
50298         <sys/param.h>, <time.h>; not needed to establish interface.
50299         (errno): Remove decl.
50300         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
50301         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
50302         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
50303
50304 2004-11-28  Simon Josefsson  <jas@extundo.com>
50305
50306         * lib/base64.h, base64.c: New file.
50307
50308 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
50309
50310         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
50311
50312 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
50313
50314         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
50315         (Depends-on): Remove pathmax, same.  Add mempcpy.
50316         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
50317         (Makefile.am): Append getcwd.h to lib_SOURCES.
50318         (Include): Add getcwd.h.
50319         (Maintainer): Change from Jim Meyering to "all, glibc",
50320         since getdate now uses intended-for-glibc code.
50321         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
50322         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
50323
50324 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
50325
50326         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
50327         HP's ANSI C compiler.
50328         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
50329         Declaring int functions causes warnings on some modern systems and
50330         shouldn't be needed to compile on ancient ones.
50331         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
50332         defined.
50333
50334         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
50335         with the following changes.
50336         (__set_errno): Parenthesize properly.
50337         Include <stdbool.h>.
50338         (MIN, MAX, MATCHING_INO): New macros.
50339         (__getcwd): Define with prototype, not K&R form.
50340         Use heuristics to allocate default buffer on stack if possible.
50341         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
50342         behavior, and to avoid the PATH_MAX limit when computing
50343         ../../../../...
50344         Use MATCHING_INO to compare inode number to file.
50345         Check for arithmetic overflow in size calculations.
50346         Fix bug in reallocation of dot array that caused getcwd to fail
50347         on directories nested deeper than 75.
50348         Be more careful about saving errno on error.
50349         Do not use realloc; use only free+malloc, as this is a bit
50350         more flexible and avoids a needless copy operation.
50351         Do not inspect st_dev and st_ino for symbolic links; POSIX
50352         doesn't specify the latter.
50353         Check for closedir errors.
50354         Avoid needless casts.
50355         Use "#ifdef weak_alias" around weak_alias, to be like other
50356         glibc code.
50357         The following changes to getcwd.c have effect only when used in
50358         gnulib; they have no effect inside glibc proper.
50359         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
50360         as alloca isn't used.
50361         (alloca, __alloca): Likewise.
50362         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
50363         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
50364         unconditionally, as gnulib assumes C89 or better.
50365         Do not include <sys/param.h>.
50366         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
50367         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
50368         better.
50369         (NULL) [!defined NULL]: Remove; we assume C89 or better.
50370         Include <dirent.h> in a way that is compatible with modern Autoconf.
50371         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
50372         New macros, if not already defined.
50373         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
50374         Use "_LIBC", not "defined _LIBC", for consistency.
50375         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
50376         a mempcpy module.
50377         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
50378         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
50379         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
50380         credit only to Jim Meyering and adjust the copyright dates.
50381         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
50382         <stdlib.h>, <unistd.h>, "pathmax.h".
50383         Instead, include "xgetcwd.h" (first) and "getcwd.h".
50384         (INITIAL_BUFFER_SIZE): Remove.
50385         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
50386
50387 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
50388
50389         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
50390         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
50391         Use the _ONCE methods, for efficiency.
50392         Check for fcntl.h.  In test program, include <errno.h>
50393         and <fcntl.h> if available.  Remove old K&R cruft from
50394         test program.  Check for common errors in GNU/Linux,
50395         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
50396         don't do AC_LIBOBJ, as that's getcwd.m4's job.
50397         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
50398         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
50399         name accordingly.
50400         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
50401         accommodate new getcwd.c.
50402         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
50403         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
50404         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
50405         that's all we need now.
50406
50407 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50408
50409         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
50410         argp-parse.c depends on getopt internals, that means we should
50411         always use our getopt, to be on the safe side.
50412         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
50413         order not to spoil the result of an eventual previous invocation
50414         of gl_GETOPT_SUBSTITUTE.
50415
50416 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50417
50418         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
50419         redefinition warnings. To avoid them, include the defines
50420         in `#if !defined __need_getopt ... #endif'. The only place
50421         where __getopt_argv_const is used is in definitions
50422         of getopt_long and getopt_long_only below, which are as well
50423         protected by `#ifndef __need_getopt'.
50424         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
50425         __need_getopt after including <stdio.h> and <unistd.h> These
50426         headers might have defined it.
50427
50428 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
50429
50430         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
50431
50432 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
50433
50434         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
50435         (futimens): New function, which uses futimes if available.
50436         (futimens, utimens): Support timespec==NULL, with same semantics
50437         as utime and utimens.
50438         * lib/utimens.h (futimens): New decl.
50439
50440 2004-11-23  Jim Meyering  <jim@meyering.net>
50441
50442         * lib/getopt_.h: Remove trailing blanks.
50443
50444 2004-11-23  Jim Meyering  <jim@meyering.net>
50445
50446         * lib/__fpending.c: Add comment.
50447
50448 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
50449
50450         * modules/canonicalize (Depends-on): Add xreadlink.
50451         Problem reported by James Youngman.
50452
50453 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50454
50455         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
50456         New macros.
50457         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
50458         optopt): Use them instead of invoking ## directly; otherwise, the
50459         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
50460
50461 2004-11-19  Bruno Haible  <bruno@clisp.org>
50462
50463         * lib/strtok_r.c: Move comments from here...
50464         * lib/strtok_r.h: ... to here.
50465
50466 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50467
50468         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
50469         implementations that mishandle size_t overflow.
50470
50471 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50472
50473         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
50474         might fail.  Problem reported by Yoann Vandoorselaere.
50475         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
50476         implementations that mishandle size_t overflow.
50477
50478 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50479
50480         * modules/canon-host (Depends-on): Add strdup.
50481
50482 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50483
50484         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
50485
50486 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50487
50488         * lib/canon-host.c: Include "strdup.h".
50489         (canon_host): Use getaddrinfo if available, so that IPv6 works.
50490         Use strdup instead of malloc/strcpy to duplicate strings.
50491
50492         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
50493         (human_space_before_unit): New constant.
50494         * lib/human.c (human_readable): Support it.
50495
50496         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
50497         (xgetcwd): Set errno correctly when failing.
50498         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
50499         the failure is actually due to a PATH_MAX problem.
50500
50501         Further getopt changes to make it more likely that glibc will
50502         buy the changes back.
50503         * lib/getopt.c (POSIXLY_CORRECT): New constant.
50504         (getopt): Use it, so to preserve glibc semantic
50505         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
50506         when compiling for libc.
50507         * lib/getopt_.h (__getopt_argv_const): Bring it back.
50508         (getopt_long, getopt_long_only): Use it.
50509
50510         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
50511         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
50512         (getopt): Argv is now char * const *, as per standard.
50513         (_getopt_internal_r, _getopt_internal): Argv is now char **,
50514         not char *__getopt_argv_const *.
50515         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
50516         _getopt_long_only_r): Likewise.
50517         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
50518         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
50519         _getopt_long_r, _getopt_long_only_r): Likewise.
50520         * lib/getopt_.h (__getopt_argv_const): Remove.
50521         (getopt): Argv is now char * const *, as per standard.
50522
50523         * lib/getdate.y (tORDINAL): New token.
50524         (day, relunit): Allow it for relative times.
50525         (relative_time_table): Use tORDINAL for ordinals.
50526
50527 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50528
50529         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
50530         Document that "second" isn't allowed as an ordinal number.
50531
50532 2004-11-16  Jim Meyering  <jim@meyering.net>
50533
50534         * modules/closeout (Depends-on): Add fpending.
50535
50536 2004-11-15  Jim Meyering  <jim@meyering.net>
50537
50538         * lib/closeout.c: Include "__fpending.h" once again.
50539         Include <stdbool.h>.
50540         (close_stdout): Don't fail just because stdout was closed initially,
50541         since some programs don't write to stdout in the normal course of
50542         operation (other than --version and --help), and we don't want this
50543         function to make e.g. `touch file >&-' fail.
50544         But do fail if it was closed and someone has tried to write to it.
50545         E.g., `printf foo >&-' must fail.
50546
50547 2004-11-13  Jim Meyering  <jim@meyering.net>
50548
50549         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
50550
50551 2004-11-12  Simon Josefsson  <jas@extundo.com>
50552
50553         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
50554         small doc fix is still pending.
50555
50556 2004-11-11  Simon Josefsson  <jas@extundo.com>
50557
50558         * modules/strtok_r: New file.
50559
50560         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50561         strtok_r.
50562
50563 2004-11-11  Simon Josefsson  <jas@extundo.com>
50564
50565         * m4/strtok_r.m4: New file.
50566
50567         * m4/getopt.m4: Replace opterr.
50568
50569 2004-11-11  Simon Josefsson  <jas@extundo.com>
50570
50571         * lib/strtok_r.h, strtok_r.c: New file.
50572
50573 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
50574
50575         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
50576         of replacing opterr, getopt, etc.  This should handle the
50577         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
50578
50579 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
50580
50581         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
50582         we can stop lying to compilers about the constness of argv when we
50583         are compiled outside glibc.
50584         (getopt, getopt_long, getopt_long_only): Use it.
50585         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
50586         _getopt_internal, getopt): Likewise.
50587         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
50588         _getopt_long_only_r): Likewise.
50589         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
50590         _getopt_long_r, _getopt_long_only_r): Likewise.
50591
50592         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
50593         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
50594         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
50595         the other external symbols.
50596         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
50597         declaration, since the above renaming now works around collisions.
50598
50599 2004-11-11  Jim Meyering  <jim@meyering.net>
50600
50601         * lib/linebreak.c: Remove trailing blanks.
50602         * lib/alloca_.h: Likewise.
50603         * lib/acosl.c: Likewise.
50604         * lib/euidaccess.c: Likewise.
50605         * lib/allocsa.h: Likewise.
50606
50607 2004-11-10  Simon Josefsson  <jas@extundo.com>
50608
50609         * m4/getaddrinfo.m4: New file.
50610
50611 2004-11-10  Simon Josefsson  <jas@extundo.com>
50612
50613         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
50614
50615 2004-11-10  Simon Josefsson  <jas@extundo.com>
50616
50617         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50618         getaddrinfo.
50619
50620         * modules/getaddrinfo: New file.
50621
50622 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
50623
50624         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
50625
50626 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
50627
50628         * lib/mktime.c (SHR): New macro, which is a portable
50629         substitute for >> that should work even on Crays.
50630         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
50631         Problem reported by Mark D. Baushke in
50632         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
50633         * lib/getdate.y (SHR): Likewise.
50634         (tm_diff): Use it.
50635         * lib/strftime.c (SHR): Likewise.
50636         (tm_diff): Use it.
50637         * lib/quotearg.c (struct quoting_options): Use unsigned int for
50638         quote_these_too, so that right shifts are well defined.  All uses
50639         changed.
50640
50641 2004-11-10  Jim Meyering  <jim@meyering.net>
50642
50643         Ensure that no close failure goes unreported.
50644         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
50645         return early when it seems there's nothing to flush.
50646         Don't include __fpending.h.
50647
50648 2004-11-10  Jim Meyering  <jim@meyering.net>
50649
50650         * modules/closeout (Depends-on): Remove fpending.
50651
50652 2004-11-10  Jim Meyering  <jim@meyering.net>
50653
50654         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
50655
50656 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50657
50658         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
50659         gl_FUNC_STRFTIME.
50660         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
50661         and AC_REQUIRE when possible, to avoid duplicate checks.
50662         Check for <wchar.h>.
50663
50664 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50665
50666         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
50667
50668 2004-11-09  Bruno Haible  <bruno@clisp.org>
50669
50670         * m4/sockpfaf.m4: New file.
50671
50672 2004-11-05  Bruno Haible  <bruno@clisp.org>
50673
50674         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
50675         Reported by Mark D. Baushke <mdb@cvshome.org>.
50676
50677 2004-11-04  Bruno Haible  <bruno@clisp.org>
50678
50679         2004-09-11  Bruno Haible  <bruno@clisp.org>
50680                 * allocsa.valgrind: New file.
50681         2004-02-06  Bruno Haible  <bruno@clisp.org>
50682                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
50683                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
50684                 Reported by Christopher Seip <chris.seip@hp.com>.
50685
50686 2004-11-04  Bruno Haible  <bruno@clisp.org>
50687
50688         * modules/allocsa (Files): Add lib/allocsa.valgrind.
50689         (Makefile.am): Distribute it.
50690
50691 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
50692
50693         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
50694         with errno == ERANGE if the buffer is too small.
50695         Problem reported by Mark D. Baushke.
50696
50697 2004-11-03  Albert Chin  <china@thewrittenword.com>
50698             Paul Eggert  <eggert@cs.ucla.edu>
50699
50700         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
50701         equivalent, substitute $ac_type for equivalent type rather than
50702         blindly using uint32_t *always* which won't work if uint32_t is not
50703         available.  Define _UINT32_T to work around typedef of uint32_t if
50704         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
50705         2.5.1.
50706
50707 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
50708
50709         * m4/jm-macros.m4: Sync from coreutils.
50710         (gl_MACROS): Check for mbrlen, for pathchk.
50711         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
50712
50713 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
50714
50715         * lib/xreadlink.c (MAXSIZE): New macro.
50716         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
50717         size does not exceed MAXSIZE.  Avoid cast.
50718         As suggested by Mark D. Baushke in
50719         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
50720         if readlink fails with buffer size just under MAXSIZE, try again
50721         with MAXSIZE.
50722
50723 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
50724
50725         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
50726
50727 2004-11-02  Derek R. Price  <derek@ximbiot.com>
50728         and  Paul Eggert  <eggert@cs.ucla.edu>
50729
50730         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
50731         (get_date): Overparenthesize to avoid GCC warning.
50732
50733 2004-11-02  Bruno Haible  <bruno@clisp.org>
50734
50735         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
50736         returns void.
50737
50738 2004-11-02  Bruno Haible  <bruno@clisp.org>
50739
50740         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
50741         function returns void.
50742
50743 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50744
50745         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
50746         fflush_unlocked, flockfile, funlockfile, funlockfile,
50747         fputs_unlocked, putc_unlocked.
50748
50749 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50750
50751         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
50752         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
50753         already declared.
50754
50755 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
50756
50757         * modules/getdate (Files): Add doc/getdate.texi.
50758         (Depends-on): Add setenv, xalloc.
50759
50760 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
50761
50762         * lib/getdate.y: Add support for TZ="foo" within a date string.
50763         Fix some bugs near time_t boundaries.  Reject dates with
50764         out-of-range components, e.g., "Sept 31".
50765         Include <stdlib.h>, "setenv.h", "xalloc.h".
50766         (ISDIGIT_LOCALE): Remove; unused.
50767         Note that the TZ and time functions used here are not reentrant.
50768         (mktime_ok, get_tz): New functions.
50769         (TZBUFSIZE): New constant.
50770         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
50771         This requires that we sometimes generate our own TZ="XXX..." setting.
50772
50773 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
50774
50775         * doc/getdate.texi: New file, from coreutils with modifications for
50776         the new TZ parsing.
50777
50778 2004-10-27  Derek R. Price  <derek@ximbiot.com>
50779
50780         * lib/mktime.c (not_equal_tm): Remove redundant check.
50781
50782 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50783
50784         * modules/regex (lib_SOURCES): Add regex.c.
50785         Reported by James Youngman in
50786         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
50787
50788 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50789
50790         * lib/getdate.y: Use Bison 1.875 features, and some minor
50791         code cleanups.  This change does not affect semantics.
50792         Don't include <stdlib.h>; no longer needed.
50793         Don't include unlocked-io.h; only the "#if TEST" code uses
50794         stdio, and performance isn't crucial there.
50795         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
50796         Bison 1.875 features as described below.
50797         All uses of "PC." replaced by "pc->".
50798         (YYSTYPE): Add a forward declaration.
50799         (yylex, yyerror): Use full prototypes in forward decls.
50800         Use "%pure-parser" rather than obsolescent "%pure_parser".
50801         Use %parse-param and %lex-param instead of obsolescent
50802         YYPARSE_PARAM and YYLEX_PARAM.
50803         (meridian_table, month_and_day_table, time_units_table,
50804         relative_time_table, time_zone_table, military_table,
50805         lookup_zone, lookup_word, get_date):
50806         Use NULL instead of 0 where appropriate.
50807         (to_hour): Avoid abort (), to avoid a dependency on
50808         stdlib.h.
50809         (yyerror, yylex): Now accepts parser_control * arg.
50810         (main) [TEST]: Use '\0' rather than 0 for char.
50811
50812 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50813
50814         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
50815
50816 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50817
50818         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
50819         It's now the caller's responsibility to handle the case where
50820         !HAVE_GETPAGESIZE && !defined getpagesize.
50821
50822         * lib/mktime.c (leapyear): Arg is long int, not int.
50823
50824 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
50825
50826         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
50827
50828 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
50829
50830         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
50831         missing.  Problem reported by James Youngman.
50832
50833 2004-10-16  Simon Josefsson  <jas@extundo.com>
50834
50835         * gnulib-tool: Fix comments.  Fix parse problem.
50836         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
50837
50838 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
50839
50840         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
50841         implementation of getopt_long.  Problem reported by Alexander Taler in:
50842         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
50843
50844 2004-10-15  Bruno Haible  <bruno@clisp.org>
50845
50846         * gnulib-tool: Untabify. Initialize supplied_libname.
50847         (func_usage): More homogenous output.
50848         (func_modules_transitive_closure, func_modules_to_filelist,
50849         func_emit_lib_Makefile_am): New functions.
50850         (func_import): New function, extracted from big case statement. Use
50851         func_get_license, func_modules_transitive_closure,
50852         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
50853         opt_lgpl. Don't use test -a, as it's not portable.
50854         (func_create_testdir): Use func_modules_transitive_closure,
50855         func_modules_to_filelist, func_emit_lib_Makefile_am.
50856
50857 2004-10-15  Bruno Haible  <bruno@clisp.org>
50858
50859         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
50860
50861 2004-10-15  Bruno Haible  <bruno@clisp.org>
50862
50863         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
50864         the portions belonging to each module.
50865         Suggested by Derek Robert Price <derek@ximbiot.com>.
50866
50867 2004-10-12  Simon Josefsson  <jas@extundo.com>
50868
50869         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
50870         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
50871         to real functions.
50872
50873 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50874
50875         * modules/vsnprintf: New file.
50876
50877 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50878
50879         * m4/vsnprintf.m4: New file.
50880
50881 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50882
50883         * lib/vsnprintf.h: New file.
50884         * lib/vsnprintf.c: New file.
50885
50886 2004-10-11  Bruno Haible  <bruno@clisp.org>
50887
50888         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
50889         vsnprintf.
50890
50891 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
50892
50893         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
50894
50895 2004-10-07  Bruno Haible  <bruno@clisp.org>
50896
50897         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
50898         fits into the provided buffer.
50899
50900 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
50901
50902         * lib/diacrit.c, diacrit.h: Add GPL notice.
50903
50904         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
50905         notice.
50906         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
50907         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
50908         This avoids a potential constant-folding bug.
50909
50910 2004-10-05  Bruno Haible  <bruno@clisp.org>
50911
50912         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
50913         for the declaration of strsep.
50914
50915 2004-10-05  Bruno Haible  <bruno@clisp.org>
50916
50917         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
50918
50919 2004-10-04  Simon Josefsson  <jas@extundo.com>
50920
50921         * modules/memmem: New file.
50922         * tests/test-memmem.c: New file.
50923         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
50924
50925 2004-10-04  Simon Josefsson  <jas@extundo.com>
50926
50927         * m4/memmem.m4: New file.
50928
50929 2004-10-04  Simon Josefsson  <jas@extundo.com>
50930
50931         * lib/memmem.h: New file.
50932         * lib/memmem.c: New file, taken from glibc.
50933
50934 2004-10-04  Simon Josefsson  <jas@extundo.com>
50935
50936         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
50937         '#ifdef USE_UNLOCKED_IO'.
50938
50939 2004-10-04  Simon Josefsson  <jas@extundo.com>
50940
50941         * config/srclist.txt: Add memmem from glibc.
50942
50943 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
50944
50945         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
50946
50947         * modules/argmatch, modules/argp, modules/closeout, modules/error,
50948         modules/exclude, modules/getdate, modules/getline,
50949         modules/getndelim2, modules/getpass, modules/getpass-gnu,
50950         modules/getusershell, modules/linebuffer, modules/md5,
50951         modules/mountlist, modules/posixtm, modules/readtokens,
50952         modules/readutmp, modules/regex, modules/sha1,
50953         modules/version-etc, modules/yesno:
50954         Remove dependency on unlocked-io.
50955
50956 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
50957
50958         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
50959
50960         * m4/unlocked-io.m4: Add copyright notice.
50961         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
50962
50963 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
50964
50965         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
50966         * lib/xmalloc.c (xmemdup): Likewise.
50967         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
50968         XFREE): Remove these long-obsolescent macros.
50969         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
50970         * lib/xstrdup.c: Remove.
50971
50972         * lib/regex.c (re_comp): Cast gettext return value to char *,
50973         Problem reported by Martin Neitzel via Mark D. Baushke.
50974
50975 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
50976
50977         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
50978         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
50979         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
50980         regex.c, sha1.c, version-etc.c, yesno.c:
50981         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
50982         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
50983         the includer's responsibility.
50984
50985         Sync from coreutils.
50986
50987         * lib/modechange.c (mode_compile): Don't decrement a pointer that
50988         points to the start of a string, as the C Standard says the
50989         resulting behavior is undefined.
50990
50991         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
50992         simple -> simple_backups, numbered_existing ->
50993         numbered_existing_backups, numbered -> numbered_backups
50994         to avoid shadowing problems.  All uses changed.
50995         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
50996         * lib/backupfile.c (check_extension, numbered_backup):
50997         Rename locals to avoid shadowing 'basename'.
50998         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
50999         once.
51000
51001         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
51002         * lib/.cvsignore: Add getopt.h.
51003
51004 2004-10-04  Bruno Haible  <bruno@clisp.org>
51005
51006         * modules/README: New file.
51007         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
51008         not a module.
51009
51010 2004-10-02  Jim Meyering  <jim@meyering.net>
51011
51012         * lib/dirfd.h, getpagesize.h: Add copyright notice.
51013
51014 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51015
51016         * modules/strsep: New file.
51017
51018 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51019
51020         * m4/strsep.m4: New file.
51021
51022 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51023
51024         * lib/strsep.h: New file.
51025         * lib/strsep.c: New file.
51026
51027 2004-10-01  Simon Josefsson  <jas@extundo.com>
51028
51029         * lib/snprintf.c (snprintf): Handle size==0.
51030
51031 2004-10-01  Simon Josefsson  <jas@extundo.com>
51032             Bruno Haible  <bruno@clisp.org>
51033
51034         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
51035         (snprintf): Declare 'args'.
51036
51037 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
51038
51039         * lib/snprintf.c: Remove comments as to why each header is needed.
51040
51041 2004-10-01  Bruno Haible  <bruno@clisp.org>
51042
51043         * MODULES.html.sh: Add strsep.
51044
51045 2004-09-30  Simon Josefsson  <jas@extundo.com>
51046
51047         * modules/snprintf: New file.
51048
51049 2004-09-30  Simon Josefsson  <jas@extundo.com>
51050
51051         * m4/snprintf.m4: New file.
51052
51053 2004-09-30  Simon Josefsson  <jas@extundo.com>
51054
51055         * lib/snprintf.h, lib/snprintf.c: New files.
51056
51057 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51058
51059         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
51060         (hol_entry_help): Never translate an empty string.
51061         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
51062         * lib/argp.h (OPTION_NO_TRANS): New option.
51063
51064 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
51065
51066         * modules/argp (Maintainer): Replace Simon Josefsson
51067         by Sergey Poznyakoff.
51068
51069 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
51070
51071         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
51072         changes merged back into glibc.
51073
51074 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
51075
51076         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
51077
51078 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
51079
51080         * lib/xvasprintf.c: Include xalloc.h.
51081         (xvasprintf): Use xalloc_die, not xmalloc_die.
51082
51083 2004-09-29  Bruno Haible  <bruno@clisp.org>
51084
51085         * modules/alloca-opt: New file, derived from modules/alloca.
51086         * modules/allocsa: Depend on alloca-opt instead of alloca.
51087         * modules/setenv: Likewise.
51088         * modules/vasnprintf: Likewise.
51089         * MODULES.html.sh: Add alloca-opt.
51090
51091 2004-09-28  Simon Josefsson  <jas@extundo.com>
51092
51093         * gnulib-tool: New parameter --lgpl, to asseert that modules are
51094         LGPL, and to replace license template from GPL to LGPL.
51095
51096 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
51097
51098         * modules/dummy: Change license to LGPL.
51099
51100 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
51101
51102         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
51103
51104 2004-09-24  Simon Josefsson  <jas@extundo.com>
51105
51106         * modules/minmax (License): Change from GPL to LGPL.
51107
51108 2004-09-23  Simon Josefsson  <jas@extundo.com>
51109
51110         * gnulib-tool (--import): Typo.
51111
51112 2004-09-23  Simon Josefsson  <jas@extundo.com>
51113
51114         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
51115
51116 2004-09-22  Bruno Haible  <bruno@clisp.org>
51117
51118         * modules/*: Add 'License' field.
51119         * gnulib-tool: Accept --extract-license option.
51120         (func_get_license): New function.
51121
51122 2004-09-21  Bruno Haible  <bruno@clisp.org>
51123
51124         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
51125         Reported by Simon Josefsson.
51126
51127 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
51128
51129         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
51130         gl_AC_TYPE_LONG_LONG.
51131
51132 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
51133
51134         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
51135
51136 2004-09-18  Simon Josefsson  <jas@extundo.com>
51137         and  Paul Eggert  <eggert@cs.ucla.edu>
51138
51139         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
51140         calls with autoreconf.  Define GL_LIB.
51141
51142 2004-09-14  Karl Berry  <karl@gnu.org>
51143
51144         * config/srclist.txt: unsync setenv.c, sigh.
51145
51146 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
51147
51148         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
51149         Problem reported by Bruno Haible in:
51150         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
51151
51152 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
51153
51154         * config/srclist.txt: Comment out argp-pvh.c.
51155
51156 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
51157
51158         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
51159         in case some system header has #define'd it.  Problem reported by
51160         Soeren D. Schulze in
51161         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
51162
51163 2004-09-09  Karl Berry  <karl@gnu.org>
51164
51165         * regex.[ch]: delete from the root.  These were supposed to be
51166                 synced with emacs cvs, but this has not happened for about
51167                 a year, and anyway nothing else uses emacs regex.[ch].
51168                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
51169                 lib/regex[.ch] is untouched.
51170
51171 2004-09-09  Bruno Haible  <bruno@clisp.org>
51172
51173         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
51174
51175 2004-09-09  Bruno Haible  <bruno@clisp.org>
51176
51177         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
51178         modifications.
51179         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
51180
51181 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
51182
51183         * modules/xvasprintf: New file.
51184         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
51185
51186 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
51187
51188         * lib/xvasprintf.h: New file.
51189         * lib/xvasprintf.c: New file.
51190         * lib/xasprintf.c: New file.
51191
51192 2004-09-08  Bruno Haible  <bruno@clisp.org>
51193
51194         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
51195
51196 2004-09-08  Bruno Haible  <bruno@clisp.org>
51197
51198         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
51199         length is > INT_MAX.
51200         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
51201         more.
51202
51203 2004-09-08  Bruno Haible  <bruno@clisp.org>
51204
51205         * lib/stdint_.h: New file, taken from GNU clisp.
51206
51207 2004-09-08  Bruno Haible  <bruno@clisp.org>
51208             Oskar Liljeblad  <oskar@osk.mine.nu>
51209
51210         * modules/stdint: New file.
51211         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
51212
51213 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51214
51215         Import from coreutils.
51216         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
51217         strings on unbounded length.  alloca's performance benefits aren't
51218         that important here.
51219         (V_STRDUP): Remove.
51220         (parse_with_separator): New function, with most of the internals
51221         of the old parse_user_spec.  Allow user to omit both user and group,
51222         for compatibility with FreeBSD.
51223         Clone only the user name, not the entire spec.
51224         Do not set *uid, *gid unless entirely successful.
51225         Avoid memory leak in some failing cases.
51226         Fix regression for USER.GROUP reported by Dmitry V. Levin in
51227         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
51228         (parse_user_spec): Rewrite to use parse_with_separator.
51229
51230 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51231
51232         * modules/userspec: Don't depend on alloca.
51233
51234 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51235
51236         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
51237
51238 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51239
51240         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
51241         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
51242         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
51243
51244 2004-08-16  Simon Josefsson  <jas@extundo.com>
51245
51246         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
51247         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
51248         Add --dry-run for --import.
51249         Let user provided command line parameters override configure.ac
51250         settings.
51251
51252 2004-08-12  Simon Josefsson  <jas@extundo.com>
51253
51254         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
51255         as discussed with Paul Eggert in threads rooted at
51256         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
51257         and
51258         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
51259         Before, the test was empty, and relied on ELIDE_CODE in source
51260         code.)
51261         (gl_PREREQ_GETOPT): New macro.
51262         (gl_GETOPT): Use them.
51263
51264 2004-08-12  Simon Josefsson  <jas@extundo.com>
51265
51266         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
51267         * lib/getopt_.h: Renamed from getopt.h.
51268
51269 2004-08-12  Simon Josefsson  <jas@extundo.com>
51270
51271         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
51272         Change default library name from libfoo to libgnu.
51273         Now, if you have a configure.ac that says:
51274                 gl_SOURCE_BASE(gl)
51275                 gl_M4_BASE(gl/m4)
51276                 gl_MODULES(error getopt etcetera)
51277                 gl_INIT
51278         you can import all you need by running:
51279                 ../gnulib/gnulib-tool --import
51280
51281         * modules/getopt (Files): Rename getopt.h to getopt_.h.
51282         (Makefile.am): Rewrite, use logic from argz.
51283         (Include): Use <getopt.h> instead of "getopt.h".
51284
51285 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
51286
51287         * modules/argp (Files): Add m4/unlocked-io.m4.
51288         (Depends-on): Add extensions.
51289
51290 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
51291
51292         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
51293         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
51294         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
51295         Check for program_invocation_name, program_invocation_short_name,
51296         flockfile, funlockfile, features.h, _getopt_long_only_r.
51297
51298 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
51299
51300         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
51301         its complicated substitute.
51302         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
51303         and program_invocation_name.
51304         (__argp_basename) [!_LIBC]: Remove; the only use was
51305         replaced by its body.
51306         (__argp_short_program_name): Change condition from
51307         !defined __argp_short_program_name to
51308         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
51309         to match argp-namefrob.h.
51310         (__argp_failure): Don't assume strerror_r returns char *.
51311         * lib/argp-parse.c (N_): Define unconditionally.
51312         (argp_default_options): Fill out initializers with 0 to avoid
51313         gcc warnings.
51314
51315 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
51316
51317         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
51318         getopt1.c.
51319
51320 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51321
51322         Merge from coreutils.
51323
51324         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
51325
51326         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
51327         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
51328
51329 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51330
51331         Merge from coreutils.
51332
51333         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
51334         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
51335         for Reliant Unix 5.43.
51336
51337         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
51338         (union fooround): Use uintmax_t, not long int.
51339         The rest is a merge from libc:
51340         [defined _LIBC]: Include <shlib-compat.h>.
51341         (_obstack) [defined _LIBC]: Remove after 2.3.4.
51342
51343         * lib/settime.c (settime): Recode to avoid warning with
51344         Sun Forte C 6U2.
51345
51346         * lib/strverscmp.c: Convert to UTF-8.
51347
51348 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51349
51350         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
51351         m4/uintmax_t.m4.
51352
51353 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51354
51355         * modules/xalloc-die: New file.
51356         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
51357
51358         * modules/md5 (Files): Add m4/uint32_t.m4.
51359         * modules/sha1: Renamed from modules/sha.
51360         (Files):
51361         Rename lib/sha.h to lib/sha1.h.
51362         Rename lib/sha.c to lib/sha1.c.
51363         Rename m4/sha.m4 to m4/sha1.m4.
51364         (lib_SOURCES): Likewise.
51365         (configure.ac): Rename gl_SHA to gl_SHA1.
51366         (Include): sha.h -> sha1.h.
51367
51368 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51369
51370         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
51371         * m4/sha1.m4: Renamed from sha.m4.
51372         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
51373
51374 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51375
51376         * lib/obstack.h (obstack_empty_p):
51377         Don't assume that chunk->contents is suitably aligned.
51378         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
51379         Likewise. Problem reported by Benno in
51380         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
51381
51382         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
51383         readable.  This could be improved further but it'd take some work.
51384
51385 2004-08-08  Simon Josefsson  <jas@extundo.com>
51386
51387         * modules/xgethostname (Depends-on): Remove exit and error (not
51388         used).
51389
51390         * modules/getpass-gnu: Add getpass.h.
51391         (Depends-on): Add stdbool.
51392         * modules/getpass: Add getpass.h.
51393
51394 2004-08-08  Simon Josefsson  <jas@extundo.com>
51395
51396         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
51397         Check getpass declaration.
51398
51399 2004-08-08  Simon Josefsson  <jas@extundo.com>
51400
51401         * lib/xgethostname.c: Don't include error.h (not used).
51402
51403         * lib/getpass.h: Add.
51404         * lib/getpass.c: Include getpass.h first.
51405
51406 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
51407
51408         * lib/xalloc-die.c: New file.
51409         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
51410         All uses removed.
51411         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
51412         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
51413         xalloc-die.c.
51414         (_, N_, xalloc_die): Move to xalloc-die.c.
51415         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
51416         so that we needn't mess with xalloc_msg_memory_exhausted.
51417
51418         * lib/sha1.h: Renamed from sha.h.
51419         (SHA1_H): Renamed from _SHA_H.
51420         (sha1_ctx): Renamed from sha_ctx.
51421         (sha1_init_ctx): Renamed from sha_init_ctx.
51422         (sha1_process_block): Renamed from sha_process_block.
51423         (sha1_process_bytes): Renamed from sha_process_bytes.
51424         (sha1_finish_ctx): Renamed from sha_finish_ctx.
51425         (sha1_read_ctx): Renamed from sha_read_ctx.
51426         (sha1_stream): Renamed from sha_stream.
51427         (sha1_buffer): Renamed from sha_buffer.
51428         * lib/sha1.c: Likewise; renamed from sha.c.
51429         Do not include <sys/types.h>.
51430         Include <stddef.h> rather than <stdlib.h>.
51431
51432 2004-08-08  Bruno Haible  <bruno@clisp.org>
51433
51434         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
51435         FILESYSTEM_PREFIX_LEN.
51436         * lib/progreloc.c: Likewise.
51437         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
51438
51439 2004-08-06  Simon Josefsson  <jas@extundo.com>
51440
51441         * modules/progname (Depends-on): Don't depend on stdbool.
51442
51443 2004-08-06  Simon Josefsson  <jas@extundo.com>
51444
51445         * modules/getsubopt: New file.
51446         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51447         getsubopt.
51448
51449 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51450
51451         More merge from coreutils.
51452
51453         * m4/utimens.m4, m4/utimecmp.m4: New files.
51454         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
51455         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
51456         prereq.m4, sha.m4: Import changes from coreutils.
51457
51458 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51459
51460         More merge from coreutils.
51461         * modules/raise, modules/readtokens0, modules/utimens:
51462         * modules/utimecmp, module/xnanosleep: New files.
51463         * modules/strftime: Add lib/strftime.h.
51464         Change include from <time.h> to "strftime.h".
51465         * modules/yesno: Add lib/yesno.h.
51466         * modules/backupfile: Remove lib/addext.c.
51467         * modules/euidaccess: Add stat-macros.h.
51468         * modules/canonicalize, modules/euidaccess,
51469         modules/filemode, modules/lchown, modules/makepath,
51470         modules/rmdir, modules/stat: Likewise.
51471
51472 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51473
51474         Merge from tar.
51475         * lib/argp-help.c (make_hol, hol_append): Don't assume that
51476         SIZE_MAX is a valid preprocessor constant.
51477         (__argp_basename): Change from "#ifndef _LIBC"
51478         to "#ifndef __argp_short_program_name", so that
51479         we don't compile these functions for tar.
51480
51481         More merges from coreutils.
51482         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
51483         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
51484         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
51485         * lib/addext.c: Remove; no longer needed.
51486         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
51487         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
51488         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
51489         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
51490         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
51491         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
51492         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
51493         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
51494         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
51495         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51496         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
51497         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
51498         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
51499         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
51500         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
51501         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
51502         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
51503         Import changes from coreutils.
51504
51505 2004-08-05  Simon Josefsson  <jas@extundo.com>
51506
51507         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
51508
51509 2004-08-05  Simon Josefsson  <jas@extundo.com>
51510
51511         * m4/getsubopt.m4: New file.
51512
51513 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
51514
51515         Merge from coreutils.
51516
51517         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
51518         * m4/getcwd-path-max.m4: New files.
51519
51520         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
51521         FILESYSTEM_PREFIX_LEN ->
51522         FILE_SYSTEM_PREFIX_LEN.
51523         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
51524         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
51525         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
51526         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
51527
51528         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
51529         prerequisite modules now handle the DOS stuff.
51530         Don't check for unistd.h.
51531
51532 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
51533
51534         Merge from coreutils.
51535
51536         * lib/.gdb-history: Remove; this doesn't belong here.
51537
51538         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
51539         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
51540         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
51541         * lib/getcwd.c: New files.
51542
51543         * lib/dirname.h: Include <stdbool.h>.
51544         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
51545         for consistency with POSIX terminology.  All uses changed.
51546         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
51547         (strip_trailing_slashes): Use bool for booleans.
51548         * lib/stripslash.c (strip_trailing_slashes): Likewise.
51549
51550         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
51551         sometimes returns a positive errno value even when it succeeds.
51552         (print_errno_message) [!LIBC]: Fall back on strerror if
51553         __strerror_r fails.
51554
51555         * lib/path-concat.c (mempcpy): Don't define if a system header defines
51556         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
51557         (longest_relative_suffix): New function.
51558         (path_concat): Use it.  Assume first argument is not NULL.
51559         Port to DOS.  Omit redundant separators.
51560         Report an error instead of returning NULL.
51561         Use mempcpy instead of memcpy.
51562         (xpath_concat): Remove: not declared or used.
51563
51564         * lib/same.h: Include <stdbool.h>
51565         (same_name): Return bool, not int.
51566         * lib/same.c (same_name): Likewise.
51567         (errno): Don't declare; we assume C89 or better now.
51568
51569         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
51570         if not already defined.
51571
51572         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
51573         * lib/dup-safer.c (errno): Likewise.
51574
51575 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
51576
51577         Merge from coreutils.
51578         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
51579         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
51580         * modules/path-concat: Don't depend on strdup.
51581
51582 2004-08-03  Simon Josefsson  <jas@extundo.com>
51583
51584         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
51585         * lib/progname.h: Don't include stdbool.h.
51586
51587 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
51588
51589         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
51590         * MODULES.html.sh (func_all_modules): Remove fatal.
51591
51592 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
51593
51594         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
51595
51596 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
51597
51598         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
51599         working.
51600
51601 2004-08-02  Simon Josefsson  <jas@extundo.com>
51602
51603         * lib/getsubopt.h: New file, with comments from Bruno Haible.
51604         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
51605         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
51606
51607 2004-08-01  Simon Josefsson  <jas@extundo.com>
51608
51609         * lib/xgetdomainname.c: Include stdlib.h, for free().
51610
51611 2004-07-19  Bruno Haible  <bruno@clisp.org>
51612
51613         * MODULES.html.sh (func_all_modules): Add dummy.
51614
51615 2004-07-16  Simon Josefsson  <jas@extundo.com>
51616
51617         * modules/dummy: New file.
51618
51619 2004-07-16  Simon Josefsson  <jas@extundo.com>
51620
51621         * lib/dummy.c: New file.
51622
51623 2004-07-16  Bruno Haible  <bruno@clisp.org>
51624
51625         * lib/backupfile.h: Add extern "C" for C++.
51626         * lib/closeout.h: Likewise.
51627         * lib/copy-file.h: Likewise.
51628         * lib/findprog.h: Likewise.
51629         * lib/full-write.h: Likewise.
51630         * lib/pathname.h: Likewise.
51631         * lib/progname.h: Likewise.
51632         * lib/stpcpy.h: Likewise.
51633         * lib/stpncpy.h: Likewise.
51634         * lib/strcase.h: Likewise.
51635         * lib/strstr.h: Likewise.
51636         * lib/xalloc.h: Likewise.
51637
51638         * lib/mbswidth.h: Add extern "C" for C++.
51639         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
51640
51641 2004-07-13  Robert Millan  <robertmh@gnu.org>
51642
51643         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
51644
51645 2004-07-09  Simon Josefsson  <jas@extundo.com>
51646
51647         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
51648         failed without this.)
51649
51650 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51651
51652         * modules/chown (Files): Add lib/fchown-stub.c, since
51653         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
51654
51655 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51656
51657         * lib/fchown-stub.c: New file.
51658
51659 2004-06-24  Jim Meyering  <jim@meyering.net>
51660
51661         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
51662
51663 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51664
51665         * modules/argz: Omit "#include".
51666
51667         * MODULES.html.sh (func_all_modules): Add calloc, to match
51668         2004-06-01 addition of calloc module.
51669
51670 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51671
51672         * m4/argz.m4: New file, which is autoupdated from libtool.
51673
51674 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51675
51676         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
51677         libtool.
51678
51679 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51680
51681         * config/srclist-update: Don't insist on "USA." before the
51682         close-comment, as libtool omits the period and puts the */ on a
51683         separate line.
51684         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
51685         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
51686
51687 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
51688
51689         * modules/argz: New file.
51690         * MODULES.html.sh (func_all_modules): Add argz.
51691
51692 2004-06-12  Jim Meyering  <jim@meyering.net>
51693         and  Paul Eggert  <eggert@cs.ucla.edu>
51694
51695         * modules/hash (Files): Add lib/xalloc.h.
51696         * modules/pipe (Depends-on): Add wait-process.
51697         * modules/stat (Depends-on): Add xalloc.
51698         * modules/userspec (Files): Add lib/userspec.h.
51699         * modules/xstrto
51700
51701         Upgrade from gettext-0.13.
51702         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
51703         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
51704         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
51705
51706 2004-06-10  Jim Meyering  <jim@meyering.net>
51707
51708         * lib/calloc.c: New file.
51709
51710 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51711
51712         * lib/getdate.y (yylex): Allow space between sign and number.
51713         Problem reported by Dan Jacobson.
51714
51715 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
51716
51717         Merge from coreutils CVS.
51718
51719         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
51720         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
51721         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
51722         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
51723         xstrtol.m4: Fix copyright date and/or serial number.
51724
51725         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
51726         See if we need an fchown replacement.
51727         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
51728         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
51729         and use the replacement function if we detect either defect.
51730
51731         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
51732         gl_UTIMECMP.
51733
51734 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
51735         and  Jim Meyering  <jim@meyering.net>
51736
51737         Merge from coreutils CVS.
51738
51739         * lib/stat-macros.h: New file, with contents from file-type.h
51740         and coreutils' system.h.
51741         * lib/file-type.c: Include "stat-macros.h".
51742         * lib/file-type.h (file_type): Move all macro definitions to new file,
51743         stat-macros.h.
51744
51745         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
51746         Wrap old code with this conditional.
51747         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
51748         function that does not dereference symlinks.
51749         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
51750
51751         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
51752         dependency problems.
51753         (xreadlink): Accept new arg SIZE, for efficiency.
51754         All decls and uses changed.
51755         * lib/xreadlink.h: Include <stddef.h>, for size_t.
51756
51757         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
51758         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
51759
51760         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
51761         sysexits.h.
51762
51763 2004-06-01  Jim Meyering  <jim@meyering.net>
51764
51765         * m4/calloc.m4: New file.
51766
51767 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
51768
51769         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
51770         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
51771         Also, fix a typo in a diagnostic.
51772
51773 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
51774
51775         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
51776         or AC_FUNC_REALLOC.
51777
51778 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
51779
51780         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
51781         macros to be defined.
51782         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
51783         the allocator returns NULL because the requested size is zero.
51784
51785 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51786
51787         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
51788         var.  Add comment explaining why libc still defines it.  This
51789         merges the following patch from glibc:
51790         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
51791
51792 2004-05-20  Andreas Schwab  <schwab@suse.de>
51793
51794         * m4/free.m4: Replace free if it not known to work, not the other
51795         way round.
51796
51797 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51798
51799         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
51800         present in glibc since revision 1.1 of this file.
51801         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
51802         obstack_alignment_mask, obstack_alloc, obstack_base,
51803         obstack_blank, obstack_blank_fast, obstack_chunk_size,
51804         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
51805         obstack_grow0, obstack_init, obstack_int_grow,
51806         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
51807         obstack_next_free, obstack_object_size, obstack_ptr_grow,
51808         obstack_ptr_grow_fast, obstack_room): Remove declarations of
51809         nonexistent functions.
51810
51811 2004-05-18  Karl Berry  <karl@gnu.org>
51812
51813         * config/srclist.txt: break link for vasnprintf.c.
51814
51815 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51816
51817         Port obstack to the AS/400, where pointers are 16 bytes wide and
51818         you cannot cast an integer to a valid pointer.  This patch is
51819         currently waiting to be integrated into glibc; see
51820         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
51821
51822         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
51823         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
51824         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
51825         (struct obstack): temp member is now a union of a pointer and
51826         an integer, instead of an integer.  All integer uses changed.
51827         This does not affect the physical layout of struct obstack,
51828         except on hosts (like the AS/400) where the size or alignment of
51829         void * is greater than that of ptrdiff_t.
51830         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
51831         __STDC__)]: Store temporary in pointer member of union, not
51832         integer member.
51833         * lib/obstack.c: Include <stddef.h>, for offsetof.
51834         (struct fooalign): Remove; it doesn't need a name.
51835         (union fooround): Change double to long double, and add void *.
51836         (DEFAULT_ALIGNMENT): Use offsetof to compute.
51837         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
51838         not a macro.  Hence the values are always int; so remove all
51839         casts-to-int in uses.
51840
51841 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51842
51843         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
51844         we can get this patch merged into glibc.
51845
51846 2004-05-17  Derek R. Price  <derek@ximbiot.com>
51847             Paul Eggert  <eggert@cs.ucla.edu>
51848
51849         * m4/argp: Depend on alloca.
51850
51851 2004-05-17  Derek R. Price  <derek@ximbiot.com>
51852             Paul Eggert  <eggert@cs.ucla.edu>
51853
51854         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
51855         freecoding.
51856
51857 2004-05-17  Bruno Haible  <bruno@clisp.org>
51858
51859         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
51860         precision that consists of a '.' followed by an empty digit string.
51861         Patch by Tor Lillqvist <tml@iki.fi>.
51862
51863 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51864
51865         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
51866         for backward compatibility with older code.  We need our own
51867         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
51868         it under some other name, and our alloca.h will define it.
51869
51870 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51871             Derek Price  <derek@ximbiot.com>
51872
51873         * lib/alloca.c: Include <alloca.h>, to get our interface.
51874         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
51875         include <alloca.h> first.  Use C89 prototype for alloca; this
51876         requires including <stddef.h> for size_t.  Use extern "C" if C++.
51877         Use #elif for simplicity, since we can assume C89 now.
51878         Don't try to source the system alloca.h since it will not be found
51879         and to prevent recursively including its replacement.
51880         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
51881         * lib/regex.c: Likewise.
51882
51883 2004-05-16  Derek Price  <derek@ximbiot.com>
51884             Paul Eggert  <eggert@cs.ucla.edu>
51885
51886         getline cleanup.  This changes the getndelim2 API: both order of
51887         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
51888         no delimiter).
51889
51890         * lib/getline.c: Don't include stddef.h or stdio.h, since our
51891         interface does that.
51892         (getline): Always use getdelim, so that we don't have two
51893         copies of this code.
51894         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
51895         if available.
51896         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
51897         (GETNDELIM2_MAXIMUM): New macro.
51898         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
51899         instead of the old practice of delim2==0.  All callers changed.
51900         Return -1 on overflow, instead of returning junk.
51901         Do not set *linesize unless allocation succeeds.
51902         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
51903         that we include sys/types.h.
51904         * lib/getnline.h: Likewise.
51905         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
51906         (getndelim2): Reorder arguments.
51907         * lib/getnline.c (getnline, getndelim):
51908         Don't discard the NMAX argument.
51909         (getnline): Invoke getndelim, to avoid code duplication.
51910         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
51911         of (size_t) -1 by callers of the getnline family.
51912
51913 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51914
51915         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
51916         Check for gettimeofday.
51917         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
51918         Check for settimeofday, stime.
51919
51920 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51921
51922         * lib/nanosleep.c (suspended): Change its type from int to
51923         sig_atomic_t volatile.
51924         (first_call): Make it private to rpl_nanosleep, and have it
51925         be zero initially as that's a bit faster.
51926         (my_usleep): Round up fractional times instead of truncating them,
51927         as this is the usual meaning for 'sleep'.
51928
51929         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
51930         doesn't work.
51931         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
51932         (ENOSYS): Define if not defined.
51933         (settime): Fall back on stime if it exists and settimeofday fails.
51934         But don't bother with fallbacks if a method fails with errno == EPERM.
51935
51936 2004-05-11  Jim Meyering  <jim@meyering.net>
51937
51938         Prior to this change, the save_cwd caller required read access to the
51939         current directory on most systems (ones with the fchdir function).
51940
51941         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
51942         fails, try write-only, and finally, resort to using xgetcwd.
51943
51944 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
51945
51946         * lib/obstack.c, obstack.h: Import changes from libc.
51947
51948 2004-04-28  Bruno Haible  <bruno@clisp.org>
51949
51950         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
51951         also implicitly appends .exe to executables.
51952         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
51953         accepts Windows pathnames.
51954         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
51955         Treat Cygwin like Windows, since it now accepts Windows pathnames.
51956         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
51957         Treat Cygwin like Windows, since it now accepts Windows pathnames.
51958         Reported by Derek Robert Price <derek@ximbiot.com>.
51959
51960 2004-04-21  Karl Berry  <karl@gnu.org>
51961
51962         * config/srclist.txt (localcharset.c): break sync.
51963
51964 2004-04-20  Paul Eggert  <eggert@twinsun.com>
51965
51966         * m4/host-os.m4: Add a copyright notice.
51967
51968 2004-04-20  Jim Meyering  <jim@meyering.net>
51969
51970         Change UTILS_ to gl_ in AC_DEFINE'd names.
51971         Change utils_- and jm_-prefixed variables, too.
51972         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
51973         UTILS_FUNC_MKDIR_TRAILING_SLASH.
51974         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
51975
51976         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
51977         Don't emit trailing blanks.
51978         Also rename jm_-prefixed variables to have gl_ prefix.
51979
51980         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
51981         Also rename jm_-prefixed variables to have gl_ prefix.
51982
51983         * m4/jm-macros.m4: Reflect the renamings.
51984         * m4/prereq.m4: Likewise.
51985
51986 2004-04-20  Jim Meyering  <jim@meyering.net>
51987
51988         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
51989         memory.
51990
51991 2004-04-20  Jim Meyering  <jim@meyering.net>
51992             Bruno Haible  <bruno@clisp.org>
51993
51994         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
51995         memory when realloc fails.
51996
51997 2004-04-19  Jim Meyering  <jim@meyering.net>
51998
51999         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
52000         now that readutmp.c may call `free (0)'.
52001
52002 2004-04-19  Bruno Haible  <bruno@clisp.org>
52003
52004         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
52005         * m4/inttypes_h.m4: Likewise.
52006         * m4/stdint_h.m4: Likewise.
52007         * m4/intmax_t.m4: Likewise.
52008         * m4/uintmax_t.m4: Likewise.
52009
52010 2004-04-18  Jim Meyering  <jim@meyering.net>
52011
52012         * m4/prereq.m4: Don't forbid jm_ prefix.
52013
52014         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
52015         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
52016         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
52017         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
52018         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
52019         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
52020         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
52021         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
52022         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
52023         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
52024         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
52025         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
52026         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
52027         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
52028         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
52029         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
52030         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
52031         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
52032         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
52033
52034 2004-04-18  Jim Meyering  <jim@meyering.net>
52035
52036         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
52037         failure, don't leak memory and do call END_UTMP_ENT.
52038
52039 2004-04-16  Jim Meyering  <jim@meyering.net>
52040
52041         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
52042         coreutils' stat program.
52043         (gl_PREREQ): Don't require jm_PREREQ_STAT.
52044
52045 2004-04-11  Paul Eggert  <eggert@twinsun.com>
52046
52047         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
52048         C89.
52049         (CHAR_BIT): Remove, since we assume C89.
52050         Include <stdint.h> if available, as per current Autoconf CVS advice.
52051
52052 2004-03-31  Jim Meyering  <jim@meyering.net>
52053
52054         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
52055         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
52056         * m4/xalloc.m4: Likewise.
52057
52058 2004-03-30  Paul Eggert  <eggert@twinsun.com>
52059
52060         Merge from coreutils.
52061
52062         * m4/inttostr.m4: New file.
52063         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
52064         Require AM_STDBOOL_H and gl_TIMESPEC instead.
52065         Require gl_CLOCK_TIME.
52066         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
52067
52068 2004-03-30  Paul Eggert  <eggert@twinsun.com>
52069
52070         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
52071         not bool, to be more consistent with Unix conventions.
52072         Suggested by Bruno Haible.
52073
52074         Merge from coreutils.
52075
52076         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
52077         * lib/umaxtostr.c: New files.
52078
52079         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
52080         the usual <time.h> dance.
52081         (get_date): Change signature to support fractional time stamps.
52082         All callers changed.
52083         * lib/getdate.y: Include "getdate.h" first, as we can now
52084         assume C89 and don't need to worry about 'const'.
52085         Similarly, include "unlocked-io.h" near start, not in middle.
52086         Include <limits.h>.
52087         (textint.value): Use long int rather than int.
52088         (textint.digits): Use size_t rather than int.
52089         (BILLION, LOG10_BILLION): New constants.
52090         (parser_control): New member rel_ns.  Members day_ordinal,
52091         time_zone, month, day, hour, minutes, rel_year, rel_month,
52092         rel_day, rel_hour, rel_minutes, rel_seconds
52093         are now long int, not int.  Member seconds is now struct timespec,
52094         not int.  New member timespec_seen.  Members dates_seen, days_seen,
52095         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
52096         not int.
52097         (%union.intval): Now long int, not int.
52098         New member timespec.
52099         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
52100         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
52101         (spec): Now is a timespec or an item list.
52102         (timespec, items): New nonterminals.
52103         (time, rel, relunit, number, get_date):
52104         Add support for fractional seconds.
52105         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
52106         (gmtime, localtime, mktime): Remove decls; not needed with C89.
52107         (to_hour): First arg is now long int, not int.
52108         (to_year): Returns long int, not int.
52109         Don't treat year -70 like 70.
52110         (tm_diff): Returns long int, not int.
52111         (lookup_word): Use bool instead of int when appropriate.
52112         (yylex): Use size_t for count, not int.
52113         Detect overflow when parsing large integer constants.
52114         Add support for fractions.
52115         (get_date): Make pointers 'const' if possible.
52116         Use more-portable code to detect integer overflow.
52117         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
52118         Don't use ctime; it's not reliable if the year has >4 digits.
52119
52120         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
52121         This is for compatibility with BSD.
52122
52123         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
52124         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
52125         From coreutils' system.h.
52126
52127         * lib/userspec.c: Don't include "posixver.h".
52128         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
52129         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
52130         compatible extension.  Simplify code by removing a boolean int
52131         that was always nonzero if a string was nonnull.
52132
52133 2004-03-30  Jim Meyering  <jim@meyering.net>
52134
52135         Merge from coreutils.
52136
52137         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
52138         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
52139         on some systems one must include <grp.h> before it.
52140         Reported by Christian Krackowizer.
52141
52142 2004-03-30  Jim Meyering  <jim@meyering.net>
52143
52144         Merge from coreutils.
52145
52146         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
52147
52148         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
52149         an empty input stream.
52150
52151         * lib/readtokens.c: Include <stdbool.h>.
52152         (readtoken): Use `size_t' rather than int/long.
52153         All callers adjusted.
52154         Use `bool' rather than `int' where appropriate.
52155         Use memset rather than an explicit loop.
52156         Use x2nrealloc rather than xrealloc.
52157         Allow the use of `\0' as a delimiter.
52158         (readtokens): Likewise.
52159         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
52160
52161 2004-03-30  Jim Meyering  <jim@meyering.net>
52162
52163         * m4/realloc.m4: Remove file, since now it does no more than
52164         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
52165         the `configure.ac' section of module/realloc.
52166         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
52167
52168 2004-03-30  Bruno Haible  <bruno@clisp.org>
52169
52170         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
52171         nonnull.
52172
52173 2004-03-29  Paul Eggert  <eggert@twinsun.com>
52174
52175         Merge changes to getloadavg.c from coreutils and Emacs.
52176
52177         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
52178         Define to an expression, not to the empty string.
52179         Include cloexec.h and xalloc.h.
52180         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
52181         Use set_cloexec_flag rather than rolling our own.
52182         * lib/cloexec.c, lib/cloexec.h: New files.
52183
52184 2004-03-29  Paul Eggert  <eggert@twinsun.com>
52185
52186         * m4/cloexec.m4: New file.
52187
52188 2004-03-18  Paul Eggert  <eggert@twinsun.com>
52189
52190         * lib/getopt.h: Sync with libc CVS.
52191
52192 2004-03-18  Paul Eggert  <eggert@twinsun.com>
52193             Bruno Haible  <bruno@clisp.org>
52194
52195         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
52196         mbswidth.
52197
52198 2004-03-18  Paul Eggert  <eggert@twinsun.com>
52199             Bruno Haible  <bruno@clisp.org>
52200
52201         * lib/mbswidth.h: Include <wchar.h> only if
52202         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
52203         <wchar.h>.
52204         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
52205
52206 2004-03-09  Paul Eggert  <eggert@twinsun.com>
52207
52208         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
52209         Sync with libc CVS.
52210         * lib/getopt_int.h: New file, also synced from libc.
52211
52212 2004-03-09  Paul Eggert  <eggert@twinsun.com>
52213
52214         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
52215         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
52216         Bring back getopt.c, getopt.h, getopt1.c.
52217
52218 2004-03-07  Paul Eggert  <eggert@twinsun.com>
52219
52220         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
52221         All uses changed.  Check for sa_sigaction member; this fixes
52222         a bug first reported by Jason Andrade in
52223         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
52224
52225 2004-03-07  Paul Eggert  <eggert@twinsun.com>
52226
52227         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
52228         '#if' expressions.  Unlike the code it replaces, it does not
52229         depend on (defined _SC_PAGESIZE).  However, it does depend on
52230         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
52231         first reported by Jason Andrade in
52232         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
52233
52234 2004-02-25  Simon Josefsson  <jas@extundo.com>
52235
52236         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
52237
52238 2004-02-25  Simon Josefsson  <jas@extundo.com>
52239
52240         * lib/strdup.h: New file.
52241         * lib/strdup.c: Include it.
52242         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
52243         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
52244
52245 2004-02-23  Karl Berry  <karl@gnu.org>
52246
52247         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
52248         (from fencepost.gnu.org:/gd/gnuorg).
52249
52250 2004-02-23  Karl Berry  <karl@gnu.org>
52251
52252         * config/srclistvars.sh (GNUORG) [karl]: redefine.
52253         * config/srclist.txt: add maintain/standards documents.
52254
52255 2004-02-18  Bruno Haible  <bruno@clisp.org>
52256
52257         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
52258         Reported by Derek Robert Price <derek@ximbiot.com>.
52259
52260 2004-02-16  Karl Berry  <karl@gnu.org>
52261
52262         * config/mkinstalldirs, install-sh: update from automake.
52263
52264 2004-02-06  Karl Berry  <karl@gnu.org>
52265
52266         * m4/po.m4: update from gettext 0.14.1.
52267
52268 2004-02-06  Karl Berry  <karl@gnu.org>
52269
52270         * lib/config.charset: update from gettext 0.14.1.
52271
52272 2004-02-05  Paul Eggert  <eggert@twinsun.com>
52273
52274         Add comments and code, prompted by suggestions from Bruno Haible
52275         for sh-quote.
52276         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
52277         describing the enum quoting_style values.
52278         * lib/quotearg.c (quotearg_alloc): New function.
52279         (quotearg_buffer_restyled): Treat lone { and } as special.
52280         Treat = as special.  Work around bug with older shells
52281         that "see" a '\' that is really the 2nd byte of a multibyte char.
52282         Quote empty string with shell_quoting_style.
52283
52284 2004-02-03  Bruno Haible  <bruno@clisp.org>
52285
52286         * m4/pipe.m4: New file, from GNU gettext.
52287
52288 2004-02-03  Bruno Haible  <bruno@clisp.org>
52289
52290         * lib/pipe.h: New file, from GNU gettext.
52291         * lib/pipe.c: New file, from GNU gettext.
52292
52293 2004-01-27  Bruno Haible  <bruno@clisp.org>
52294
52295         * m4/execute.m4: New file, from GNU gettext.
52296
52297 2004-01-27  Bruno Haible  <bruno@clisp.org>
52298
52299         * lib/execute.h: New file, from GNU gettext.
52300         * lib/execute.c: New file, from GNU gettext.
52301         * lib/w32spawn.h: New file, from GNU gettext.
52302
52303 2004-01-24  Paul Eggert  <eggert@twinsun.com>
52304
52305         Merge from diffutils.
52306
52307         * lib/file-type.c (file_type): Add typed memory objects.
52308         * lib/file-type.h (S_TYPEISTMO): New macro.
52309
52310         * lib/c-stack.h (c_stack_action): Remove argv argument.
52311         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
52312         (die): Don't calculate message unless segv_action returns.
52313         (get_stack_location, min_address_from_argv, max_address_from_argv,
52314         volatile stack_base, volatile_stack_size): Remove.
52315         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
52316         that every segmentation violation is a stack overflow.  (Ouch!)
52317         See Debian bug 136249 (still outstanding) for more info about why
52318         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
52319
52320 2004-01-24  Paul Eggert  <eggert@twinsun.com>
52321
52322         Exit-status fix from coreutils.
52323
52324         Use exit_failure consistently in place of EXIT_FAILURE,
52325         so that program exit statuses are consistent on failure.
52326
52327         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
52328         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
52329         * lib/argmatch.h: Comment fix to match the above.
52330         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
52331         Now a macro referring to exit_failure, instead of a separate
52332         variable.  Include "exitfail.h" to get it.
52333         * lib/xstrtol.h: Include "exitfail.h".
52334         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
52335
52336         * lib/long-options.c (parse_long_options): Use prototype
52337         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
52338         for clarity.
52339
52340 2004-01-21  Jim Meyering  <jim@meyering.net>
52341
52342         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
52343         so as not to conflict with a different-sized __mktime_internal
52344         function in GNU libc.
52345         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
52346         Problem building statically-linked `ls' reported by Michael Brunnbauer.
52347
52348 2004-01-20  Karl Berry  <karl@gnu.org>
52349
52350         * config/config.guess: update from config.
52351
52352         * config/srclistvars.sh: GNUWWWLICENSES for karl.
52353
52354 2004-01-20  Bruno Haible  <bruno@clisp.org>
52355
52356         Safer stack allocation.
52357         * lib/setenv.c: Include allocsa.h.
52358         (alloca): Remove fallback definition.
52359         (freea): Remove macro.
52360         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
52361         instead of freea.
52362
52363 2004-01-20  Bruno Haible  <bruno@clisp.org>
52364
52365         * m4/eealloc.m4: New file, from GNU gettext.
52366
52367 2004-01-20  Bruno Haible  <bruno@clisp.org>
52368
52369         * m4/allocsa.m4: New file, from GNU gettext.
52370
52371 2004-01-20  Bruno Haible  <bruno@clisp.org>
52372
52373         * lib/xallocsa.h: New file, from GNU gettext.
52374         * lib/xallocsa.c: New file, from GNU gettext.
52375
52376 2004-01-20  Bruno Haible  <bruno@clisp.org>
52377
52378         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
52379
52380 2004-01-20  Bruno Haible  <bruno@clisp.org>
52381
52382         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
52383         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
52384         specially.
52385
52386 2004-01-20  Bruno Haible  <bruno@clisp.org>
52387
52388         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
52389         patch.
52390
52391 2004-01-20  Bruno Haible  <bruno@clisp.org>
52392
52393         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
52394
52395 2004-01-20  Bruno Haible  <bruno@clisp.org>
52396
52397         * lib/eealloc.h: New file.
52398
52399 2004-01-20  Bruno Haible  <bruno@clisp.org>
52400
52401         * lib/binary-io.h: Avoid warnings on Cygwin.
52402
52403 2004-01-20  Bruno Haible  <bruno@clisp.org>
52404
52405         * lib/allocsa.h: New file, from GNU gettext.
52406         * lib/allocsa.c: New file, from GNU gettext.
52407
52408 2004-01-18  Karl Berry  <karl@gnu.org>
52409
52410         * doc/gpl.texi, doc/lgpl.texi: new files.
52411
52412 2004-01-18  Karl Berry  <karl@gnu.org>
52413
52414         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
52415         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
52416
52417 2004-01-15  Paul Eggert  <eggert@twinsun.com>
52418
52419         Merge from coreutils.
52420
52421         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
52422         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
52423         (gl_DEFAULT_POSIX2_VERSION): Move
52424         the documentation from 'configure' into 'config.hin',
52425         so that 'configure --help' isn't burdened by it and
52426         we don't have to worry about its formatting there.
52427         Reword the documentation so that it's more succinct
52428         and can be run together into a single paragraph.
52429         * m4/same.m4 (gl_SAME): Check for pathconf.
52430
52431 2004-01-15  Paul Eggert  <eggert@twinsun.com>
52432
52433         Merge from coreutils.
52434
52435         * lib/posixver.c: Include posixver.h.
52436
52437         * lib/same.c: Include <stdbool.h>, <limits.h>.
52438         (_POSIX_NAME_MAX): Define if not defined.
52439         (MIN): New macro.
52440         (same_name): If file names are silently truncated, report
52441         that the file names are the same if they are the same after
52442         the silent truncation.
52443
52444         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
52445         conversion function.
52446         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
52447         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
52448         longer needed.
52449
52450 2004-01-15  Jim Meyering  <jim@meyering.net>
52451
52452         Merge from coreutils.
52453
52454         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
52455         if no library is required.
52456         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
52457         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
52458         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
52459         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
52460         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
52461         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
52462         value, $ac_cv_search_crypt, if it's "none required".
52463         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
52464         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
52465         not gl_FUNC_GETLOADAVG.
52466         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
52467         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
52468
52469 2004-01-15  Jim Meyering  <jim@meyering.net>
52470
52471         Merge from coreutils.
52472
52473         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
52474         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
52475         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
52476
52477         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
52478         optional configure-time default.
52479
52480         * lib/version-etc.c (version_etc_copyright): Update copyright date.
52481
52482         * lib/xreadlink.c (xreadlink): Correct outdated comment.
52483
52484 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
52485
52486         Merge from coreutils.
52487
52488         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
52489         value, $ac_cv_search_nanosleep, if it's "none required".
52490
52491 2004-01-14  Paul Eggert  <eggert@twinsun.com>
52492
52493         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
52494         with like-named macro in fnmatch.c.
52495         (EXT): Use an internal constant instead.
52496
52497         Merge fnmatch patches from glibc.
52498         * lib/fnmatch.c (mbsinit): Remove define.
52499         Add libc_hidden_ver (__fnmatch, fnmatch).
52500         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
52501         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
52502
52503 2004-01-14  Karl Berry  <karl@gnu.org>
52504
52505         * config/install-sh: update from automake.
52506
52507 2004-01-13  Karl Berry  <karl@gnu.org>
52508
52509         * config/install-sh: update from automake.
52510
52511 2004-01-09  Karl Berry  <karl@gnu.org>
52512
52513         * config/install-sh: update from automake.
52514
52515 2004-01-05  Karl Berry  <karl@gnu.org>
52516
52517         * config/config.{sub,guess}: update from config.
52518
52519 2003-12-31  Karl Berry  <karl@gnu.org>
52520
52521         * config/depcomp: update from automake.
52522
52523 2003-12-14  Karl Berry  <karl@gnu.org>
52524
52525         * lib/config.charset: update from gettext-runtime.
52526
52527 2003-12-03  Paul Eggert  <eggert@twinsun.com>
52528
52529         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
52530         Bug reported by Alfred M. Szmidt.
52531
52532 2003-12-03  Bruno Haible  <bruno@clisp.org>
52533
52534         * m4/gettext.m4: Upgrade from gettext-0.13.
52535         * m4/po.m4: Upgrade from gettext-0.13.
52536         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
52537         * m4/intmax.m4: New file, from gettext-0.13.
52538         * m4/printf-posix.m4: New file, from gettext-0.13.
52539
52540 2003-11-29  Karl Berry  <karl@gnu.org>
52541
52542         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
52543
52544 2003-11-25  Paul Eggert  <eggert@twinsun.com>
52545             Bruno Haible  <bruno@clisp.org>
52546
52547         * lib/printf-parse.h: Don't include sys/types.h.
52548         (ARG_NONE): New macro.
52549         (char_directive): Change type of *arg_index fields to size_t.
52550         * lib/printf-parse.c: Don't include sys/types.h.
52551         (SSIZE_MAX): Remove macro.
52552         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
52553         Remove unnecessary overflow check.
52554         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
52555         fields.
52556
52557 2003-11-25  Bruno Haible  <bruno@clisp.org>
52558
52559         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
52560
52561 2003-11-25  Bruno Haible  <bruno@clisp.org>
52562
52563         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
52564         gt_TYPE_SSIZE_T.
52565
52566 2003-11-24  Paul Eggert  <eggert@twinsun.com>
52567
52568         * modules/alloca: Remove dependency on xalloc.
52569
52570 2003-11-24  Paul Eggert  <eggert@twinsun.com>
52571
52572         * lib/alloca.c: Remove dependency on xalloc module.
52573         (xalloc_die): Remove.
52574         (memory_full) [!defined emacs]: New macro.
52575         [!defined emacs]: Don't include xalloc.h.
52576         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
52577         address arithmetic overflows.  Change datatypes a bit to avoid
52578         unnecessary casts.
52579
52580 2003-11-22  Jim Meyering  <jim@meyering.net>
52581
52582         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
52583         s/size/size_t/.
52584
52585 2003-11-21  Karl Berry  <karl@gnu.org>
52586
52587         * config/config.{sub,guess}: update from config.
52588
52589 2003-11-18  Karl Berry  <karl@gnu.org>
52590
52591         * config/config.{sub,guess}: update from config.
52592
52593         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
52594
52595 2003-11-17  Paul Eggert  <eggert@twinsun.com>
52596
52597         * README: Mention that S+T cannot overflow if S is the size of
52598         an existing object and T is sufficiently small.
52599
52600 2003-11-17  Jim Meyering  <jim@meyering.net>
52601
52602         On systems without utime and without a utimes function capable of
52603         dealing with a NULL struct utimbuf* argument, this utime replacement
52604         could -- in unusual circumstances -- leak a file descriptor.
52605         * lib/utime.c: Include <unistd.h> and <errno.h>.
52606         (utime_null): Be sure to close `fd' and to preserve errno.
52607         Reported by Geoff Collyer via Arnold Robbins.
52608
52609 2003-11-17  Bruno Haible  <bruno@clisp.org>
52610
52611         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
52612         (Depends-on): Add xsize.
52613
52614 2003-11-17  Bruno Haible  <bruno@clisp.org>
52615
52616         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
52617
52618 2003-11-17  Bruno Haible  <bruno@clisp.org>
52619
52620         * lib/vasnprintf.c (alloca): Remove fallback definition.
52621         (freea): Remove definition.
52622         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
52623         Reported by Paul Eggert.
52624
52625 2003-11-16  Paul Eggert  <eggert@twinsun.com>
52626             Bruno Haible  <bruno@clisp.org>
52627
52628         Protect against address arithmetic overflow.
52629         * lib/printf-args.h: Include stddef.h.
52630         (arguments): Change type of field 'count' to size_t.
52631         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
52632         'unsigned int' where appropriate.
52633         * lib/printf-parse.h: Include sys/types.h.
52634         (char_directive): Change type of *arg_index fields to ssize_t.
52635         (char_directives): Change type of fields 'count', max_*_length to
52636         size_t.
52637         * lib/printf-parse.c: Include sys/types.h and xsize.h.
52638         (SSIZE_MAX): Define fallback value.
52639         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
52640         instead of 'int' where appropriate. Check a_allocated, d_allocated
52641         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
52642         * lib/vasnprintf.c: Include xsize.h.
52643         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
52644         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
52645         overflow. Avoid wraparound when converting a width or precision from
52646         decimal to binary.
52647
52648 2003-11-16  Bruno Haible  <bruno@clisp.org>
52649
52650         Update from GNU gettext.
52651         * lib/printf-parse.c: Generalize to it can be compiled for wide
52652         strings.
52653         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
52654         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
52655         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
52656         SNPRINTF): New macros.
52657         Don't include <alloca.h> if the file is used inside libintl.
52658         (local_wcslen): New function, for Solaris 2.5.1.
52659         (VASNPRINTF): Use it instead of wcslen.
52660
52661 2003-11-16  Bruno Haible  <bruno@clisp.org>
52662
52663         * lib/xsize.h (xmax): New function.
52664         (xsum, xsum3, xsum4): Declare as "pure" functions.
52665
52666 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52667
52668         * modules/xalloc (Files): Undo latest change, since xalloc.h
52669         no longer needs SIZE_MAX or PTRDIFF_MAX.
52670
52671 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52672
52673         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
52674         gl_PTRDIFF_MAX.
52675
52676 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52677
52678         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
52679         "return", to pacify some unknown compiler.  Problem reported
52680         by Joerg Schilling.
52681
52682 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52683
52684         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
52685         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
52686         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
52687         heuristic is just as accurate as far as we know, and it removes a
52688         dependency on size_max.m4 and ptrdiff_max.m4.
52689
52690 2003-11-11  Bruno Haible  <bruno@clisp.org>
52691
52692         * modules/xsize (Files): Add m4/size_max.m4.
52693         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
52694
52695 2003-11-11  Bruno Haible  <bruno@clisp.org>
52696
52697         * m4/size_max.m4: New file.
52698         * m4/ptrdiff_max.m4: New file.
52699         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
52700         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
52701         (gl_XALLOC): Invoke it.
52702
52703 2003-11-11  Bruno Haible  <bruno@clisp.org>
52704
52705         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
52706         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
52707         defined.
52708
52709 2003-11-10  Paul Eggert  <eggert@twinsun.com>
52710
52711         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
52712         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
52713         rejected some allocations of exactly SIZE_MAX - 2 bytes.
52714         From Bruno Haible.
52715         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
52716         not (size_t) -1, since it's defined here.
52717
52718 2003-11-09  Karl Berry  <karl@gnu.org>
52719
52720         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
52721
52722 2003-11-06  Paul Eggert  <eggert@twinsun.com>
52723
52724         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
52725         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
52726         Reject sizes of exactly SIZE_MAX bytes.
52727         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
52728         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
52729
52730 2003-11-05  Bruno Haible  <bruno@clisp.org>
52731
52732         * lib/xsize.h: Include limits.h, to avoid a possible collision with
52733         SIZE_MAX defined in <limits.h> on Solaris.
52734
52735 2003-11-04  Jim Meyering  <jim@meyering.net>
52736
52737         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
52738         variable names, rather than @VAR@.
52739         * modules/poll: Likewise.
52740
52741 2003-11-04  Bruno Haible  <bruno@clisp.org>
52742
52743         * modules/xsize: New file.
52744         * modules/linebreak: Depend on xsize.
52745         * MODULES.html.sh (func_all_modules): Add xsize.
52746
52747 2003-11-04  Bruno Haible  <bruno@clisp.org>
52748
52749         * m4/xsize.m4: New file.
52750
52751 2003-11-04  Bruno Haible  <bruno@clisp.org>
52752
52753         * lib/xsize.h: New file.
52754         * lib/linebreak.c: Include xsize.h.
52755         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
52756         argument for overflow.
52757         Suggested by Paul Eggert.
52758
52759 2003-11-03  Karl Berry  <karl@gnu.org>
52760
52761         * config/config.{guess,sub}: update from config.
52762
52763 2003-11-03  Jim Meyering  <jim@meyering.net>
52764
52765         * modules/userspec (lib_SOURCES): Add userspec.h.
52766         (Include): Add "userspec.h".
52767         Improve description.
52768
52769 2003-11-03  Jim Meyering  <jim@meyering.net>
52770
52771         * lib/userspec.c: Include "userspec.h".
52772         * lib/userspec.h: New file.
52773
52774 2003-11-03  Bruno Haible  <bruno@clisp.org>
52775
52776         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
52777
52778 2003-11-03  Bruno Haible  <bruno@clisp.org>
52779
52780         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
52781         available, to avoid (extremely rare) race condition.
52782         Suggested by Paul Eggert.
52783
52784 2003-11-02  Karl Berry  <karl@gnu.org>
52785
52786         * config/srclist.txt (vasprintf.c): sync broken, sigh.
52787
52788 2003-10-31  Paul Eggert  <eggert@twinsun.com>
52789
52790         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
52791         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
52792         (read_filesystem_list): Set and use me_type_malloced.
52793         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
52794         whatever the type happens to be), for brevity and consistency.
52795         Check for size calculation overflow on Alphas running OSF/1.
52796
52797 2003-10-31  Jim Meyering  <jim@meyering.net>
52798
52799         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
52800
52801         * lib/linebuffer.c: Include <string.h> for declaration of memset.
52802
52803 2003-10-30  Paul Eggert  <eggert@twinsun.com>
52804             Bruno Haible  <bruno@clisp.org>
52805
52806         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
52807         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
52808
52809 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
52810
52811         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
52812         netbsd*-gnu*.  Suggested by Robert Millan.
52813
52814 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52815
52816         * modules/group-member: Depend on stdbool.
52817
52818 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52819
52820         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
52821
52822 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52823
52824         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
52825         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
52826         after the 'gnu' in these cases.  This fixes some bugs in the
52827         previous change, and is based on suggestions by Robert Millan.
52828
52829 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52830
52831         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
52832         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
52833         no longer needed.
52834         * lib/quotearg.c (quotearg_n_options): Use it.
52835         * lib/group-member.c: Include <stdbool.h>.
52836         (free_group_info): Arg is now const *; don't free arg.
52837         (get_group_info): Now returns bool and accepts struct group_info *,
52838         rather than returning a malloc'ed struct group_info *.
52839         All uses changed.  Check for overflow in internal size calculation.
52840
52841         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
52842         rather than xmalloc/xrealloc.
52843         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
52844         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
52845         conformance bug: the old code used a pointer after freeing the
52846         storage that it addressed.
52847         * lib/hash.c (hash_initialize): Simplify the code by using
52848         xalloc_oversized rather than doing it by hand.
52849         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
52850         the buffer preserved.  Use free and xmalloc instead.
52851         * lib/quotearg.c (quotearg_n_options): Likewise.
52852         Use a simpler test for size overflow.  Don't use xalloc_oversized
52853         because unsigned int might be wider than size_t (!); this suggests
52854         that we should switch from unsigned int to size_t for slot numbers.
52855
52856 2003-10-28  Paul Eggert  <eggert@twinsun.com>
52857
52858         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
52859         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
52860         NetBSD kernels.  Requested by Richard Stallman.
52861
52862 2003-10-27  Paul Eggert  <eggert@twinsun.com>
52863
52864         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
52865         to allocate the returned structure.  Do not allocate a subarray,
52866         as x2nrealloc will do that.
52867         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
52868         instead of xnrealloc.
52869         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
52870
52871 2003-10-27  Bruno Haible  <bruno@clisp.org>
52872
52873         * lib/stdbool_.h: Better support for BeOS.
52874
52875 2003-10-26  Paul Eggert  <eggert@twinsun.com>
52876
52877         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
52878         now uses inline.
52879
52880 2003-10-26  Paul Eggert  <eggert@twinsun.com>
52881
52882         * lib/xalloc.h (xalloc_oversized): New static inline function, for
52883         callers that want to do their own size-overflow checking.  Include
52884         <stdbool.h>, since xalloc_oversized returns bool.
52885         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
52886         to use xalloc_oversized.
52887
52888         Add two functions x2realloc, x2nrealloc, for programs that grow
52889         arrays dynamically by doubling their sizes.
52890         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
52891         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
52892         New functions.
52893
52894         Port to C99 semantics for 'inline' of external functions.
52895         Bug reported by Bruno Haible.
52896         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
52897         with the old contents of xnmalloc.
52898         (xnmalloc, xmalloc): Use it.
52899         (xnrealloc_inline): New static inline function,
52900         with the old contents of xnrealloc.
52901         (xnrealloc, xrealloc): Use it.
52902
52903         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
52904         that.
52905
52906 2003-10-26  Karl Berry  <karl@gnu.org>
52907
52908         * config/srclist.txt (COPYING.DOC): no longer available from
52909         /gd/gnuorg; don't know where the ultimate source is.
52910
52911 2003-10-25  Paul Eggert  <eggert@twinsun.com>
52912
52913         Fix several address-calculation bugs in the hash modules,
52914         plus some minor code cleanup.
52915
52916         * lib/hash.h: Include <stdbool.h>, for bool.
52917         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
52918         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
52919         hash_get_n_entries, hash_get_max_bucket_length,
52920         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
52921         hash_rehash): Use size_t rather than unsigned.
52922         * lib/hash.c (struct hash_table, hash_get_n_buckets,
52923         hash_get_n_buckets_used, hash_get_n_entries,
52924         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
52925         hash_get_entries, hash_do_for_each, hash_string, is_prime,
52926         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
52927         Likewise.
52928         (SIZE_MAX): Define if not defined.
52929         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
52930         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
52931         hash_print):
52932         Use const * when possible.
52933         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
52934         (check_tuning): Fix bug: if tuning parameters were very close to
52935         0 or 1, rounding errors could have caused subscript violations.
52936         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
52937         (hash_initialize): Add 'fail:' label
52938         to free table and return NULL, and use it to simplify code.
52939         Use calloc rather than clearing the storage ourself.
52940         (hash_initialize, hash_rehash): Check for arithmetic overflow in
52941         buffer size calculations.
52942         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
52943         Include <stddef.h>, for size_t.
52944         * lib/hash-pjw.c (hash_pjw): Likewise.
52945         Switch to method described by Bruno Haible.
52946         Include <limits.h>, for CHAR_BIT.
52947         (SIZE_BITS): New macro.
52948
52949 2003-10-23  Paul Eggert  <eggert@twinsun.com>
52950
52951         * m4/getline.m4 (AM_FUNC_GETLINE):
52952         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
52953         hosts.  Problem reported by Derek Robert Price in
52954         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
52955         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
52956         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
52957
52958 2003-10-21  Paul Eggert  <eggert@twinsun.com>
52959
52960         * lib/getndelim2.c (getndelim2): When size calculation overflows,
52961         ceiling the allocation at NMAX bytes rather than silently
52962         discarding input bytes before NMAX is reached.  This makes
52963         a difference only if NMAX exceeds SIZE_MAX / 2.
52964
52965         * lib/obstack.c: Merge from glibc.
52966         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
52967         Add libc_hidden_def (_obstack_newchunk).
52968         (_obstack_free) [! defined _LIBC]: Remove.
52969         [defined _LIBC]: Make a strong alias from obstack_free, rather than
52970         a clone of the function body.
52971         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
52972         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
52973
52974         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
52975         glibc.
52976         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
52977         arg to memcpy.
52978
52979         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
52980         (obstack_ptr_grow_fast, obstack_int_grow_fast):
52981         Don't use lvalue casts, as GCC plans to remove support for them
52982         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
52983         was also present in the non-GCC version, indicating that this
52984         code had always been buggy and had never been widely used.
52985         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
52986         Use the fast variant of each macro, rather than copying the
52987         definiens of the fast variant; that way, we'll be more likely to
52988         catch future bugs in the fast variants.
52989
52990 2003-10-20  Bruno Haible  <bruno@clisp.org>
52991
52992         * modules/wait-process: New file.
52993         * MODULES.html.sh (func_all_modules): Add wait-process.
52994
52995 2003-10-20  Bruno Haible  <bruno@clisp.org>
52996
52997         * m4/wait-process.m4: New file.
52998
52999 2003-10-20  Bruno Haible  <bruno@clisp.org>
53000
53001         * lib/wait-process.h: New file, from GNU gettext.
53002         * lib/wait-process.c: New file, from GNU gettext.
53003
53004 2003-10-19  Jim Meyering  <jim@meyering.net>
53005
53006         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
53007         HPUX 10.20.
53008
53009 2003-10-18  Karl Berry  <karl@gnu.org>
53010
53011         * config/config.guess: update from config.
53012
53013 2003-10-16  Paul Eggert  <eggert@twinsun.com>
53014
53015         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
53016         (getgroups): First arg is int, not size_t.
53017         Don't let 'free' mangle errno.
53018
53019 2003-10-16  Paul Eggert  <eggert@twinsun.com>
53020
53021         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
53022
53023 2003-10-16  Karl Berry  <karl@gnu.org>
53024
53025         * config/config.{guess,sub}: update from config.
53026
53027 2003-10-16  Jim Meyering  <jim@meyering.net>
53028
53029         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
53030         memcpy.
53031
53032 2003-10-15  Paul Eggert  <eggert@twinsun.com>
53033
53034         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
53035         (SIZE_MAX): Remove.
53036         (new_exclude, add_exclude_file): Initial size no longer needs to
53037         be a power of 2.
53038         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
53039         our own address arithmetic overflow checking.
53040
53041         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
53042         (fnmatch): Do not alloca more than 2000 wide characters;
53043         instead, use malloc for large buffers.
53044         Check for address arithmetic overflow, and return -1
53045         with errno set to ENOMEM in that case.
53046         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
53047         (NEW_PATTERN): Do not alloca more than 8000 bytes;
53048         instead, return -1.  Check for address arithmetic overflow.
53049
53050 2003-10-14  Paul Eggert  <eggert@twinsun.com>
53051
53052         Handle invalid suffixes and overflow independently, so that
53053         callers can treat them independently as needed.  Fix some bugs in
53054         suffix handling, e.g., "100k@" was not diagnosed as an invalid
53055         suffix for a human-readable blocksize.  The major caller-visible
53056         change is the addition of a new
53057         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
53058         that both overflow and suffix chars were found.
53059
53060         * lib/human.c (humblock): Don't check separately for invalid suffix
53061         char; that is xstrtoumax's job (now that its bug is fixed).
53062         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
53063         INTMAX_MAX]: New macros.
53064         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
53065         TYPE_MAXIMUM): New macros.
53066         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
53067         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
53068         if overflow occurs, as it's what __strtol does and it's more useful
53069         in practice.
53070         (__xstrtol): If __strtol reports some error other than ERANGE,
53071         reflect it to the caller as LONGINT_INVALID.  If it reports
53072         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
53073         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
53074         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
53075         value.
53076         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
53077         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
53078         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
53079         [defined UINTMAX_MAX]: New macros.
53080
53081 2003-10-14  Bruno Haible  <bruno@clisp.org>
53082
53083         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
53084
53085 2003-10-14  Bruno Haible  <bruno@clisp.org>
53086
53087         * m4/sig_atomic_t: New file, from GNU gettext.
53088         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
53089
53090 2003-10-14  Bruno Haible  <bruno@clisp.org>
53091
53092         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
53093         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
53094         Also use volatile where needed.
53095
53096 2003-10-12  Paul Eggert  <eggert@twinsun.com>
53097
53098         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
53099         Change maintainer from Bruno Haible to 'all'.
53100
53101 2003-10-12  Paul Eggert  <eggert@twinsun.com>
53102
53103         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
53104
53105 2003-10-12  Paul Eggert  <eggert@twinsun.com>
53106
53107         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
53108         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
53109         and define in terms of the other primitives.
53110         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
53111         (SIZE_MAX): Define if not already defined.
53112         (array_size_overflow): New function.
53113         (xalloc_die): Abort instead of exiting if 'error' returns.
53114         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
53115         (xmalloc, xrealloc): Use them.
53116         (xcalloc): Check for address arithmetic overflow.
53117         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
53118         a bit faster than strcpy.
53119
53120 2003-10-10  Simon Josefsson  <jas@extundo.com>
53121
53122         * modules/argp (Depends-on): Add restrict and strcase.
53123
53124 2003-10-10  Simon Josefsson  <jas@extundo.com>
53125
53126         * m4/argp.m4: Add AC_C_INLINE.
53127
53128 2003-10-08  Paul Eggert  <eggert@twinsun.com>
53129
53130         Merge getpass from libc, plus a few fixes.
53131
53132         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
53133         Include <stdbool.h>.
53134         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
53135         __fsetlocking to empty.
53136         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
53137         do include <bits/libc-lock.h>.
53138         Do not include <fcntl.h>; not needed.
53139         [_LIBC]: Include <wchar.h>.
53140         (NOTCANCEL_MODE): New macro.
53141         (flockfile, funlockfile) [_LIBC]: New macros.
53142         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
53143         [!_LIBC]: New macros.
53144         (call_fclose): New function.
53145         (getpass): Use it.  Save tty stream separately; this simplifies the
53146         code and makes it more reliable if stdin happens to equal stdout.
53147         Invoke __fsetlocking on tty.
53148         Handle thread cancellation if needed.
53149         Namespace cleanup (use __tcgetattr, __getline).
53150         Use bool for Booleans.
53151         [USE_IN_LIBIO]: Handle wide streams.
53152         [!_LIBC]: Unconditionally do the fseek, since we don't know what
53153         stream might go where.
53154
53155         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
53156         doesn't have to include <stdio.h> before us.
53157         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
53158         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
53159         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
53160         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
53161         if not declared, so that we can use getpass.c code from libc without
53162         rewriting it.
53163         (flockfile, ftrylockfile, funlockfile): New macros.
53164
53165 2003-10-08  Paul Eggert  <eggert@twinsun.com>
53166
53167         * modules/getpass: Depend on stdbool.
53168
53169 2003-10-08  Paul Eggert  <eggert@twinsun.com>
53170
53171         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
53172
53173 2003-10-07  Karl Berry  <karl@gnu.org>
53174
53175         * config/config.{guess,sub}: update from config.
53176
53177 2003-10-06  Jim Meyering  <jim@meyering.net>
53178             Bruno Haible  <bruno@clisp.org>
53179
53180         This lets translators provide better translations for the
53181         "Written by ..." part of --version output.
53182         * lib/version-etc.h: Include stdarg.h.
53183         (version_etc_copyright): Declare as readonly.
53184         (version_etc): Make this function variadic with a NULL-terminated list
53185         of author name strings.
53186         (version_etc_va): New declaration.
53187         * lib/version-etc.c: Include stdarg.h, stdlib.h.
53188         (version_etc_copyright): Declare as readonly.
53189         (version_etc_va): New function. Provide a different translatable string
53190         for each possible number of authors < 10. Abbreviate when there are 10
53191         authors or more.
53192         (version_etc): Make this function variadic. Call version_etc_va.
53193         Suggestion from Gary V. Vaughan.
53194
53195         * lib/long-options.h (parse_long_options): Change prototype: the
53196         authors string is moved to the end and becomes variadic.
53197         * lib/long-options.c: Include stdarg.h.
53198         (parse_long_options): Make this function variadic, too.
53199         Call version_etc_va, not version_etc.
53200
53201 2003-10-06  Bruno Haible  <bruno@clisp.org>
53202
53203         * modules/version-etc-2: Remove file.
53204         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
53205
53206 2003-10-06  Bruno Haible  <bruno@clisp.org>
53207
53208         * modules/fatal-signal: New file.
53209         * MODULES.html.sh (func_all_modules): Add fatal-signal.
53210
53211 2003-10-06  Bruno Haible  <bruno@clisp.org>
53212
53213         * m4/fatal-signal.m4: New file.
53214         * m4/signalblocking.m4: New file, from GNU gettext.
53215
53216 2003-10-06  Bruno Haible  <bruno@clisp.org>
53217
53218         * lib/version-etc-2.h: Remove file.
53219         * lib/version-etc-2.c: Remove file.
53220
53221 2003-10-06  Bruno Haible  <bruno@clisp.org>
53222
53223         * lib/fatal-signal.h: New file, from GNU gettext.
53224         * lib/fatal-signal.c: New file, from GNU gettext.
53225
53226 2003-10-05  Paul Eggert  <eggert@twinsun.com>
53227
53228         * README: Rework advice for preventing empty .o files.
53229         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
53230         not <sys/types.h>.
53231
53232 2003-10-04  Karl Berry  <karl@gnu.org>
53233
53234         * lib/argp*: update from libc.
53235
53236 2003-10-04  Karl Berry  <karl@gnu.org>
53237
53238         * config/config.{guess,sub}: update from config.
53239
53240 2003-10-02  Bruno Haible  <bruno@clisp.org>
53241
53242         * modules/lchown (Include): Add lchown.h.
53243         * modules/time_r (Include): Use "..." syntax.
53244         * modules/xgetdomainname (Include): Add xgetdomainname.h.
53245
53246 2003-10-01  Simon Josefsson  <jas@extundo.com>
53247
53248         * MODULES.html.sh (func_all_modules): Move gethostname from section
53249         'based on' to section 'lacking' POSIX:2001.
53250
53251 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
53252
53253         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
53254         to output mode on the same stream.
53255
53256 2003-09-29  Paul Eggert  <eggert@twinsun.com>
53257
53258         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
53259         Fix arg typo in previous patch.
53260
53261 2003-09-28  Jim Meyering  <jim@meyering.net>
53262
53263         * lib/error.c: Correct cpp indentation.
53264
53265 2003-09-27  Paul Eggert  <eggert@twinsun.com>
53266
53267         * modules/free: New file.
53268
53269 2003-09-27  Paul Eggert  <eggert@twinsun.com>
53270
53271         * m4/free.m4: New file.
53272
53273 2003-09-27  Paul Eggert  <eggert@twinsun.com>
53274
53275         * lib/minmax.h (MIN, MAX)
53276         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
53277         Omit the special code that used __typeof__, since we worry that
53278         it could be more trouble than it's worth.  See:
53279         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
53280         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
53281
53282         * lib/free.c: New file.
53283
53284 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
53285
53286         Trivial fixes to Makefile.am parts of module listings.
53287         * modules/strstr: Append strstr.h to lib_SOURCES.
53288         * modules/strcase: Likewise, for strcase.h.
53289
53290 2003-09-27  Karl Berry  <karl@gnu.org>
53291
53292         * config/mkinstalldirs: update from automake.
53293
53294 2003-09-26  Paul Eggert  <eggert@twinsun.com>
53295
53296         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
53297         (error_tail): Do not loop, reallocating temporary buffer, since
53298         the output cannot contain more wide characters than the input
53299         contains bytes, the size must be big enough already.  This avoids
53300         one potential size overflow calculation.  Check for size overflow
53301         when calculating temporary buffer size.  Free temporary buffer
53302         when done, if it was allocated with malloc; this plugs a memory
53303         leak.  Remove casts from void * to pointers, that are no longer
53304         needed now that we're assuming C89 or better.
53305
53306         Merge error changes from glibc.
53307
53308         * lib/error.c, error.h: Update copyright notice header to match glibc.
53309         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
53310         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
53311         Disable cancellation while printing error.
53312         * lib/error.h: Prepend __ to parameter names.
53313
53314 2003-09-26  Jim Meyering  <jim@meyering.net>
53315
53316         * lib/error.c (error_tail): Move some declarations
53317         into inner scope where the local variables are used.
53318
53319 2003-09-26  Bruno Haible  <bruno@clisp.org>
53320
53321         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
53322         stpncpy().
53323         Don't define stpncpy through config.h; it's now done through stpncpy.h.
53324
53325 2003-09-26  Bruno Haible  <bruno@clisp.org>
53326
53327         * lib/stpncpy.h (gnu_stpncpy): New declaration.
53328         (stpncpy): Define as alias for gnu_stpncpy.
53329         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
53330
53331 2003-09-25  Simon Josefsson  <jas@extundo.com>
53332
53333         * lib/xgetdomainname.h: New file.
53334         * lib/xgetdomainname.c: New file.
53335
53336 2003-09-25  Simon Josefsson  <jas@extundo.com>
53337             Bruno Haible  <bruno@clisp.org>
53338
53339         * modules/getdomainname: New file.
53340         * modules/xgetdomainname: New file.
53341         * MODULES.html.sh (func_all_modules): Add getdomainname,
53342         xgetdomainname.
53343
53344 2003-09-25  Simon Josefsson  <jas@extundo.com>
53345             Bruno Haible  <bruno@clisp.org>
53346
53347         * m4/getdomainname.m4: New file.
53348
53349 2003-09-25  Simon Josefsson  <jas@extundo.com>
53350             Bruno Haible  <bruno@clisp.org>
53351
53352         * lib/getdomainname.h: New file.
53353         * lib/getdomainname.c: New file.
53354
53355 2003-09-25  Karl Berry  <karl@gnu.org>
53356
53357         * lib/argp-fmtstream.c, argp-help.c: update from libc.
53358
53359 2003-09-25  Karl Berry  <karl@gnu.org>
53360
53361         * config/install-sh: update from automake.
53362
53363 2003-09-25  Bruno Haible  <bruno@clisp.org>
53364
53365         * modules/version-etc-2: New file, from modules/version-etc with
53366         modifications.
53367         * MODULES.html.sh (func_all_modules): Add version-etc-2.
53368
53369 2003-09-25  Bruno Haible  <bruno@clisp.org>
53370
53371         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
53372         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
53373
53374 2003-09-24  Simon Josefsson  <jas@extundo.com>
53375
53376         * modules/xgethostname: Add xgethostname.h.
53377
53378 2003-09-24  Paul Eggert  <eggert@twinsun.com>
53379
53380         * lib/linebuffer.c (freebuffer): Don't free the argument, just
53381         the buffer associated with the argument.  Bug reported by
53382         Simon Josefsson.
53383
53384 2003-09-24  Paul Eggert  <eggert@twinsun.com>
53385
53386         * README: Document assumptions that 'int' is at least 32 bits
53387         wide, that integer arithmetic is 2's complement without overflow,
53388         that there are no holes in integer values, that adding sizes of
53389         two nonoverlapping objects can't overflow, and that all-bits-zero
53390         yields scalar zero.  Fix spelling and capitalization typos.
53391
53392 2003-09-19  Karl Berry  <karl@gnu.org>
53393
53394         * lib/argp.h: update from libc.
53395
53396 2003-09-17  Paul Eggert  <eggert@twinsun.com>
53397
53398         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
53399         to avoid spurious warnings like "AC_RUN_IFELSE was called before
53400         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
53401
53402 2003-09-17  Paul Eggert  <eggert@twinsun.com>
53403
53404         * gnulib-tool: Use "test -h", not "test -L", for portability
53405         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
53406         (tags_regexp): Remove, since \| doesn't conform to POSIX.
53407         (sed_extract_prog): Issue s commands one-by-one, rather than
53408         using \| in one s command.
53409
53410 2003-09-16  Paul Eggert  <eggert@twinsun.com>
53411
53412         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
53413         input error, instead of returning NULL the next time we are called
53414         (and therefore losing track of errno).
53415
53416 2003-09-16  Bruno Haible  <bruno@clisp.org>
53417
53418         * gnulib-tool (func_create_testdir): Warn about duplicated
53419         dependencies.
53420
53421 2003-09-15  Paul Eggert  <eggert@twinsun.com>
53422
53423         * modules/argmatch, modules/fatal, modules/obstack,
53424         modules/xalloc, modules/xgethostname: Sort dependencies by
53425         importance, not alphabetically.
53426
53427 2003-09-15  Paul Eggert  <eggert@twinsun.com>
53428
53429         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
53430         fails, so that the caller gets the proper errno.
53431
53432         * lib/readutmp.c (read_utmp): Likewise.
53433         Check for fstat error.  Close stream and free storage
53434         when failing.
53435
53436 2003-09-14  Karl Berry  <karl@gnu.org>
53437
53438         * config/srclist.txt (strdup.c): disable for c89 changes.
53439
53440 2003-09-14  Jim Meyering  <jim@meyering.net>
53441
53442         * lib/getloadavg.c: Correct cpp indentation.
53443         * lib/strdup.c: Likewise.
53444         * lib/vasnprintf.c: Likewise.
53445
53446 2003-09-14  Bruno Haible  <bruno@clisp.org>
53447
53448         * modules/fwriteerror: New file.
53449         * MODULES.html.sh (func_all_modules): Add fwriteerror.
53450
53451 2003-09-14  Bruno Haible  <bruno@clisp.org>
53452
53453         * lib/fwriteerror.h: New file.
53454         * lib/fwriteerror.c: New file.
53455
53456 2003-09-12  Paul Eggert  <eggert@twinsun.com>
53457
53458         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
53459         modules/xgethostname, modules/xalloc: Depend on exit.
53460
53461 2003-09-12  Paul Eggert  <eggert@twinsun.com>
53462
53463         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
53464
53465         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
53466         and AC_MINIX, too, so that their extensions are available.
53467
53468         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
53469         This macro has been superseded by gl_BACKUPFILE.
53470
53471         More patches to assume C89 or better.
53472
53473         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
53474
53475         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
53476         unconditionally.
53477         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
53478         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
53479         Include <string.h>, <stdlib.h> unconditionally.
53480         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
53481         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
53482         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
53483         headers or for string.h.
53484         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
53485         or strtoul.
53486
53487         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
53488         headers.
53489         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
53490         * m4/userspec.m4 (gl_USERSPEC): Likewise.
53491         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
53492         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
53493         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53494         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
53495         memcpy, memset.
53496         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
53497         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
53498         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
53499         strtol.
53500         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
53501         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
53502         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
53503         strtoul.
53504
53505 2003-09-12  Paul Eggert  <eggert@twinsun.com>
53506
53507         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
53508         * lib/obstack.c [!defined _LIBC]: Likewise.
53509         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
53510         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
53511         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
53512
53513         More changes to assume C89 or better.
53514
53515         * lib/error.c (error_tail): Assume vprintf.
53516
53517         * lib/argmatch.c (getenv): Remove decl.
53518         * lib/progreloc.c (get_full_program_name): Define via prototype.
53519         * lib/setenv.c (clearenv): Likewise.
53520         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
53521         needed.
53522         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
53523         (malloc, memcpy): Remove decls.
53524         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
53525         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
53526         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
53527         (memcpy): Remove macro.
53528         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
53529         (__P): Remove.  All uses removed.
53530         (PTR): Remove.  All uses changed to void *.
53531         (CHAR_BIT, NULL): Remove.
53532         (spaces, zeros, memset_space, memset_zero)
53533         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
53534         Remove.
53535         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
53536         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
53537         Define with prototype.
53538         Remove now-unnecessary prototype decl.
53539         (extra_args_spec): Assume ANSI C.  All uses changed.
53540         (extra_args_spec_iso): Remove.
53541         (my_strftime, emacs_strftimeu): Define via prototype.
53542         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
53543         unconditionally.
53544         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
53545         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
53546         (strtoul, strtol): Remove decls.
53547         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
53548         LONG_MAX): Remove.
53549         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
53550         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
53551         (LOCALE_PARAM_PROTO): New macro.
53552         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
53553         (INTERNAL (strtol), strtol): Define with a prototype.
53554         (PARAMS): Remove.  All uses removed.
53555         * lib/tempname.c: Include <string.h> unconditionally.
53556         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
53557         * lib/xgethostname.c (main): Define with a prototype.
53558         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
53559         Include <stdlib.h> unconditionally.
53560         (calloc, malloc, realloc, free): Remove decls.
53561         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
53562         Include <stdlib.h> unconditionally.  Sort include file names.
53563         (strtod): Remove.
53564         (xstrtod): Define with a prototype.
53565         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
53566         (strtol, strtoul): Remove decls.
53567
53568 2003-09-11  Paul Eggert  <eggert@twinsun.com>
53569
53570         More patches to assume C89 or better.
53571         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
53572         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
53573         string.h, memchr, STDC_HEADERS.
53574
53575 2003-09-11  Paul Eggert  <eggert@twinsun.com>
53576
53577         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
53578         Include <stdlib.h>, <string.h> unconditionally.
53579         Remove now-unnecessary cast to char *.
53580         * lib/strnlen.c: Include <string.h> unconditionally.
53581         * lib/yesno.c (yesno): Define with a prototype.
53582
53583 2003-09-11  Bruno Haible  <bruno@clisp.org>
53584
53585         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
53586
53587 2003-09-10  Jim Meyering  <jim@meyering.net>
53588
53589         * lib/error.c: Correct indentation of cpp directives.
53590
53591 2003-09-10  Bruno Haible  <bruno@clisp.org>
53592
53593         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
53594         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
53595         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
53596         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
53597         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
53598         <stdlib.h> and <string.h> checks.
53599         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
53600         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
53601
53602 2003-09-10  Bruno Haible  <bruno@clisp.org>
53603
53604         * lib/strcspn.c: Include <string.h> unconditionally.
53605         * lib/strpbrk.c: Include <string.h> unconditionally.
53606         * lib/strstr.c: Include <string.h> unconditionally.
53607         * lib/unicodeio.c: Include <string.h> unconditionally.
53608         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
53609         * lib/unsetenv.c: Likewise.
53610         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
53611         * lib/yesno.c: Include <stdlib.h> unconditionally.
53612         (rpmatch): Add prototype.
53613
53614 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53615
53616         More patches to assume C89 or better.
53617         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
53618         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
53619         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
53620         or for string.h.
53621         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
53622         stdlib.h.
53623         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
53624         C headers.
53625         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
53626         string.h.
53627         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
53628         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
53629         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
53630         or for string.h.
53631         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
53632         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
53633         C headers.
53634         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
53635         memcpy.
53636         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
53637         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
53638         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
53639         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
53640         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
53641         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
53642         string.h, free.
53643         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
53644         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
53645         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
53646         C headers, or for string.h.
53647         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
53648         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
53649         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
53650         headers, memory.h, stdlib.h, string.h, strings.h.
53651         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
53652         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
53653         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
53654         strchr.
53655         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
53656         headers, memory.h, string.h.
53657         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
53658         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
53659         free.
53660         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
53661         headers.
53662         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
53663         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
53664         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
53665         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
53666         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
53667
53668 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53669
53670         More K&R removal.
53671
53672         * lib/acosl.c (main): Use a prototype.
53673         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
53674         tanl.c: Likewise.
53675
53676         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
53677
53678         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
53679         (getopt, etopt_long, getopt_long_only, _getopt_internal)
53680         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
53681         with a prototype.
53682         * lib/getopt.c (const): Remove macro.
53683         Include <string.h> unconditionally.
53684         (my_index): Remove; all uses changed to strchr.
53685         (strlen): Remove decl.
53686         (exchange): Remove forward decl; no longer needed.
53687         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
53688         Define with prototype.
53689         * lib/getopt1.c (const): Remove macro.
53690         (getopt_long, getopt_long_only, main): Define with prototype.
53691
53692         * lib/getugroups.c: Include <string.h> unconditionally.
53693
53694         * lib/getusershell.c: Include <stdlib.h> unconditionally.
53695         (getusershell, setusershell, endusershell, readname, main):
53696         Define with prototypes.
53697
53698         * lib/group-member.c: Include group-member.h first.
53699         Include <stdlib.h> unconditionally.
53700
53701         * lib/hard-locale.c: Include hard-locale.h first.
53702         Include <stdlib.h>, <string.h> unconditionally.
53703
53704         * lib/hash.c (free, malloc): Remove decls.
53705         Include <stdlib.h> unconditionally.
53706
53707         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
53708         (getenv): Do not declare.
53709
53710         * lib/idcache.c: Include <string.h> unconditionally.
53711
53712         * lib/long-options.c: Include long-options.h first, to test interface.
53713         Include <stdlib.h> unconditionally.
53714
53715         * lib/makepath.c: Include makepath.h first, to test interface.
53716         Include <stdlib.h> and <string.h> unconditionally.
53717
53718         * lib/linebuffer.c: Include <stdlib.h>.
53719         (free): Remove decl.
53720
53721         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
53722         stddef.h. rpl_malloc returns void *, not char *.
53723         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
53724         prototype.
53725
53726         * lib/md5.h: Include <limits.h> unconditionally.
53727         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
53728         (__P): Remove; all uses removed.
53729         * lib/md5.c: Include "md5.h" first.
53730         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
53731         md5_buffer, md5_process_bytes, md5_process_block):
53732         Define with prototypes.
53733         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
53734         * lib/sha.c: Include "sha.h" first.
53735         Include <stdlib.h>, <string.h> unconditionally.
53736
53737         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
53738         * lib/memcmp.c (__ptr_t): Likewise.
53739         * lib/memrchr.c (__ptr_t): Likewise.
53740         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
53741         Include <string.h> unconditionally.
53742         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
53743         * lib/memchr.c: Include <stdlib.h> unconditionally.
53744         * lib/memchr.c (LONG_MAX): Remove.
53745         * lib/memrchr.c (LONG_MAX): Likewise.
53746         * lib/memchr.c (__memchr): Define via a prototype.
53747         * lib/memrchr.c (__memrchr): Likewise.
53748         * lib/memcmp.c (__P): Remove, and remove all uses.
53749         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
53750         Remove forward decls; no longer needed.
53751         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
53752         Use types required by C89 in prototype.
53753
53754         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
53755         * lib/savedir.c: Likewise.
53756         * lib/mkdir.c (free): Remove decl.
53757         * lib/rmdir.c (rmdir): Define with a prototype.
53758         * lib/savedir.c: Include savedir.h first, to test interface.
53759
53760         * lib/mktime.c (STDC_HEADERS): Remove.
53761         Include <stdlib.h>, <string.h> unconditionally.
53762
53763         * lib/modechange.c: Include <stdlib.h> unconditionally.
53764         (malloc): Remove decl.
53765
53766         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
53767         (free): Remove decl.
53768
53769         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
53770         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
53771         (This type really should be intptr_t, but that's a C99ism.)
53772         (_obstack_memcpy): Remove: all uses changed to memcpy.
53773         Include <string.h> unconditionally.
53774         (struct obstack): Assume __STDC__ for types of members
53775         chunkfun, freefun, extra_arg.
53776         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
53777         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
53778         obstack_begin, obstack_specify_allocation,
53779         obstack_specify_allocation_with_arg, obstack_chunkfun,
53780         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
53781         Remove unprototyped decls and the macros that use them.
53782         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
53783         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
53784         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
53785         (defined __STDC__ && __STDC__)]:
53786         Remove nonprototyped code.
53787         Include <stdlib.h> unconditionally.
53788         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
53789         _obstack_allocated_p, _obstack_free, obstack_free,
53790         _obstack_memory_used, print_and_abort):
53791         Define using prototypes.
53792         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
53793         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
53794         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
53795         obstack_next_free, obstack_object_size, obstack_room) [0]:
53796         Remove unused, unprototyped code.
53797
53798         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
53799
53800         * lib/physmem.c (physmem_total, physmem_available, main): Define
53801         with prototypes.
53802
53803         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
53804         (main): Define with a prototype.
53805
53806         * lib/posixver.c (getenv): Remove decl.
53807
53808         * lib/putenv.c (malloc): Returns void *, not char *.
53809         Include <string.h> unconditionally.
53810         (strchr, memcpy, NULL): Do not define.
53811
53812         * lib/readtokens.c: Include readtokens.h first, to test interface.
53813         Include <stdlib.h>, <string.h> unconditionally.
53814         (init_tokenbuffer): Define with a prototype.
53815
53816         * lib/regex.c (PARAMS): Remove.  All uses removed.
53817         All uses of _RE_ARGS removed, too.
53818         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53819         unconditionally.
53820         (bzero): Assume memset exists.
53821         (memcmp, memcpy, NULL): Remove.
53822         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
53823         char, or assignments to local vars of type signed char.
53824         (init_syntax_once, PREFIX(extract_number_and_incr),
53825         PREFIX(print_partial_compiled_pattern),
53826         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
53827         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
53828         PREFIX(regex_grow_registers), PREFIX(regex_compile),
53829         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
53830         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
53831         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
53832         wcs_compile_range, byte_compile_range, truncate_wchar,
53833         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
53834         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
53835         count_mbs_length, wcs_re_match_2_internal,
53836         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
53837         PREFIX(alt_match_null_string_p),
53838         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
53839         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
53840         regfree, PREFIX(extract_number)): Define with prototype.  Remove
53841         now-unnecessary declaration, if any.
53842         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
53843         regcomp, regexec):
53844         Remove now-unnecessary casts among pointer types.
53845         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
53846
53847         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
53848         (free): Remove decl.
53849
53850         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
53851
53852         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
53853         (free): Remove decl.
53854
53855         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
53856         * lib/xgetcwd.c: Likewise.
53857
53858         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
53859         (free): Remove decl.
53860
53861         * lib/strchrnul.c (strchrnul): Define with a prototype.
53862         Fix bug: c_in was not converted to char before searching.
53863
53864         The following changes are not K&R related:
53865
53866         * lib/group-member.h: Include <sys/types.h>, so that this file is
53867         self-contained.
53868         * lib/makepath.h: Likewise.
53869
53870         * lib/getusershell.c (readname, default_index, line_size, readname):
53871         Use size_t, not int, for sizes.
53872         (readname): If the size overflows, report an error instead of
53873         looping forever.
53874
53875 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53876
53877         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
53878         libc.
53879
53880 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53881
53882         * README: New section: portability guidelines.
53883
53884 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
53885
53886         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
53887         C89 spec.
53888
53889 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
53890
53891         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
53892
53893 2003-09-08  Paul Eggert  <eggert@twinsun.com>
53894
53895         Assume C89 or better; remove K&R cruft.
53896         A few of these changes were first proposed by Derek Robert Price
53897         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
53898
53899         * lib/addext.c: Include <string.h> unconditionally.
53900         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
53901         Don't declare getenv or malloc.
53902
53903         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
53904         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
53905         (NULL): Remove.
53906         (find_stack_direction, alloca): Use prototypes.
53907
53908         * lib/atexit.c (atexit): Define using a prototype.
53909
53910         * lib/basename.c, dirname.c, stripslash.c:
53911         Include <string.h> unconditionally.
53912
53913         * lib/bcopy.c: Include <stddef.h>.
53914         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
53915
53916         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
53917
53918         * lib/error.h (error, error_at_line, error_print_progname)
53919         [! (defined (__STDC__) && __STDC__)]: Remove decls.
53920         * lib/error.c: Include error.h first, to check interface.
53921         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
53922         (VA_START): Remove; all uses changeed to va_start.
53923         (exit, strerror): Remove decls.
53924         (error_print_progname): Prototype uncondionally.
53925         Don't include <errno.h>; no longer needed.
53926         (private_strerror): Remove.
53927         (error_tail): Always define.
53928         (error, error_at_line): Assume C89 or better; always use prototypes.
53929         * lib/fatal.c: Include "fatal.h" first, to test interface.
53930         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
53931         (VA_START): Remove; all uses changed to va_start.
53932         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
53933         this case.
53934         (exit): Remove decl.
53935         (fatal): Prototype unconditionally.  Assume va_start works.
53936         Abort at end, to pacify gcc.
53937
53938         * lib/euidaccess.c (main): Define with a prototype.
53939
53940         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
53941
53942         * lib/exitfail.c: Include <stdlib.h> unconditionally.
53943
53944         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
53945         prototypes.
53946         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
53947         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
53948         (getenv): Remove decl.
53949         (fnmatch): Define using a prototype.
53950         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
53951         (FCT): Define using a prototype.
53952
53953         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
53954
53955         * lib/gethostname.c: Include <stddef.h>.
53956         (gethostname): Define with prototype.  Length is size_t, not int.
53957
53958 2003-09-08  Paul Eggert  <eggert@twinsun.com>
53959
53960         Assume C89 or better; remove K&R cruft.
53961         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
53962         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
53963         string.h, getenv, malloc.
53964         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
53965         headers.
53966         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
53967         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
53968         do not check for strerror.
53969         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
53970         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
53971         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
53972         do not check for doprnt or vprintf.
53973         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
53974         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
53975
53976 2003-09-08  Paul Eggert  <eggert@twinsun.com>
53977
53978         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
53979         getversion.c should have been removed then, but was accidentally
53980         preserved.
53981
53982         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
53983         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
53984
53985 2003-09-08  Karl Berry  <karl@gnu.org>
53986
53987         * config/config.sub, config.guess, srclistvars.sh: update from savannah
53988                 config, forget about prep.
53989
53990         * config/depcomp, missing: update from automake.
53991
53992 2003-09-07  Paul Eggert  <eggert@twinsun.com>
53993
53994         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
53995         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
53996
53997 2003-09-07  Paul Eggert  <eggert@twinsun.com>
53998
53999         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
54000         copy_tm_result.  Bug reported by Simon Josefsson in
54001         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
54002
54003 2003-09-06  Paul Eggert  <eggert@twinsun.com>
54004
54005         * m4/time_r.m4: New file.
54006         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
54007         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
54008         is. Check for timegm declaration.
54009         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
54010         Do not check for gmtime_r.
54011         Replace mktime if __mktime_internal does not exist and if mktime
54012         hasn't been replaced already.
54013
54014 2003-09-06  Paul Eggert  <eggert@twinsun.com>
54015
54016         * lib/time_r.c, lib/time_r.h: New files.
54017
54018         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
54019         __localtime_r.
54020         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
54021         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
54022
54023         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
54024         __gmtime_r.
54025         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
54026         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
54027         Include <time_r.h>.
54028
54029         * lib/timegm.c: Switch to glibc implementation, with the following
54030         changes:
54031         [defined HAVE_CONFIG_H]: Include <config.h>.
54032         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
54033         (__mktime_internal) [!defined _LIBC]: New decl.
54034         (__gmtime_r) [!defined _LIBC]: New macro and function.
54035         (timegm): Use a prototype, since gnulib assumes C89.
54036         Do not bother declaring tmp to be const, as it's not really usefu.
54037         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
54038         (timegm): Declare only if HAVE_DECL_TIMEGM.
54039
54040 2003-09-06  Paul Eggert  <eggert@twinsun.com>
54041
54042         * MODULES.html.sh (func_all_modules): Add time_r.
54043         * modules/time_r: New file.
54044         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
54045         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
54046
54047 2003-09-03  Paul Eggert  <eggert@twinsun.com>
54048
54049         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
54050         Bug reported by Lute Kamstra in
54051         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
54052
54053         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
54054         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
54055         course with correspondingly smaller numbers for tomorrow and
54056         yesterday.  From Tadayoshi Funaba.  Originally installed into
54057         sh-utils on 1999-08-07, but the patch got lost (I guess during the
54058         coreutils merge?).
54059
54060 2003-08-31  Simon Josefsson  <jas@extundo.com>
54061
54062         * modules/timegm: New file.
54063         * MODULES.html.sh (func_all_modules): Add timegm.
54064
54065 2003-08-31  Simon Josefsson  <jas@extundo.com>
54066
54067         * m4/timegm.m4: New file.
54068
54069 2003-08-31  Simon Josefsson  <jas@extundo.com>
54070
54071         * lib/timegm.h: New file.
54072         * lib/timegm.c: New file.  Based on
54073         wget-1.8.2/src/http.c:mktime_from_utc.
54074
54075 2003-08-31  Karl Berry  <karl@gnu.org>
54076
54077         * lib/argp.h: update from libc.
54078
54079 2003-08-28  Bruno Haible  <bruno@clisp.org>
54080
54081         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
54082         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
54083         followed by '#define fnmatch fnmatch_posix' gives an error.
54084
54085 2003-08-28  Bruno Haible  <bruno@clisp.org>
54086
54087         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
54088         warning on QNX, which defines O_BINARY to 000000.
54089
54090 2003-08-27  Jim Meyering  <jim@meyering.net>
54091
54092         * m4/mkstemp.m4: Require that the system mkstemp be able to create
54093         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
54094         would fail after 32.  Reported by Danny Levinson.  Details here:
54095         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
54096
54097 2003-08-24  Bruno Haible  <bruno@clisp.org>
54098
54099         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
54100         MSVC7 <stdio.h> is included later.
54101
54102 2003-08-22  Simon Josefsson  <jas@extundo.com>
54103
54104         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
54105
54106 2003-08-20  Karl Berry  <karl@gnu.org>
54107
54108         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
54109
54110 2003-08-20  Bruno Haible  <bruno@clisp.org>
54111
54112         * modules/progname: New file.
54113         * MODULES.html.sh (func_all_modules): Add progname.
54114
54115 2003-08-20  Bruno Haible  <bruno@clisp.org>
54116
54117         * lib/progname.h: New file, from GNU gettext.
54118         * lib/progname.c: New file, from GNU gettext.
54119         * lib/progreloc.c: New file, from GNU gettext.
54120
54121 2003-08-19  Jim Meyering  <jim@meyering.net>
54122
54123         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
54124         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
54125
54126 2003-08-19  Bruno Haible  <bruno@clisp.org>
54127
54128         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
54129         more.
54130
54131 2003-08-19  Bruno Haible  <bruno@clisp.org>
54132
54133         * lib/xstrdup.c: Assume <string.h> exists.
54134
54135 2003-08-18  Paul Eggert  <eggert@twinsun.com>
54136
54137         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
54138         in makefile rules.
54139
54140 2003-08-18  Jim Meyering  <jim@meyering.net>
54141
54142         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
54143         * m4/lib-ld.m4: Likewise.
54144
54145 2003-08-18  Jim Meyering  <jim@meyering.net>
54146
54147         * lib/setenv.h: Indent nested cpp directive.
54148         * lib/vasnprintf.c: Remove trailing blanks.
54149
54150 2003-08-17  Simon Josefsson  <jas@extundo.com>
54151
54152         * modules/xstrndup: New file.
54153         * MODULES.html.sh (func_all_modules): Add xstrndup.
54154
54155 2003-08-17  Simon Josefsson  <jas@extundo.com>
54156
54157         * modules/argp: Fix autoconf macro name. Add more dependencies.
54158
54159 2003-08-17  Simon Josefsson  <jas@extundo.com>
54160
54161         * m4/xstrndup.m4: New file.
54162
54163 2003-08-17  Simon Josefsson  <jas@extundo.com>
54164
54165         * m4/argp.m4: New file.
54166
54167 2003-08-17  Simon Josefsson  <jas@extundo.com>
54168             Bruno Haible  <bruno@clisp.org>
54169
54170         * lib/xstrndup.h: New file.
54171         * lib/xstrndup.c: New file.
54172
54173 2003-08-17  Bruno Haible  <bruno@clisp.org>
54174
54175         * modules/strndup (Files, Include): Add lib/strndup.h.
54176
54177 2003-08-17  Bruno Haible  <bruno@clisp.org>
54178
54179         * modules/euidaccess (Files): Add lib/euidaccess.h.
54180
54181 2003-08-17  Bruno Haible  <bruno@clisp.org>
54182
54183         * lib/strndup.h: New file.
54184
54185 2003-08-17  Bruno Haible  <bruno@clisp.org>
54186
54187         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
54188         like AC_GNU_SOURCE.
54189         * modules/extensions (configure.ac): Comment out the invocation of
54190         gl_USE_SYSTEM_EXTENSIONS.
54191
54192 2003-08-16  Paul Eggert  <eggert@twinsun.com>
54193
54194         Merges from coreutils, etc.
54195         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
54196         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
54197         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
54198         fixing a typo.
54199         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
54200         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
54201
54202 2003-08-16  Paul Eggert  <eggert@twinsun.com>
54203
54204         Document merge from coreutils.
54205         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
54206         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
54207         * modules/utime: Add m4/utimes-null.m4.
54208
54209 2003-08-16  Paul Eggert  <eggert@twinsun.com>
54210
54211         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
54212         space, undoing this 2003-08-12 change:
54213         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
54214
54215 2003-08-16  Paul Eggert  <eggert@twinsun.com>
54216
54217         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
54218         strtoul.c from libc, undoing this 2003-08-12 change:
54219         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
54220
54221 2003-08-16  Jim Meyering  <jim@meyering.net>
54222
54223         Merges from coreutils.
54224         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
54225         prefix.  Adjust cache variables similarly.  Create 500 rather than
54226         just 300 files, to exercise bug on Darwin6.5, too.
54227         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
54228         $missing_dir.
54229         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
54230         AM_SYS_POSIX_TERMIOS.
54231         Reported by mkc@mathdogs.com.
54232         Also change use of $am_cv_sys_posix_termios
54233         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
54234         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
54235         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
54236         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
54237         in /proc/mounts until it finds one with matching device number.  This
54238         is unnecessary when the FILE argument *is* a mount point.  No stat call
54239         is necessary in that case.  So, disable the statvfs-testing code on
54240         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
54241         as RedHat bug# 84846.
54242         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
54243         to 1MB, so as not to render systems with no stack size limit (e.g.,
54244         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
54245         Include <unistd.h>.  On some systems,
54246         it is required for the definition of _SC_PAGESIZE.
54247
54248 2003-08-16  Jim Meyering  <jim@meyering.net>
54249
54250         Merge from coreutils.
54251         * lib/xstrtoimax.c: #else #if -> #elif.
54252         * lib/xstrtoumax.c: Likewise.
54253
54254 2003-08-16  Jim Meyering  <jim@meyering.net>
54255
54256         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
54257         * m4/utimes.m4: Removed.
54258         * m4/utimes-null.m4: Renamed from utimes.m4.
54259
54260         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
54261         to 1MB, so as not to render systems with no stack size limit (e.g.,
54262         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
54263         Include <unistd.h>.  On some systems,
54264         it is required for the definition of _SC_PAGESIZE.
54265
54266 2003-08-16  Jim Meyering  <jim@meyering.net>
54267         and Paul Eggert  <eggert@cs.ucla.edu>
54268
54269         Merges from coreutils, etc.
54270
54271         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
54272         using the latest version from cvs.  This avoids problems with #line
54273         directives using a vendor (Sun) compiler.
54274         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
54275         Don't set GETGROUPS_LIB here; now it's
54276         done via getgroups.m4's wrapper function.
54277         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
54278         rather than just in sh-util/configure.in, so that the
54279         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
54280         same.
54281         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
54282         AC_FUNC_GETLOADAVG where to find getloadavg.c.
54283         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
54284         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
54285         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
54286         Remove code that is now done by the newly-required macros.
54287         Append $(EXEEXT) to DF_PROG.
54288         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
54289         Do not invoke or require the following here,
54290         since prereq.m4 or some gnulib .m4 now does this for us:
54291         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
54292         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
54293         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
54294         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
54295         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
54296         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
54297         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
54298         AC_FUNC_OBSTACK.
54299         Do not replace the following functions, as this is now the job
54300         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
54301         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
54302         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
54303         atexit getpass, strdup, getpagesize.
54304         Replace 'raise'.
54305         Do not check for the following functions, as this is now the job
54306         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
54307         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
54308         setregid.
54309         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
54310         Check for sys/sysctl.h.
54311         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
54312         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
54313         of checking for ssize_t ourselves.
54314
54315         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
54316         Require every macro that gnulib/modules/* suggests for us.
54317         (jm_PREREQ_ADDEXT): New macro.
54318         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
54319         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
54320
54321         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
54322         (gl_PHYSMEM): Use it.
54323         Also check for `table' function.
54324         Check for new headers and functions.
54325         Add check for sys/sysmp.h.
54326         With suggestions from Kaveh Ghazi.
54327         Ignore headers that are present but cannot be compiled.  This
54328         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
54329         C 5.4.
54330
54331 2003-08-15  Paul Eggert  <eggert@twinsun.com>
54332
54333         Document merge from coreutils.
54334         * modules/userspec: Depend on posixver.
54335         * modules/strftime: Depend on tzset.
54336
54337 2003-08-15  Paul Eggert  <eggert@twinsun.com>
54338
54339         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
54340         rather than tab, after '#' in shell-script copyright notices.
54341         Suggested by Bruno Haible.
54342
54343 2003-08-15  Paul Eggert  <eggert@twinsun.com>
54344
54345         * config/srclist-update: Use three spaces, rather than tab, after '#'
54346         in shell-script copyright notices.  Suggested by Bruno Haible.
54347         Remove unnecessary parenthesization in regular expression.
54348
54349 2003-08-15  Jim Meyering  <jim@meyering.net>
54350
54351         Merge from coreutils.
54352         * lib/xgethostname.c: Include <stdlib.h>.
54353         (xghostname): Don't exit for anything other than memory-related
54354         failure; just return NULL.
54355         * lib/userspec.c: Include "posixver.h".
54356         (parse_user_spec): Accept `.' as a separator only
54357         in pre-POSIX-200112 mode.
54358         * lib/strtoimax.c: Use #elif rather than #else #if.
54359         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
54360         Remove function, now that we can rely on a working tzset function.
54361         [!_LIBC]: Ensure that the required autoconf test has been run.
54362         [!defined _NL_CURRENT && HAVE_STRFTIME]:
54363         Use underlying_strftime for %r.
54364         * lib/sha.c: Merge in some clean-up and optimization changes from
54365         glibc.
54366         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
54367         Ensure that it is a multiple of 64.
54368         Rearrange loop exit tests so as to avoid performing an
54369         additional fread after encountering an error or EOF.
54370         * lib/realloc.c: Update copyright date.
54371
54372 2003-08-15  Jim Meyering  <jim@meyering.net>
54373         and Paul Eggert  <eggert@twinsun.com>
54374
54375         Merge from coreutils.
54376         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
54377         member but strut utmpx does not.  Needed for AIX 4.3.3.
54378         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
54379
54380 2003-08-15  Jim Meyering  <jim@meyering.net>
54381         and Paul Eggert  <eggert@cs.ucla.edu>
54382
54383         Merges from coreutils, etc.
54384         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
54385         Require gl_FUNC_TZSET_CLOBBER.
54386         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
54387         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
54388         members.
54389
54390 2003-08-14  Paul Eggert  <eggert@twinsun.com>
54391
54392         Help the merge from coreutils.
54393         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
54394         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
54395         * m4/tzset.m4: Use it too.
54396
54397 2003-08-14  Paul Eggert  <eggert@twinsun.com>
54398
54399         * modules/tzset: New file.
54400
54401 2003-08-14  Jim Meyering  <jim@meyering.net>
54402
54403         Merges from coreutils.
54404         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
54405         variable names, rather than @FNMATCH_H@.
54406         * modules/alloca: Likewise for $(ALLOCA_H).
54407
54408         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
54409         the three copies of the literal target, `fnmatch.h'.
54410         * modules/alloca (alloca.h): Likewise.
54411
54412 2003-08-14  Jim Meyering  <jim@meyering.net>
54413
54414         Merge from coreutils.
54415         * m4/tzset.m4: New file.
54416         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
54417         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
54418         otherwise, AIX 5.1 systems would end up using the latter.
54419         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
54420         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
54421         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
54422         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
54423
54424 2003-08-14  Jim Meyering  <jim@meyering.net>
54425
54426         Merge from coreutils.
54427         * lib/obstack.h: Whitespace changes.
54428         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
54429         and xcalloc return values.
54430         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
54431         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
54432         hang on OSF/1 5.1 for DIR on both local and remote file systems.
54433         Reported by (and fix confirmed by) Nelson H. F. Beebe.
54434         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
54435         error from mntctl.
54436         Use mntctl's return value to drive the entry-processing loop, since
54437         we can't rely on the value of the vmt_length member in the last
54438         entry.  On some systems doing so could result in exhausting
54439         virtual memory.  Based in part on a patch from Mike Jetzer.
54440
54441 2003-08-14  Jim Meyering  <jim@meyering.net>
54442         and Paul Eggert  <eggert@twinsun.com>
54443
54444         Merges from coreutils, plus other fixes.
54445         * lib/physmem.c: Merge in portability changes from gcc/libiberty
54446         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
54447         for credits and details.  Thanks to Kaveh Ghazi for helping
54448         to keep these files in sync.
54449         (ARRAY_SIZE): Define it.
54450         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
54451         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
54452         (memcasecmp): Don't assume size_t fits in unsigned int.
54453         Remove casts and duplicate code.
54454         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
54455         (memcpy): Remove definition.
54456         Merge in some clean-up and optimization changes from glibc.
54457         [BLOCKSIZE]: Move definition to top of file.
54458         Ensure that it is a multiple of 64.
54459         Rearrange loop exit tests so as to avoid performing an
54460         additional fread after encountering an error or EOF.
54461         * lib/md5.h (md5_uintptr): Define.
54462         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
54463         return to the initial working directory.  Preserve errno
54464         for caller.
54465         * lib/idcache.c: Include "xalloc.h".
54466         (xmalloc, xrealloc): Remove decls.
54467         (getuser): Remove casts no longer required in C89.
54468         * lib/human.c: Include stdio.h, for sprintf.
54469         * lib/group-member.c: Include "xalloc.h".
54470         (xmalloc, xrealloc): Remove decls.
54471         (get_group_info): Remove casts no longer required in C89.
54472         * lib/getusershell.c (readname): Remove casts no longer required in
54473         C89.
54474         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
54475         * lib/getline.c: Whitespace fix, from coreutils.
54476
54477 2003-08-13  Paul Eggert  <eggert@twinsun.com>
54478
54479         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
54480         Check for isascii.
54481
54482         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
54483         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
54484         Undo previous (whitespace-only) change.
54485
54486 2003-08-13  Paul Eggert  <eggert@twinsun.com>
54487
54488         * lib/exclude.c: Include <ctype.h>
54489         (IN_CTYPE_DOMAIN): New macro.
54490         (is_space): New fn.
54491         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
54492         and empty lines.
54493
54494         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
54495         Undo previous (whitespace-only) change.
54496
54497 2003-08-13  Paul Eggert  <eggert@twinsun.com>
54498
54499         * config/srclist-update: Change update back to the old behavior,
54500         leaving whitespace alone.  Use one 'sed' command rather than a
54501         pipeline.
54502         (fixlicense): Now a variable, not a function.
54503         (remove_trailing_blanks): Remove.
54504         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
54505         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
54506         Undo previous (whitespace-only) change.
54507
54508 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54509
54510         Merge from coreutils.
54511         * modules/euidaccess: Add lib_SOURCES, include for new
54512         file euidaccess.h
54513
54514 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54515
54516         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
54517         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
54518         Normalize leading white space and remove trailing white space.
54519
54520         Merge from coreutils
54521         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
54522
54523         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
54524         0.12.1.  These files are now being upgraded automatically by
54525         ../config/srclist-update.
54526
54527 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54528
54529         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
54530         Normalize leading white space and remove trailing white space.
54531         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
54532         notice, as per ../config/srclist-update.
54533
54534         Merge from coreutils.
54535         * lib/euidaccess.h: New file.
54536         * lib/euidaccess.c: Include it.
54537         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
54538         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
54539         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
54540
54541 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54542
54543         * config/srclist-update: Add copyright notice.
54544         (remove_id_lines, remove_trailing_blanks): New constants.
54545         (fixfile): Use them to normalize spacing a bit in copied files.
54546         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
54547         Normalize leading white space and remove trailing white space.
54548
54549         * config/texinfo.tex: Sync with texinfo.
54550
54551         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
54552         strtoul.c from libc, to merge coreutils whitespace changes.
54553
54554         * config/srclist.txt: Get the following m4 files from gettext:
54555         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
54556         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
54557         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
54558         wint_t.m4.
54559
54560 2003-08-12  Karl Berry  <karl@gnu.org>
54561
54562         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
54563         been made.
54564
54565 2003-08-11  Paul Eggert  <eggert@twinsun.com>
54566
54567         * modules/gnu-source, m4/gnu-source.m4:
54568         Remove; we're assuming Autoconf 2.54 or later now.
54569         Suggested by Bruno Haible.
54570         * MODULES.html.sh (func_all_modules): Remove gnu-source.
54571
54572 2003-08-11  Bruno Haible  <bruno@clisp.org>
54573
54574         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
54575
54576 2003-08-11  Bruno Haible  <bruno@clisp.org>
54577
54578         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
54579         (vasnprintf): Use it instead of wcslen.
54580
54581 2003-08-11  Bruno Haible  <bruno@clisp.org>
54582
54583         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
54584         value to ensure that _Bool promotes to int. Use #define for _Bool when
54585         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
54586
54587 2003-08-10  Karl Berry  <karl@gnu.org>
54588
54589         * lib/regex.h: update from libc (whitespace fix).
54590
54591 2003-08-09  Paul Eggert  <eggert@twinsun.com>
54592
54593         Merge some files from coreutils.  These changes were
54594         originally made by Jim Meyering.
54595         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
54596         many older Unixes require this.
54597         * lib/alloca.c (alloca): Remove cast to argument of free;
54598         no longer needed in C89.
54599         * lib/alloca_.h, regex.h: Fix white space to match
54600         what GNU indent does.
54601
54602 2003-08-09  Paul Eggert  <eggert@twinsun.com>
54603
54604         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
54605         apparently Emacs's Unicode mode got confused before my 2003-08-05
54606         checkin.
54607
54608 2003-08-08  Paul Eggert  <eggert@twinsun.com>
54609
54610         * m4/extensions.m4: New file.
54611         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
54612         Require gl_USE_SYSTEM_EXTENSIONS.
54613         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
54614         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
54615
54616 2003-08-08  Paul Eggert  <eggert@twinsun.com>
54617
54618         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
54619         * modules/extensions, modules/gnu-source: New files.
54620         * modules/timespec, modules/unlocked-io: Depend on extensions.
54621
54622 2003-08-07  Paul Eggert  <eggert@twinsun.com>
54623
54624         * modules/restrict: New file.
54625         * MODULES.html.sh (func_all_modules): Add restrict.
54626         * modules/regex: Depend on restrict.
54627
54628 2003-08-07  Paul Eggert  <eggert@twinsun.com>
54629
54630         * m4/restrict.m4: New file.
54631         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
54632
54633 2003-08-07  Bruno Haible  <bruno@clisp.org>
54634
54635         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
54636         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
54637
54638 2003-08-07  Bruno Haible  <bruno@clisp.org>
54639
54640         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
54641         makes the module 'getndelim2' compatible with the module 'getline'.
54642
54643 2003-08-05  Paul Eggert  <eggert@twinsun.com>
54644
54645         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
54646         byte with "\201" to avoid glitches when editing that source file
54647         with multi-gnome-terminal.
54648
54649 2003-08-05  Paul Eggert  <eggert@twinsun.com>
54650
54651         * lib/bumpalloc.h: Remove.
54652
54653 2003-08-05  Paul Eggert  <eggert@twinsun.com>
54654
54655         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
54656         * modules/bumpalloc: Remove.
54657
54658 2003-08-04  Paul Eggert  <eggert@twinsun.com>
54659
54660         * lib/getloadavg.c: Change copyright notice and spacing to conform to
54661         GNU coding style.
54662
54663         Merge from coreutils.
54664         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
54665         1. From glibc.
54666         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
54667         from Karl Berry, implemented by Jim Meyering.
54668         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
54669         from Dmitry V. Levin.
54670         Remove anachronistic cast of xrealloc.
54671         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
54672         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
54673         type. Otherwise, it wouldn't compile with at least /bin/cc on
54674         ymp-cray-unicos9.0.2.X.
54675         Combine two mostly-identical uses of alloca into one.
54676         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
54677
54678 2003-08-04  Dave Love  <d.love@dl.ac.uk>
54679
54680         [From Emacs.]
54681
54682         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
54683         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
54684         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
54685         obsolete NLIST_NAME_UNION.
54686         [__GNU__]: Undef BSD and FSCALE.
54687         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
54688
54689 2003-08-03  Paul Eggert  <eggert@twinsun.com>
54690
54691         * lib/stdbool_.h (_Bool): Make it signed char, instead of
54692         an enum type, so that it's guaranteed to promote to int.  See:
54693         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
54694
54695 2003-08-03  Karl Berry  <karl@gnu.org>
54696
54697         * config/depcomp: update from automake.
54698
54699 2003-07-31  Paul Eggert  <eggert@twinsun.com>
54700
54701         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
54702         (strerror): Don't assume that a printable int fits in 14 bytes.
54703
54704 2003-07-31  Bruno Haible  <bruno@clisp.org>
54705
54706         * modules/getpass-gnu: New file.
54707         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
54708
54709 2003-07-31  Bruno Haible  <bruno@clisp.org>
54710
54711         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
54712
54713 2003-07-24  Karl Berry  <karl@gnu.org>
54714
54715         * config/missing: update from automake.
54716
54717 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
54718             Bruno Haible  <bruno@clisp.org>
54719
54720         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
54721         * lib/getline.c (getline, getdelim): Likewise.
54722         Remove _GNU_SOURCE define; now it's defined in config.h through
54723         m4/getline.m4.
54724
54725 2003-07-23  Karl Berry  <karl@gnu.org>
54726
54727         * config/config.sub: update from prep.
54728
54729 2003-07-22  Paul Eggert  <eggert@twinsun.com>
54730
54731         * modules/xalloc (Depends-on): Add exitfail.
54732         * modules/xmemcoll: Likewise.
54733
54734 2003-07-22  Paul Eggert  <eggert@twinsun.com>
54735
54736         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
54737         over-parenthesization in macros.
54738
54739         Sync with coreutils.
54740
54741         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
54742         required by C99.
54743
54744         Use `exit_failure' for xalloc and xmemcoll instead of their own
54745         private exit-failure variables.
54746         * lib/xalloc.h (xalloc_exit_failure): Remove.
54747         * lib/xmalloc.c: Likewise.  Include exitfail.h.
54748         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
54749         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
54750         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
54751         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
54752
54753 2003-07-20  Jim Meyering  <jim@meyering.net>
54754
54755         * modules/closeout (Depends-on): Add exitfail.
54756         Suggestion from Bruno Haible.
54757
54758 2003-07-19  Karl Berry  <karl@gnu.org>
54759
54760         * config/config.sub: update from prep.
54761
54762 2003-07-18  Paul Eggert  <eggert@twinsun.com>
54763
54764         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
54765         Remove.
54766         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
54767         to test that it can stand by itself.  Include "exitfail.h".
54768         Clients should set exit_failure instead.
54769         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
54770
54771 2003-07-18  Bruno Haible  <bruno@clisp.org>
54772
54773         * modules/getndelim2: New file.
54774         * modules/getline: Share files with module getndelim2.
54775         * modules/getnline: Depend on getndelim2 instead of sharing files with
54776         it. Add getnline.c to lib_SOURCES.
54777         * MODULES.html.sh (func_all_modules): Add getndelim2.
54778
54779 2003-07-18  Bruno Haible  <bruno@clisp.org>
54780
54781         * m4/getndelim2.m4: New file.
54782         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
54783         invoke gl_PREREQ_GETNDELIM2.
54784         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
54785         gl_PREREQ_GETNDELIM2.
54786         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
54787         gl_GETNDELIM2.
54788
54789 2003-07-18  Bruno Haible  <bruno@clisp.org>
54790
54791         * lib/getndelim2.h: New file.
54792         * lib/getndelim2.c: Make into a module of its own. Include config.h,
54793         getndelim2.h.
54794         (getndelim2): Make non-static. Change return type to ssize_t.
54795         * lib/getline.h: Change argument names.
54796         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
54797         * lib/getnline.c: Include getndelim2.h.
54798
54799 2003-07-18  Andreas Schwab  <schwab@suse.de>
54800
54801         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
54802
54803 2003-07-17  Karl Berry  <karl@gnu.org>
54804
54805         * config/config.sub: update from prep.
54806
54807 2003-07-17  Bruno Haible  <bruno@clisp.org>
54808
54809         * modules/getnline: New file.
54810         * modules/getline: Add lib/getndelim2.c to source file list.
54811         * MODULES.html.sh (func_all_modules): Add getnline.
54812
54813 2003-07-17  Bruno Haible  <bruno@clisp.org>
54814
54815         * m4/getnline.m4: New file.
54816
54817 2003-07-17  Bruno Haible  <bruno@clisp.org>
54818
54819         * m4/Makefile.am.in: Remove file.
54820         * m4/Makefile.am: Remove file.
54821         * m4/Makefile.in: Remove file.
54822
54823 2003-07-17  Bruno Haible  <bruno@clisp.org>
54824
54825         * lib/getnline.h: New file.
54826         * lib/getnline.c: New file.
54827         * lib/getndelim2.c: New file, extracted from getline.c.
54828         (getndelim2): Renamed from getdelim2, with added nmax argument.
54829         * lib/getline.c: Include getndelim2.c.
54830         (getdelim2): Moved out to getndelim2.c.
54831         (getline, getdelim): Update.
54832
54833 2003-07-17  Bruno Haible  <bruno@clisp.org>
54834
54835         * lib/Makefile.am: Remove file.
54836         * lib/Makefile.in: Remove file.
54837
54838 2003-07-17  Bruno Haible  <bruno@clisp.org>
54839
54840         * configure.in: Remove file.
54841         * Makefile.in: Remove file.
54842
54843 2003-07-17  Bruno Haible  <bruno@clisp.org>
54844
54845         * MODULES.html.sh: Put the </BODY> right before </HTML>.
54846
54847 2003-07-16  Karl Berry  <karl@gnu.org>
54848
54849         * config/srclist-update: was running fixlicense twice, which caused
54850                 texinfo.tex to be nullified for some reason.  Simplify,
54851                 $gplsrc is no longer needed as far as I can see?
54852
54853 2003-07-16  Jim Meyering  <jim@meyering.net>
54854
54855         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
54856
54857 2003-07-15  Paul Eggert  <eggert@twinsun.com>
54858
54859         * config/srclist.txt: Get the following files from gettext-runtime/intl
54860         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
54861         ref-del.sin.  From Bruno Haible.
54862         * config/srclist-update (fixfile): Change grep pattern again, since the
54863         previous fix didn't work (there was another trailing $).  Use
54864         '[$]' to escape the $s.
54865
54866 2003-07-15  Karl Berry  <karl@gnu.org>
54867
54868         * lib/vasnprintf.c: update from gettext.
54869
54870 2003-07-15  Karl Berry  <karl@gnu.org>
54871
54872         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
54873         gets expanded when surrounded by '$'.
54874
54875 2003-07-15  Jim Meyering  <jim@meyering.net>
54876
54877         * modules/save-cwd: Don't depend on error.  From Derek Price.
54878
54879 2003-07-15  Jim Meyering  <jim@meyering.net>
54880
54881         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
54882
54883 2003-07-14  Simon Josefsson  <jas@extundo.com>
54884
54885         * modules/mempcpy: New file.
54886         * MODULES.html.sh (func_all_modules): Add mempcpy.
54887
54888 2003-07-14  Simon Josefsson  <jas@extundo.com>
54889
54890         * m4/mempcpy.m4: New file.
54891
54892 2003-07-14  Simon Josefsson  <jas@extundo.com>
54893
54894         * lib/mempcpy.h: New file.
54895         * lib/mempcpy.c: New file.
54896
54897 2003-07-14  Paul Eggert  <eggert@twinsun.com>
54898
54899         * modules/getdate, modules/posixtm: Depend on mktime.
54900
54901 2003-07-14  Paul Eggert  <eggert@twinsun.com>
54902
54903         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
54904         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
54905         unicodeio.c, unicodeio.h, unlocked-io.h:
54906         Switch from LGPL to GPL.
54907
54908 2003-07-14  Paul Eggert  <eggert@twinsun.com>
54909
54910         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
54911         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
54912         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
54913         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
54914         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
54915         updated automatically by ../config/srclist-update.  This changes
54916         their license from LPGL to GPL.
54917
54918 2003-07-14  Paul Eggert  <eggert@twinsun.com>
54919
54920         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
54921         assumed to refer to the root of the most recent stable gettext version.
54922         * config/srclistvars.sh: Add defaults for eggert.
54923         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
54924         Match "This program" as well as "The program".  This is needed
54925         for gettext.
54926
54927 2003-07-14  Jim Meyering  <jim@meyering.net>
54928
54929         Don't emit diagnostics.  Let callers do that.
54930         * lib/save-cwd.c: Don't include "error.h".
54931         (save_cwd): Don't call error.  Ensure that errno is valid
54932         when returning nonzero.
54933
54934         * lib/save-cwd.h (restore_cwd): Update prototype.
54935         * lib/save-cwd.c (restore_cwd): Remove two parameters.
54936         Simplify.  Don't call error upon failure.  Let callers do that.
54937         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
54938         when auditing is enabled.  But don't bother updating the #if.
54939
54940 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
54941
54942         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
54943         it breaks C++ compilation.
54944         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
54945
54946 2003-07-10  Simon Josefsson  <jas@extundo.com>
54947
54948         * modules/strchrnul (Makefile.am): Add strchrnul.h.
54949
54950 2003-07-10  Jim Meyering  <jim@meyering.net>
54951
54952         * m4/clock_time.m4: Remove trailing blank.
54953         * m4/intmax_t.m4: Likewise.
54954
54955 2003-07-10  Jim Meyering  <jim@meyering.net>
54956
54957         * lib/vasnprintf.c: Remove trailing blanks.
54958         Make cpp indentation consistent.
54959
54960 2003-07-09  Paul Eggert  <eggert@twinsun.com>
54961
54962         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
54963         posixver.c, strftime.c, strnlen.c, strverscmp.c:
54964         Switch from LGPL to GPL.
54965
54966 2003-07-09  Paul Eggert  <eggert@twinsun.com>
54967
54968         * config/srclist.txt: Sort sublists.  Add
54969         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
54970         that differ from gnulib for one reason or another; we'd like this list
54971         to be smaller but for now let's document what we have.
54972
54973 2003-07-08  Paul Eggert  <eggert@twinsun.com>
54974
54975         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
54976         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
54977         and sweeter "eval x=$x".
54978         * config/srclist.txt: Get lib/argp* from glibc.
54979
54980 2003-07-07  Paul Eggert  <eggert@twinsun.com>
54981
54982         * lib/mktime.c: Fix some boundary cases and remove need for floating
54983         point.
54984
54985         Issue a compile-time diagnostic if time_t is floating point, or if
54986         two's complement arithmetic is not in effect, or if arithmetic
54987         right shift does not propagate the sign.  These assumptions were
54988         all in the original code but they weren't checked.
54989
54990         (TIME_T_MIDPOINT, verify): New macros.
54991         (__isleap): Remove; it has integer overflow problems.
54992         (leapyear): New function, without those problems.
54993         (ydhms_tm_diff): Remove; splitting into two parts.
54994         (ydhms_diff): New function, containing the arithmetic part of
54995         the old ydhms_tm_diff function.  Issue a compile-time
54996         diagnostic if we are not using C99 integer division.
54997         Avoid casts when possible.
54998         (guess_time_tm): New function, containing the checking part of
54999         the old ydhms_tm_diff function.  Return the new value, rather than
55000         the difference between it and the old.  Accept a new argument T
55001         so that *T specifies the old value.  Check for overflow in the result.
55002
55003         (__mktime_internal): Use a time_t offset, not a long int offset.
55004         This undoes the 2003-06-04 change, which is no longer needed now
55005         that we have better overflow checking.
55006         (localtime_offset): Likewise.
55007
55008         (__mktime_internal): Avoid harmful overflow on hosts where time_t
55009         and long are 64-bit but int is only 32-bit.
55010         (ydhms_diff): Use long int to store year1 and yday1.
55011         Issue a compile-time diagnostic if long int is not wide enough.
55012
55013         (__mktime_internal): Use long int to store adjusted year and yday.
55014         Use plain C rather than preprocessor commands, if that doesn't
55015         affect efficiency.
55016         Check for overflow (and try to repair) after each probe
55017         rather than checking only at the very end.  This avoids some bugs
55018         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
55019         does not equal GMT offset at maximum time).
55020         Use integer to check for overflow rather than floating point; this
55021         is more portable to non-IEEE hosts, and is a tad faster.
55022         When we detect that we are oscillating between two values,
55023         don't check whether tm_isdst has the requested value, since
55024         we already know the answer.  When tm_isdst has the wrong value,
55025         use a different heuristic to find the right one, based on the
55026         extreme values actually observed in practice in tz2003a,
55027         rather than the (overly optimistic) "previous 3 calendar quarters".
55028
55029         (not_equal_tm, print_tm, check_result): Use "const T" rather than
55030         "T const" to accommodate glibc style.
55031         (check_result): Use less-confusing report format.  "long" -> "long int.
55032         (main): Likewise.
55033         Don't loop if the iteration overflows time_t.
55034         Allow a negative step in the iteration.
55035
55036 2003-07-06  Karl Berry  <karl@gnu.org>
55037
55038         * config/depcomp: update from automake.
55039         * config/config.sub: update from prep.
55040
55041 2003-07-03  Karl Berry  <karl@gnu.org>
55042
55043         * config/config.guess: update from prep.
55044
55045 2003-07-01  Paul Eggert  <eggert@twinsun.com>
55046
55047         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
55048         xreadlink.c now includes it unconditionally.
55049
55050 2003-07-01  Paul Eggert  <eggert@twinsun.com>
55051
55052         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
55053         having it depend on HAVE_SYS_TYPES_H.
55054
55055 2003-07-01  Bruno Haible  <bruno@clisp.org>
55056
55057         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
55058         <sys/types.h> should be sufficient.
55059         Reported by Paul Eggert.
55060
55061 2003-06-26  Karl Berry  <karl@gnu.org>
55062
55063         * config/depcomp: update from automake.
55064
55065 2003-06-26  Bruno Haible  <bruno@clisp.org>
55066
55067         * modules/human: Depend on module stdbool.
55068
55069 2003-06-25  Bruno Haible  <bruno@clisp.org>
55070
55071         * modules/readlink: New file.
55072         * modules/xreadlink: Depend on it.
55073         * MODULES.html.sh (func_all_modules): Add readlink.
55074
55075 2003-06-25  Bruno Haible  <bruno@clisp.org>
55076
55077         * m4/readlink.m4: New file.
55078
55079 2003-06-25  Bruno Haible  <bruno@clisp.org>
55080
55081         * lib/readlink.c: New file.
55082
55083 2003-06-22  Karl Berry  <karl@gnu.org>
55084
55085         * config/srclist.txt: update mkinstalldirs from automake.
55086         * config/mkinstalldirs: update.
55087
55088 2003-06-22  Bruno Haible  <bruno@clisp.org>
55089
55090         Portability to mingw32.
55091         * m4/ssize_t.m4: New file, from GNU gettext.
55092         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
55093         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
55094
55095 2003-06-22  Bruno Haible  <bruno@clisp.org>
55096
55097         * modules/safe-read: Add m4/ssize_t.m4.
55098         * modules/xreadlink: Add m4/ssize_t.m4.
55099
55100 2003-06-20  Bruno Haible  <bruno@clisp.org>
55101
55102         Assume C89, so PARAMS isn't needed.
55103         * lib/unicodeio.h (PARAMS): Remove.
55104         * lib/unicodeio.c: Don't use PARAMS.
55105
55106 2003-06-18  Karl Berry  <karl@gnu.org>
55107
55108         * config/config.{guess,sub}: update from prep.
55109
55110 2003-06-18  Jim Meyering  <jim@meyering.net>
55111
55112         Merge changes from coreutils.
55113         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
55114         Remove explicit declarations of xmalloc and realloc.
55115         Include xalloc.h.
55116         (read_utmp): Remove anachronistic cast of xmalloc.
55117
55118 2003-06-17  Paul Eggert  <eggert@twinsun.com>
55119
55120         Assume C89, so PARAMS isn't needed.
55121         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
55122         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
55123         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
55124         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
55125         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
55126         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
55127         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
55128         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
55129         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
55130         lib/xstrtod.h, lib/xstrtol.h: Likewise.
55131         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
55132         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
55133         no longer needed. Anyway, config.h should always be included before any
55134         other file.
55135
55136 2003-06-11  Simon Josefsson  <jas@extundo.com>
55137
55138         * modules/sysexits: New file.
55139         * MODULES.html.sh (func_all_modules): Add sysexits.
55140
55141 2003-06-11  Simon Josefsson  <jas@extundo.com>
55142
55143         * lib/sysexit_.h: New file.
55144
55145 2003-06-11  Derek Price  <derek@ximbiot.com>
55146
55147         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
55148         necessary.
55149
55150 2003-06-11  Bruno Haible  <bruno@clisp.org>
55151
55152         * m4/sysexits.m4: New file.
55153
55154 2003-06-10  Simon Josefsson  <jas@extundo.com>
55155
55156         * lib/argp.h: New file, from glibc.
55157         * lib/argp-ba.c: New file, from glibc.
55158         * lib/argp-eexst.c: New file, from glibc.
55159         * lib/argp-fmtstream.c: New file, from glibc.
55160         * lib/argp-fmtstream.h: New file, from glibc.
55161         * lib/argp-fs-xinl.c: New file, from glibc.
55162         * lib/argp-help.c: New file, from glibc.
55163         * lib/argp-namefrob.h: New file, from glibc.
55164         * lib/argp-parse.c: New file, from glibc.
55165         * lib/argp-pv.c: New file, from glibc.
55166         * lib/argp-pvh.c: New file, from glibc.
55167         * lib/argp-xinl.c: New file, from glibc.
55168
55169 2003-06-10  Simon Josefsson  <jas@extundo.com>
55170
55171         * modules/strchrnul: New file.
55172
55173 2003-06-10  Simon Josefsson  <jas@extundo.com>
55174
55175         * modules/argp: New file.
55176
55177 2003-06-10  Simon Josefsson  <jas@extundo.com>
55178
55179         * m4/strchrnul.m4: New file.
55180
55181 2003-06-10  Simon Josefsson  <jas@extundo.com>
55182
55183         * lib/strchrnul.h: New file.
55184         * lib/strchrnul.c: New file.
55185
55186 2003-06-10  Bruno Haible  <bruno@clisp.org>
55187
55188         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
55189
55190 2003-06-07  Karl Berry  <karl@gnu.org>
55191
55192         * config/config.{guess,sub}: update from prep.
55193
55194 2003-06-07  Jim Meyering  <jim@meyering.net>
55195
55196         * modules/strtod: Use $(...) notation, not @...@ for
55197         AC_REPLACE'd variables.
55198         * modules/localcharset: Likewise.
55199
55200 2003-06-07  Jim Meyering  <jim@meyering.net>
55201
55202         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
55203         in place of my name in the copyright comment.
55204         Remove definition and uses of __P.
55205
55206         From coreutils.
55207         * lib/stat.c: Don't declare xmalloc explicitly.
55208         Instead, include "xalloc.h".
55209         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
55210         xrealloc, and xcalloc return values.
55211         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
55212         Improve comment.
55213         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
55214
55215 2003-06-07  Bruno Haible  <bruno@clisp.org>
55216
55217         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
55218         avoid AC_CONFIG_LINKS.
55219         * modules/fnmatch (Makefile.am): Use explicit creation rule for
55220         fnmatch.h, to avoid AC_CONFIG_LINKS.
55221         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
55222
55223 2003-06-07  Bruno Haible  <bruno@clisp.org>
55224
55225         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
55226         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
55227         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
55228         directory.
55229         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
55230         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
55231         directory.
55232
55233 2003-06-06  Jim Meyering  <jim@meyering.net>
55234
55235         Merge from coreutils.
55236         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
55237         Consolidate declarations and initializations of *_base* locals.
55238
55239         Merge from coreutils.
55240         This avoids a core dump on systems without GNU putenv,
55241         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
55242         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
55243         (unsetenv): New static function, from GNU libc.
55244         (rpl_putenv): Use it.
55245
55246         * lib/modechange.c: Remove trailing blanks.
55247
55248         Merge from coreutils.
55249         * lib/fsusage.c: Remove declaration of statfs.
55250         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
55251
55252         * lib/posixtm.c: Include <stdbool.h> unconditionally.
55253
55254 2003-06-06  Jim Meyering  <jim@meyering.net>
55255
55256         * lib/stdbool_.h: Renamed from stdbool.h.in.
55257
55258 2003-06-06  Jim Meyering  <jim@meyering.net>
55259             Bruno Haible  <bruno@clisp.org>
55260
55261         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
55262         Adjust Makefile.am snippet not to redirect directly to target.
55263         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
55264
55265 2003-06-05  Paul Eggert  <eggert@twinsun.com>
55266
55267         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
55268         mismatch, look in future quarters as well as past.  This fixes a
55269         bug when processing fall-backwards gaps immediately after a long
55270         period of daylight-saving time.
55271
55272         * lib/mktime.c: Assume freestanding C89 or better.
55273         (HAVE_LIMITS_H): Remove.  Assume it's 1.
55274         (__P): Remove; not used.
55275         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
55276         (mktime, not_equal_tm, print_tm, check_result,
55277         main): Use prototypes.  Use const * where appropriate.
55278         (main): Fix typo in testing code that uncovered by above changes.
55279         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
55280
55281 2003-06-04  Paul Eggert  <eggert@twinsun.com>
55282
55283         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
55284         locale.h, localeconv.  This merges changes from coreutils.
55285
55286         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
55287         It can be removed after the next Autoconf is released.
55288         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
55289         needed.
55290
55291 2003-06-04  Paul Eggert  <eggert@twinsun.com>
55292
55293         * lib/mktime.c: Fix Debian bug 177940
55294         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
55295         (localtime_offset): Now long int, not time_t, because we want it
55296         to be guaranteed to be signed.  All uses changed.
55297         (__mktime_internal): If overflow would occur when adding offset,
55298         don't add it.
55299
55300         Merge 'human' changes from coreutils.  Rewrite to support
55301         locale-specific notations like thousands separators.
55302         * lib/human.c: Simplify authorship notice.
55303         Include human.h immediately after config.h.
55304         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
55305         <limits.h>: Do not include, since human.h does.
55306         (SIZE_MAX, UINTMAX_MAX): New macros.
55307         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
55308         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
55309         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
55310         (power_letter): Renamed from suffixes.
55311         (generate_suffix_backwards): Remove.
55312         (adjust_value): Now takes int style (because of human.h changes)
55313         and long double value (for greater precision on some platforms).
55314         (group_number): New function.
55315         (human_readable): Use it.  Use integer options, not enum.
55316         Put the options before the sizes in the arg list.
55317         Support all the new options.
55318         The old human_readable function has been removed;
55319         use inttostr.h instead.
55320         (human_readable, default_block_size, humblock):
55321         Use uintmax_t, not int, for block sizes.
55322         (human_readable_inexact, block_size_types): Remove.
55323         (block_size_opts): New constant.
55324         (human_options): Renamed from human_block_size, with new signature
55325         that allows block sizes up to UINTMAX_MAX.  All callers changed.
55326         * lib/human.h: Add copyright and authorship notice.
55327         Include <limits.h> and <stdbool.h> unconditionally.
55328         (PARAMS): Remove.  All uses removed.
55329         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
55330         (enum human_inexact_style): Remove tag; now a nameless enum.
55331         (human_floor, human_ceiling, human_round_to_even): Now have
55332         values 2, 0, 1 rather than -1, 1, 0.
55333         (human_group_digits, human_suppress_point_zero, human_autoscale,
55334         human_base_1024, human_SI, human_B): New constants.
55335         (human_readable_inexact, human_block_size): Remove.
55336         (human_readable): Size args are now uintmax_t, not int.
55337         (human_options): New decl.
55338
55339         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
55340         unnecessary now that we assume C89 or better.  This change
55341         imported from coreutils.
55342
55343         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
55344         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
55345         in the 2003-05-30 sync from glibc.
55346
55347         .h files should stand alone, but we shouldn't include <sys/types.h>
55348         if we can get away with just <stddef.h>.
55349
55350         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
55351         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
55352         rather than <sys/types.h>, as we merely need size_t.
55353         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
55354         to get size_t.
55355         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
55356         Include <stdio.h>, to get FILE.
55357         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
55358         memcasecmp.h has included <stddef.h> and all we need is size_t.
55359         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
55360         our interface, instead of including <sys/types.h>
55361
55362 2003-06-04  Paul Eggert  <eggert@twinsun.com>
55363
55364         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
55365         now, as glibc mktime is buggy on non-glibc systems.
55366
55367 2003-06-03  Karl Berry  <karl@gnu.org>
55368
55369         * config/config.sub: update from prep.
55370
55371 2003-06-02  Paul Eggert  <eggert@twinsun.com>
55372
55373         [from coreutils]
55374         Fix some minor time-related bugs with POSIX time arguments.
55375         Some valid time stamps were being rejected (notably -1, and
55376         time stamps before 1900 on 64-bit hosts).  And some invalid
55377         time stamps were being accepted, e.g. September 31.
55378
55379         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
55380         that we can return (time_t) -1 successfully.
55381         * lib/posixtm.c: Likewise.
55382         [HAVE_STDBOOL_H]: Include <stdbool.h>.
55383         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
55384         (t): Remove static var.
55385         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
55386         of static var.  All uses changed.
55387         (year): Do not reject years before 1900; they can occur with
55388         64-bit time_t.
55389         (posix_time_parse): Do not check for out-of-range components;
55390         that is now the caller's responsibility, since our checks were
55391         only approximations.
55392         (posixtime): Use mktime to check for out-of-range components,
55393         since it knows them exactly.
55394         If mktime returns (time_t) -1, check whether an error actually occurred
55395         by invoking localtime on -1.
55396         (main) [TEST_POSIXTIME]: Check for input data errors, and report
55397         posixtime failures better.
55398         Improve the test data (in comments only).
55399
55400 2003-06-02  Karl Berry  <karl@gnu.org>
55401
55402         * config/mkinstalldirs (version): new variable.
55403         (--version): new option.
55404         (usage): improve message.
55405
55406 2003-05-30  Karl Berry  <karl@gnu.org>
55407
55408         * lib/mktime.c: update from libc.
55409
55410 2003-05-30  Bruno Haible  <bruno@clisp.org>
55411
55412         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
55413         * config/config.rpath: Upgrade to gettext-0.12.1.
55414
55415 2003-05-30  Bruno Haible  <bruno@clisp.org>
55416
55417         * m4/gettext.m4: Upgrade to gettext-0.12.1.
55418         * m4/nls.m4: New file, from gettext-0.12.1.
55419         * m4/po.m4: New file, from gettext-0.12.1.
55420         * m4/progtest.m4: Upgrade to gettext-0.12.1.
55421
55422 2003-05-30  Bruno Haible  <bruno@clisp.org>
55423
55424         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
55425         * lib/localcharset.h: Likewise.
55426         * lib/localcharset.c: Likewise.
55427
55428 2003-05-29  Karl Berry  <karl@gnu.org>
55429
55430         * config/config.rpath: update from gettext.
55431
55432 2003-05-28  Paul Eggert  <eggert@twinsun.com>
55433
55434         Assume the headers required for C89 freestanding compilers.
55435         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
55436         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
55437         * m4/human.m4 (gl_HUMAN): Likewise.
55438         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
55439         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
55440         * m4/userspec.m4 (gl_USERSPEC): Likewise.
55441         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
55442         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55443         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
55444
55445 2003-05-28  Paul Eggert  <eggert@twinsun.com>
55446
55447         Assume the headers required for C89 freestanding compilers.
55448         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
55449         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
55450         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
55451         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
55452         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
55453         define, since <limits.h> is guaranteed to do that.
55454         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
55455         * lib/exclude.c: Include <stdbool.h> unconditionally.
55456         * lib/tempname.c: Include <stddef.h> unconditionally.
55457         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
55458         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
55459         <stddef.h> does that.
55460         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
55461         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
55462         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
55463         needed.
55464         * lib/xstrtol.c: Likewise.
55465         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
55466         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
55467
55468         * lib/addext.c (addext): Use assignment rather than cast, to avoid
55469         warnings on some platforms.
55470
55471         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
55472         arbitrarily.
55473
55474 2003-05-26  Jim Meyering  <jim@meyering.net>
55475
55476         Merge in a change from coreutils:
55477         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
55478         that is guaranteed to be `no'.  Use `no_such_member' to indicate
55479         that condition, rather than `-1' which is slightly misleading.
55480         Change the name of the cache variable to have the gl_ prefix.
55481         Prompted by a patch from Richard Dawe for DJGPP.
55482
55483 2003-05-24  Karl Berry  <karl@gnu.org>
55484
55485         * config/config.guess: update from prep.
55486
55487 2003-05-22  Karl Berry  <karl@gnu.org>
55488
55489         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
55490
55491 2003-05-20  Karl Berry  <karl@gnu.org>
55492
55493         * config/config.guess: update from prep.
55494
55495 2003-05-18  Karl Berry  <karl@gnu.org>
55496
55497         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
55498         might actually be set by the user.
55499
55500         * config/depcomp, install-sh, mdate-sh: update from automake.
55501
55502 2003-05-17  Bruno Haible  <bruno@clisp.org>
55503
55504         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
55505         invalid expansion for AC_EGREP_CPP.
55506         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
55507         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
55508         Suggested by Akim Demaille <akim@epita.fr> in
55509         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
55510
55511 2003-05-12  Jim Meyering  <jim@meyering.net>
55512
55513         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
55514         the space-padded-by-default conversion specifiers, %e, %k, %l.
55515
55516 2003-05-12  Bruno Haible  <bruno@clisp.org>
55517
55518         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
55519         the string is longer than 4 KB.
55520
55521 2003-05-11  Karl Berry  <karl@gnu.org>
55522
55523         * config/config.{guess,sub}: update from prep.
55524
55525 2003-05-09  Bruno Haible  <bruno@clisp.org>
55526
55527         * modules/error: Add m4/strerror_r.m4 to file list.
55528
55529 2003-05-03  Bruno Haible  <bruno@clisp.org>
55530
55531         Upgrade to Unicode-4.0.
55532         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
55533         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
55534         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
55535         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
55536         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
55537         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
55538         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
55539         Change width of U+E0100..U+E01EF from 1 to 0.
55540
55541 2003-04-25  Jim Meyering  <jim@meyering.net>
55542
55543         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
55544         of type size_t, not int.
55545
55546 2003-04-25  Bruno Haible  <bruno@clisp.org>
55547
55548         * lib/copy-file.c: Include <stddef.h>, for size_t.
55549
55550 2003-04-21  Paul Eggert  <eggert@twinsun.com>
55551
55552         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
55553         code which expansion is under static control.  Patch imported from
55554         Akim Demaille's patch to Bison; see
55555         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
55556
55557 2003-04-14  Bruno Haible  <bruno@clisp.org>
55558
55559         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
55560
55561 2003-04-11  Jim Meyering  <jim@meyering.net>
55562
55563         Merge changes from Coreutils.
55564
55565         2003-03-22  Jim Meyering  <jim@meyering.net>
55566
55567         * lib/strftime.c (widen): Cast alloca return value to proper type.
55568
55569         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
55570
55571         From GNU libc.
55572         * lib/strftime.c (my_strftime): Handle very large width
55573         specifications for numeric values correctly.  Improve checks for
55574         overflow.
55575
55576         2003-01-19  Jim Meyering  <jim@meyering.net>
55577
55578         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
55579         definitions.
55580         (nl_get_alt_digit) [! defined my_strftime]: Define.
55581         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
55582         _nl_get_alt_digit and _nl_get_walt_digit.
55583
55584         * lib/strftime.c (my_strftime): Merge in locale-related changes from
55585         libc. These changes have no effect outside of _LIBC.
55586
55587 2003-04-10  Bruno Haible  <bruno@clisp.org>
55588
55589         * modules/findprog: New file.
55590         * MODULES.html.sh (func_all_modules): Add it.
55591
55592 2003-04-10  Bruno Haible  <bruno@clisp.org>
55593
55594         * m4/findprog.m4: New file.
55595         * m4/eaccess.m4: New file.
55596
55597 2003-04-10  Bruno Haible  <bruno@clisp.org>
55598
55599         * lib/findprog.h: New file, from GNU gettext.
55600         * lib/findprog.c: New file, from GNU gettext.
55601
55602 2003-04-05  Jim Meyering  <jim@meyering.net>
55603
55604         Merge changes from Coreutils.
55605
55606         * lib/exclude.h (PARAMS): Remove definition and uses.
55607         * lib/exclude.c: Remove uses of `PARAMS'.
55608
55609         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
55610         Add test-cases for DOS filenames. Declare program_name.
55611         (main): Set up program_name.  Patch by Rich Dawe.
55612
55613         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
55614         error from mntctl.
55615         Use mntctl's return value to drive the entry-processing loop, since
55616         we can't rely on the value of the vmt_length member in the last
55617         entry.  On some systems doing so could result in exhausting
55618         virtual memory.  Based in part on a patch from Mike Jetzer.
55619
55620 2003-04-04  Bruno Haible  <bruno@clisp.org>
55621
55622         * modules/linebreak: New file.
55623         * MODULES.html.sh (func_all_modules): Add it.
55624
55625 2003-04-04  Bruno Haible  <bruno@clisp.org>
55626
55627         * m4/linebreak.m4: New file.
55628
55629 2003-04-04  Bruno Haible  <bruno@clisp.org>
55630
55631         * lib/linebreak.h: New file, from GNU gettext.
55632         * lib/linebreak.c: New file, from GNU gettext with slight
55633         modifications.
55634         * lib/lbrkprop.h: New file, from GNU gettext.
55635
55636 2003-04-03  Bruno Haible  <bruno@clisp.org>
55637
55638         * modules/utf8-ucs4: New file.
55639         * modules/utf16-ucs4: New file.
55640         * modules/ucs4-utf8: New file.
55641         * modules/ucs4-utf16: New file.
55642         * MODULES.html.sh (func_all_modules): Add them.
55643
55644 2003-04-03  Bruno Haible  <bruno@clisp.org>
55645
55646         * m4/utf-ucs4.m4: New file.
55647         * m4/ucs4-utf.m4: New file.
55648
55649 2003-04-03  Bruno Haible  <bruno@clisp.org>
55650
55651         * lib/utf8-ucs4.h: New file, from GNU gettext.
55652         * lib/utf16-ucs4.h: New file, from GNU gettext.
55653         * lib/ucs4-utf8.h: New file, from GNU gettext.
55654         * lib/ucs4-utf16.h: New file, from GNU gettext.
55655
55656 2003-04-02  Bruno Haible  <bruno@clisp.org>
55657
55658         * modules/binary-io: New file.
55659         * MODULES.html.sh (func_all_modules): Add it.
55660
55661 2003-04-02  Bruno Haible  <bruno@clisp.org>
55662
55663         * lib/binary-io.h: New file, from GNU gettext.
55664
55665 2003-04-01  Bruno Haible  <bruno@clisp.org>
55666
55667         * modules/pathname: New file.
55668         * MODULES.html.sh (func_all_modules): Add it.
55669
55670 2003-04-01  Bruno Haible  <bruno@clisp.org>
55671
55672         * lib/pathname.h: New file, from GNU gettext.
55673         * lib/concatpath.c: New file, from GNU gettext.
55674
55675 2003-03-30  Bruno Haible  <bruno@clisp.org>
55676
55677         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
55678
55679 2003-03-30  Bruno Haible  <bruno@clisp.org>
55680
55681         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
55682         function chown() doesn't exist.
55683
55684 2003-03-28  Bruno Haible  <bruno@clisp.org>
55685
55686         * modules/copy-file: New file.
55687         * MODULES.html.sh (func_all_modules): Add it.
55688
55689 2003-03-28  Bruno Haible  <bruno@clisp.org>
55690
55691         * m4/copy-file.m4: New file.
55692
55693 2003-03-28  Bruno Haible  <bruno@clisp.org>
55694
55695         * lib/copy-file.h: New file, from GNU gettext.
55696         * lib/copy-file.c: New file, from GNU gettext.
55697
55698 2003-03-18  Jim Meyering  <jim@meyering.net>
55699
55700         * lib/quote.c (quote_n): Fix typo in comment.
55701
55702 2003-03-18  Bruno Haible  <bruno@clisp.org>
55703
55704         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
55705         checking.
55706         * m4/onceonly_2_57.m4: Likewise.
55707
55708 2003-03-17  Bruno Haible  <bruno@clisp.org>
55709
55710         * m4/onceonly.m4: Require autoconf 2.54 or newer.
55711         (m4_quote): Remove macro.
55712         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
55713
55714 2003-03-14  Jim Meyering  <jim@meyering.net>
55715
55716         Merge changes from Coreutils.
55717         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
55718         to be const, in order to avoid warnings.
55719         (obstack_room): Likewise.
55720         (obstack_empty_p): Likewise.
55721
55722 2003-03-14  Bruno Haible  <bruno@clisp.org>
55723
55724         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
55725         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
55726
55727 2003-03-13  Paul Eggert  <eggert@twinsun.com>
55728
55729         Merge changes from Bison.
55730         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
55731         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
55732         when compiling Bison 1.875's `bitset bset = obstack_alloc
55733         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
55734         * lib/hash.c: Include <stdbool.h> unconditionally.
55735
55736 2003-03-13  Paul Eggert  <eggert@twinsun.com>
55737
55738         * m4/onceonly.m4 (m4_quote): New macro.
55739         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
55740         Quote AC_FOREACH variable-expansions properly.
55741
55742 2003-03-13  Paul Eggert  <eggert@twinsun.com>
55743
55744         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
55745
55746 2003-03-09  Paul Eggert  <eggert@twinsun.com>
55747
55748         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
55749         Reported by Bruce Becker; see:
55750         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
55751
55752 2003-03-03  Paul Eggert  <eggert@twinsun.com>
55753             Bruno Haible  <bruno@clisp.org>
55754
55755         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
55756         Reported by John Hughes, see
55757         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
55758
55759 2003-02-20  Bruno Haible  <bruno@clisp.org>
55760
55761         * MODULES.html.sh (func_all_modules): Add poll.
55762
55763 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
55764
55765         * modules/poll: New file.
55766
55767 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
55768
55769         * lib/poll_.h: New file.
55770         * lib/poll.c: New file.
55771
55772 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
55773
55774         * m4/poll.m4: New file.
55775
55776 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
55777
55778         * modules/mathl: New file.
55779
55780 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
55781
55782         * lib/mathl.h: New file.
55783         * lib/acosl.c: New file.
55784         * lib/asinl.c: New file.
55785         * lib/atanl.c: New file.
55786         * lib/ceill.c: New file.
55787         * lib/cosl.c: New file.
55788         * lib/expl.c: New file.
55789         * lib/floorl.c: New file.
55790         * lib/frexpl.c: New file.
55791         * lib/ldexpl.c: New file.
55792         * lib/logl.c: New file.
55793         * lib/sincosl.c: New file.
55794         * lib/sinl.c: New file.
55795         * lib/sqrtl.c: New file.
55796         * lib/tanl.c: New file.
55797         * lib/trigl.c: New file.
55798         * lib/trigl.h: New file.
55799
55800 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
55801
55802         * m4/mathl.m4: New file.
55803
55804 2003-02-18  Bruno Haible  <bruno@clisp.org>
55805
55806         * MODULES.html.sh (func_all_modules): Add mathl.
55807
55808 2003-02-17  Bruno Haible  <bruno@clisp.org>
55809
55810         * modules/mkdtemp: New module.
55811         * MODULES.html.sh (func_all_modules): Add it.
55812
55813 2003-02-17  Bruno Haible  <bruno@clisp.org>
55814
55815         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
55816
55817 2003-02-17  Bruno Haible  <bruno@clisp.org>
55818
55819         * lib/mkdtemp.h: New file, from GNU gettext.
55820         * lib/mkdtemp.c: New file, from GNU gettext.
55821
55822 2003-02-02  Jim Meyering  <jim@meyering.net>
55823
55824         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
55825         e.g. glibc-2.2.93.
55826
55827 2003-01-31  Bruno Haible  <bruno@clisp.org>
55828
55829         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
55830         'rpl_rename'.
55831         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
55832         'rpl_strnlen'.
55833         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
55834         'rpl_strtod'.
55835         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
55836         'rpl_utime'.
55837
55838 2003-01-31  Bruno Haible  <bruno@clisp.org>
55839
55840         * lib/rename.c: #undef rename before defining rpl_rename.
55841         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
55842
55843 2003-01-30  Bruno Haible  <bruno@clisp.org>
55844
55845         * modules/vasnprintf, modules/vasprintf: New modules.
55846         * MODULES.html.sh (func_all_modules): Add them.
55847
55848 2003-01-30  Bruno Haible  <bruno@clisp.org>
55849
55850         * m4/signed.m4: New file, from GNU gettext.
55851         * m4/longdouble.m4: New file, from GNU gettext.
55852         * m4/wchar_t.m4: New file, from GNU gettext.
55853         * m4/wint_t.m4: New file, from GNU gettext.
55854         * m4/vasnprintf.m4: New file.
55855         * m4/vasprintf.m4: New file.
55856
55857 2003-01-30  Bruno Haible  <bruno@clisp.org>
55858
55859         * lib/printf-args.h: New file, from GNU gettext.
55860         * lib/printf-args.c: New file, from GNU gettext.
55861         * lib/printf-parse.h: New file, from GNU gettext.
55862         * lib/printf-parse.c: New file, from GNU gettext.
55863         * lib/vasnprintf.h: New file, from GNU gettext.
55864         * lib/vasnprintf.c: New file, from GNU gettext.
55865         * lib/asnprintf.c: New file, from GNU gettext.
55866         * lib/vasprintf.h: New file, from GNU gettext with modifications.
55867         * lib/vasprintf.c: New file, from GNU gettext.
55868         * lib/asprintf.c: New file, from GNU gettext.
55869
55870 2003-01-29  Bruno Haible  <bruno@clisp.org>
55871
55872         * modules/stpncpy: New module.
55873         * MODULES.html.sh (func_all_modules): Add it.
55874
55875 2003-01-29  Bruno Haible  <bruno@clisp.org>
55876
55877         * m4/stpncpy.m4: New file.
55878
55879 2003-01-29  Bruno Haible  <bruno@clisp.org>
55880
55881         * lib/stpncpy.h: New file, from GNU gettext with modifications.
55882         * lib/stpncpy.c: New file, from GNU gettext with modifications.
55883
55884 2003-01-28  Bruno Haible  <bruno@clisp.org>
55885
55886         * modules/c-ctype: New module.
55887         * MODULES.html.sh (func_all_modules): Add it.
55888
55889 2003-01-28  Bruno Haible  <bruno@clisp.org>
55890
55891         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
55892         Paul Eggert.
55893         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
55894         Paul Eggert.
55895
55896 2003-01-27  Bruno Haible  <bruno@clisp.org>
55897
55898         * modules/xsetenv: New module.
55899         * MODULES.html.sh (func_all_modules): Add it.
55900
55901 2003-01-27  Bruno Haible  <bruno@clisp.org>
55902
55903         * lib/xsetenv.h: New file, from GNU gettext.
55904         * lib/xsetenv.c: New file, from GNU gettext.
55905
55906 2003-01-23  Jim Meyering  <jim@meyering.net>
55907
55908         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
55909         from working on systems without dirfd (at least Irix and OSF1/Tru64).
55910
55911 2003-01-23  Bruno Haible  <bruno@clisp.org>
55912
55913         * modules/minmax: New module.
55914         * MODULES.html.sh (func_all_modules): Add it.
55915
55916 2003-01-23  Bruno Haible  <bruno@clisp.org>
55917
55918         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
55919         Eggert.
55920
55921 2003-01-22  Bruno Haible  <bruno@clisp.org>
55922
55923         * modules/exit: New module.
55924         * MODULES.html.sh (func_all_modules): Add it.
55925
55926 2003-01-22  Bruno Haible  <bruno@clisp.org>
55927
55928         * lib/exit.h: New file, from GNU gettext.
55929
55930 2003-01-19  Bruno Haible  <bruno@clisp.org>
55931
55932         * gnulib-tool: Recognize option --extract-maintainer.
55933         (func_get_maintainer): New function.
55934         * modules/*: Add Maintainer entry.
55935
55936 2003-01-16  Jim Meyering  <jim@meyering.net>
55937
55938         * m4/regex.m4: The `regex' struct is both input and output.
55939         Initialize it before each use.  Patch by Tim Waugh.
55940
55941 2003-01-16  Bruno Haible  <bruno@clisp.org>
55942
55943         * MODULES.html.sh: Add a table of contents. Add the module name as
55944         leftmost column. Add hyperlinks.
55945
55946 2003-01-15  Bruno Haible  <bruno@clisp.org>
55947
55948         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
55949
55950 2003-01-15  Bruno Haible  <bruno@clisp.org>
55951
55952         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
55953         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
55954         suffix.
55955
55956 2003-01-15  Bruno Haible  <bruno@clisp.org>
55957
55958         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
55959
55960 2003-01-15  Bruno Haible  <bruno@clisp.org>
55961
55962         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
55963         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
55964
55965 2003-01-14  Jim Meyering  <jim@meyering.net>
55966
55967         * lib/same.c (same_name): Tweak a comment.
55968
55969 2003-01-14  Bruno Haible  <bruno@clisp.org>
55970
55971         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
55972         when a string comparison is sufficient.
55973
55974 2003-01-14  Bruno Haible  <bruno@clisp.org>
55975
55976         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
55977         'unsigned int'.
55978
55979 2003-01-14  Bruno Haible  <bruno@clisp.org>
55980
55981         * lib/hash-pjw.c: Add comment about low quality of this function.
55982
55983 2003-01-13  Bruno Haible  <bruno@clisp.org>
55984
55985         * modules/stpcpy: Distribute lib/stpcpy.h.
55986         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
55987
55988 2003-01-13  Bruno Haible  <bruno@clisp.org>
55989
55990         * modules/*: Add a description.
55991         * modules/strpbrk: Fix Makefile.am snippet.
55992         * modules/strtoimax: Fix dependencies.
55993         * modules/strtoumax: Likewise.
55994
55995 2003-01-13  Bruno Haible  <bruno@clisp.org>
55996
55997         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
55998         * modules/alloca (Makefile.am): All object files depend on alloca.h.
55999         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
56000
56001 2003-01-13  Bruno Haible  <bruno@clisp.org>
56002
56003         * gnulib-tool (func_create_testdir): Store config/* files in the main
56004         directory.
56005         * config.rpath: Move to ...
56006         * config/config.rpath: ... here.
56007         * modules/gettext: Contains config/config.rpath, not config.rpath.
56008         * modules/iconv: Likewise.
56009
56010 2003-01-12  Paul Eggert  <eggert@twinsun.com>
56011
56012         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
56013         to avoid collisions with libcurses and libreadline.
56014
56015         * m4/getstr.m4: Remove.
56016         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
56017
56018 2003-01-12  Paul Eggert  <eggert@twinsun.com>
56019
56020         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
56021         to avoid collisions with libcurses and libreadline.
56022
56023         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
56024         * lib/getstr.h, getstr.c: Remove.
56025         * lib/getline.c: Include "getline.h", to check interface.
56026         Move body of old getstr.c here: this defines MIN_CHUNK and
56027         declares getdelim2, which is renamed from getstr.
56028         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
56029
56030         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
56031         All uses changed.
56032         * lib/linebuffer.h: Likewise.
56033         (readline): Remove backward-compatibility macro.
56034
56035 2003-01-12  Paul Eggert  <eggert@twinsun.com>
56036
56037         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
56038         to avoid collisions with libcurses and libreadline.
56039         * getstr: Remove.
56040         * MODULES.html.sh: Remove getstr.
56041         * modules/getline: Depend on unlocked-io, not getstr.
56042
56043 2003-01-12  Jim Meyering  <jim@meyering.net>
56044
56045         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
56046
56047 2003-01-10  Bruno Haible  <bruno@clisp.org>
56048
56049         * modules/alloca: Change Makefile.am requirements. Simplify Include
56050         requirements. Add lib/alloca_.h to file list.
56051
56052 2003-01-10  Bruno Haible  <bruno@clisp.org>
56053
56054         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
56055
56056 2003-01-10  Bruno Haible  <bruno@clisp.org>
56057
56058         * lib/alloca_.h: New file.
56059         * lib/getdate.y: Unconditionally include alloca.h.
56060         * lib/makepath.c: Likewise.
56061         * lib/setenv.c: Likewise.
56062         * lib/userspec.c: Likewise.
56063
56064 2003-01-09  Karl Berry  <karl@gnu.org>
56065
56066         * MODULES.html.sh: include `dirname $0` in PATH, to find
56067         gnulib-tool.
56068
56069 2003-01-09  Bruno Haible  <bruno@clisp.org>
56070
56071         * modules/stdbool: Change configure.ac, Makefile.am requirements.
56072         Simplify Include requirements. Add lib/stdbool.h.in to file list.
56073
56074 2003-01-09  Bruno Haible  <bruno@clisp.org>
56075
56076         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
56077
56078 2003-01-09  Bruno Haible  <bruno@clisp.org>
56079
56080         * lib/stdbool.h.in: New file.
56081
56082 2003-01-09  Bruno Haible  <bruno@clisp.org>
56083
56084         * gnulib-tool (func_all_modules): Ignore files ending in ~.
56085         * MODULES.html.sh: Likewise.
56086
56087 2003-01-08  Jim Meyering  <jim@meyering.net>
56088
56089         * lib/full-write.c: Undefine and define-away `const' after inclusion
56090         of errno.h, not before.  Suggestion from Bruno Haible.
56091
56092 2003-01-08  Bruno Haible  <bruno@clisp.org>
56093
56094         * modules/full-read: Depend on full-write.
56095
56096 2003-01-08  Bruno Haible  <bruno@clisp.org>
56097
56098         * lib/safe-read.c: Include specification header first, to ensure its
56099         selfcontainedness.
56100         * lib/full-write.c: Likewise.
56101
56102 2003-01-07  Jim Meyering  <jim@meyering.net>
56103
56104         * lib/full-write.c: Rework so that it may serve to define full_read,
56105         too.
56106         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
56107
56108 2003-01-07  Bruno Haible  <bruno@clisp.org>
56109
56110         * lib/strtoimax.c: Include <stdint.h> as an alternative to
56111         <inttypes.h>.
56112         * lib/xstrtol.h: Likewise.
56113         * lib/xstrtoimax.c: Likewise.
56114         * lib/xstrtoumax.c: Likewise.
56115         * lib/human.h: Likewise.
56116
56117         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
56118         on systems that have <inttypes.h> but not <stdint.h>.
56119
56120 2003-01-07  Bruno Haible  <bruno@clisp.org>
56121
56122         * MODULES.html.sh: Add copyright notice.
56123         (missed_files): Omit CVS directory entries.
56124         (func_module): Make it work with sed-3.02.
56125         * MODULES.txt: Remove file.
56126
56127 2003-01-06  Jim Meyering  <jim@meyering.net>
56128
56129         * lib/version-etc.c: Update year in translatable copyright string.
56130
56131 2003-01-03  Karl Berry  <karl@gnu.org>
56132
56133         * config/config.{guess,sub}: update from prep.
56134
56135 2003-01-02  Karl Berry  <karl@gnu.org>
56136
56137         * doc/COPYING.DOC: belatedly updated to 1.2.
56138
56139 2003-01-01  Karl Berry  <karl@gnu.org>
56140
56141         * gnulib-tool (func_verify_module): report module name $module in
56142         error message, not $1.
56143         * gnulib-tool (create-testdir): don't complain if destdir couldn't
56144         be created, only if it doesn't exist.
56145         * gnulib-tool (last_checkin_date): don't expand the $Date here.
56146
56147 2002-12-31  Paul Eggert  <eggert@twinsun.com>
56148
56149         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
56150
56151 2002-12-31  Paul Eggert  <eggert@twinsun.com>
56152
56153         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
56154         memcmp if strcoll doesn't work.
56155
56156 2002-12-31  Bruno Haible  <bruno@clisp.org>
56157
56158         * lib/utime.c (utime_null): No need to call ftruncate if the file was
56159         nonempty.
56160
56161 2002-12-31  Bruno Haible  <bruno@clisp.org>
56162
56163         * lib/memcoll.c (STRCOLL): New macro.
56164         (memcoll): Use it.
56165
56166 2002-12-31  Bruno Haible  <bruno@clisp.org>
56167
56168         * lib/localcharset.h: New file.
56169         * lib/localcharset.c: Include it.
56170         * lib/unicodeio.c: Likewise.
56171
56172 2002-12-31  Bruno Haible  <bruno@clisp.org>
56173
56174         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
56175         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
56176
56177 2002-12-31  Bruno Haible  <bruno@clisp.org>
56178
56179         * lib/getline.h: Include <stddef.h>, for size_t.
56180
56181         * lib/unicodeio.h: Include <stddef.h>, for size_t.
56182         * lib/unicodeio.c: Don't include <stddef.h>.
56183
56184 2002-12-31  Bruno Haible  <bruno@clisp.org>
56185
56186         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
56187         HAVE_TM_ZONE.
56188
56189 2002-12-24  Karl Berry  <karl@gnu.org>
56190
56191         * config/config.guess: update from prep.
56192
56193 2002-12-24  Bruno Haible  <bruno@clisp.org>
56194
56195         General infrasructure.
56196         * m4/README: Rewritten.
56197         * m4/onceonly.m4: New file.
56198         * m4/onceonly_2_57.m4: New file.
56199
56200         Module atexit.
56201         * m4/atexit.m4: New file.
56202
56203         Module strtod.
56204         * m4/strtod.m4: New file.
56205
56206         Module strtol.
56207         * m4/strtol.m4: New file.
56208
56209         Module strtoul.
56210         * m4/strtoul.m4: New file.
56211
56212         Module memchr.
56213         * m4/memchr.m4: New file.
56214
56215         Module memcmp.
56216         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
56217         (jm_FUNC_MEMCMP): Invoke it.
56218
56219         Module memcpy.
56220         * m4/memcpy.m4: New file.
56221
56222         Module memmove.
56223         * m4/memmove.m4: New file.
56224
56225         Module memset.
56226         * m4/memset.m4: New file.
56227
56228         Module strcspn.
56229         * m4/strcspn.m4: New file.
56230
56231         Module strpbrk.
56232         * m4/strpbrk.m4: New file.
56233
56234         Module strstr.
56235         * m4/strstr.m4: New file.
56236
56237         Module strerror.
56238         * m4/strerror.m4: New file.
56239
56240         Module mktime.
56241         * m4/mktime.m4: Renamed from jm-mktime.m4.
56242         (gl_PREREQ_MKTIME): New macro.
56243         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
56244
56245         Module malloc.
56246         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
56247         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
56248         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
56249
56250         Module realloc.
56251         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
56252         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
56253         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
56254
56255         Module strftime.
56256         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
56257         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
56258         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
56259         gl_TM_GMTOFF.
56260         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
56261
56262         Module xalloc.
56263         * m4/xalloc.m4: New file.
56264
56265         Module alloca.
56266         * m4/alloca.m4: New file.
56267
56268         Module putenv.
56269         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
56270         (jm_FUNC_PUTENV): Invoke it.
56271
56272         Module setenv.
56273         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
56274         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
56275         when invoked twice.
56276         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
56277         gt_FUNC_SETENV.
56278
56279         Module memrchr.
56280         * m4/memrchr.m4: New file.
56281
56282         Module stpcpy.
56283         * m4/stpcpy.m4: New file.
56284
56285         Module strcase.
56286         * m4/strcase.m4: New file.
56287
56288         Module strdup.
56289         * m4/strdup.m4: New file.
56290
56291         Module strnlen.
56292         * m4/strnlen.m4: New file.
56293
56294         Module strndup.
56295         * m4/strndup.m4: New file.
56296
56297         Module xstrtod.
56298         * m4/xstrtod.m4: New file.
56299
56300         Module xstrtol.
56301         * m4/xstrtol.m4: New file.
56302
56303         Module getdate.
56304         * m4/getdate.m4: New file.
56305
56306         Module unlocked-io.
56307         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
56308         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
56309         * m4/jm-glibc-io.m4n: Remove file.
56310
56311         Module long-options.
56312         * m4/long-options.m4: New file.
56313
56314         Module md5.
56315         * m4/md5.m4: New file.
56316
56317         Module sha.
56318         * m4/sha.m4: New file.
56319
56320         Module getstr.
56321         * m4/getstr.m4: New file.
56322
56323         Module getline.
56324         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
56325         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
56326         <sys/types.h>, for size_t. Use the function name gnu_getline, not
56327         simply getline. Infoke gl_PREREQ_GETLINE.
56328
56329         Module obstack.
56330         * m4/obstack.m4: New file.
56331
56332         Module hash.
56333         * m4/hash.m4: New file.
56334
56335         Module readtokens.
56336         * m4/readtokens.m4: New file.
56337
56338         Module strverscmp.
56339         * m4/strverscmp.m4: New file.
56340
56341         Module stdbool.
56342         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
56343         OSF/1.
56344
56345         Module strtoll.
56346         * m4/strtoll.m4: New file.
56347
56348         Module strtoull.
56349         * m4/strtoull.m4: New file.
56350
56351         Module strtoimax.
56352         * m4/strtoimax.m4: New file.
56353
56354         Module strtoumax.
56355         * m4/strtoumax.m4: New file.
56356
56357         Module xstrtoimax.
56358         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
56359         jm_AC_PREREQ_XSTRTOIMAX.
56360         Moved the strtol prerequisites to strtol.m4.
56361         Moved the strtoll prerequisites to strtoll.m4.
56362         Moved the strtoimax prerequisites to strtoimax.m4.
56363
56364         Module xstrtoumax.
56365         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
56366         jm_AC_PREREQ_XSTRTOUMAX.
56367         Moved the strtoul prerequisites to strtoul.m4.
56368         Moved the strtoull prerequisites to strtoull.m4.
56369         Moved the strtoumax prerequisites to strtoumax.m4.
56370
56371         Module chown.
56372         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
56373         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
56374
56375         Module dup2.
56376         * m4/dup2.m4: New file.
56377
56378         Module ftruncate.
56379         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
56380         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
56381
56382         Module getgroups.
56383         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
56384         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
56385
56386         Module gettimeofday.
56387         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
56388         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
56389         gl_PREREQ_GETTIMEOFDAY.
56390
56391         Module mkdir.
56392         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
56393         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
56394
56395         Module mkstemp.
56396         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
56397         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
56398         jm_AC_TYPE_UINTMAX_T.
56399         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
56400
56401         Module stat.
56402         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
56403         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
56404
56405         Module lstat.
56406         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
56407         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
56408
56409         Module timespec.
56410         * m4/timespec.m4 (gl_TIMESPEC): New macro.
56411         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
56412         * m4/st_mtim.m4: Indentation.
56413
56414         Module nanosleep.
56415         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
56416         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
56417         gl_PREREQ_NANOSLEEP.
56418
56419         Module regex.
56420         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
56421         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
56422         (gl_REGEX): New macro.
56423
56424         Module rename.
56425         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
56426         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
56427
56428         Module rmdir.
56429         * m4/rmdir.m4: New file.
56430
56431         Module utime.
56432         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
56433         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
56434         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
56435
56436         Module dirname.
56437         * m4/dirname.m4: New file.
56438
56439         Module getopt.
56440         * m4/getopt.m4: New file.
56441
56442         Module unistd-safer.
56443         * m4/unistd-safer.m4: New file.
56444
56445         Module fnmatch.
56446         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
56447         declaration.
56448         (gl_PREREQ_FNMATCH_EXTRA): New macro.
56449         (gl_FUNC_FNMATCH_POSIX): New macro.
56450         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
56451         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
56452         simply fnmatch.
56453
56454         Module exclude.
56455         * m4/exclude.m4: New file.
56456
56457         Module human.
56458         * m4/human.m4: New file.
56459
56460         Module acl.
56461         * m4/acl.m4: Nop.
56462
56463         Module backupfile.
56464         * m4/backupfile.m4: New file.
56465         * m4/d-ino.m4: Indentation.
56466
56467         Module fsusage.
56468         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
56469         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
56470         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
56471
56472         Module dirfd.
56473         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
56474         requirements.
56475
56476         Module euidaccess.
56477         * m4/euidaccess.m4: New file.
56478
56479         Module file-type.
56480         * m4/file-type.m4: New file.
56481
56482         Module fileblocks.
56483         * m4/fileblocks.m4: New file.
56484
56485         Module filemode.
56486         * m4/filemode.m4: New file.
56487
56488         Module isdir.
56489         * m4/isdir.m4: New file.
56490
56491         Module lchown.
56492         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
56493         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
56494
56495         Module makepath.
56496         * m4/makepath.m4: New file.
56497
56498         Module modechange.
56499         * m4/modechange.m4: New file.
56500
56501         Module mountlist.
56502         * m4/mountlist.m4: New file.
56503         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
56504         Indentation.
56505
56506         Module path-concat.
56507         * m4/path-concat.m4: New file.
56508
56509         Module pathmax.
56510         * m4/pathmax.m4: New file.
56511
56512         Module same.
56513         * m4/same.m4: New file.
56514
56515         Module save-cwd.
56516         * m4/save-cwd.m4: New file.
56517
56518         Module savedir.
56519         * m4/savedir.m4: New file.
56520
56521         Module xgetcwd.
56522         * m4/xgetcwd.m4: New file.
56523         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
56524
56525         Module xreadlink.
56526         * m4/xreadlink.m4: New file.
56527
56528         Module safe-read.
56529         * m4/safe-read.m4: New file.
56530
56531         Module safe-write.
56532         * m4/safe-write.m4: New file.
56533
56534         Module closeout.
56535         * m4/closeout.m4: New file.
56536
56537         Module stdio-safer.
56538         * m4/stdio-safer.m4: New file.
56539
56540         Module getpass.
56541         * m4/getpass.m4: New file.
56542
56543         Module getugroups.
56544         * m4/getugroups.m4: New file.
56545
56546         Module group-member.
56547         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
56548         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
56549
56550         Module idcache.
56551         * m4/idcache.m4: New file.
56552
56553         Module userspec.
56554         * m4/userspec.m4: New file.
56555
56556         Module gettime.
56557         * m4/clock_time.m4: New file.
56558         * m4/gettime.m4: New file.
56559
56560         Module settime.
56561         * m4/settime.m4: New file.
56562
56563         Module posixtm.
56564         * m4/posixtm.m4: New file.
56565
56566         Module gethostname.
56567         * m4/gethostname.m4: New file.
56568
56569         Module canon-host.
56570         * m4/canon-host.m4: New file.
56571
56572         Module gettext.
56573         * m4/codeset.m4: New file, from gettext-0.11.5.
56574         * m4/gettext.m4: New file, from gettext-0.11.5.
56575         * m4/glibc21.m4: New file, from gettext-0.11.5.
56576         * m4/iconv.m4: New file, from gettext-0.11.5.
56577         * m4/intdiv0.m4: New file, from gettext-0.11.5.
56578         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
56579         * m4/inttypes.m4: New file, from gettext-0.11.5.
56580         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
56581         * m4/isc-posix.m4: New file, from gettext-0.11.5.
56582         * m4/lcmessage.m4: New file, from gettext-0.11.5.
56583         * m4/lib-ld.m4: New file, from gettext-0.11.5.
56584         * m4/lib-link.m4: New file, from gettext-0.11.5.
56585         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
56586         * m4/progtest.m4: New file, from gettext-0.11.5.
56587         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
56588         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
56589         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
56590
56591         Module localcharset.
56592         * m4/localcharset.m4: New file.
56593
56594         Module hard-locale.
56595         * m4/hard-locale.m4: New file.
56596
56597         Module mbswidth.
56598         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
56599         onceonly macros.
56600         * m4/mbrtowc.m4: Add comment.
56601
56602         Module memcasecmp.
56603         * m4/memcasecmp.m4: New file.
56604
56605         Module memcoll.
56606         * m4/memcoll.m4: New file.
56607
56608         Module unicodeio.
56609         * m4/unicodeio.m4: New file.
56610
56611         Module rpmatch.
56612         * m4/rpmatch.m4: New file.
56613
56614         Module yesno.
56615         * m4/yesno.m4: New file.
56616
56617         Module exitfail.
56618         * m4/exitfail.m4: New file.
56619
56620         Module c-stack.
56621         * m4/c-stack.m4 (gl_C_STACK): New macro.
56622         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
56623
56624         Module error.
56625         * m4/error.m4 (gl_ERROR): New macro.
56626         (jm_PREREQ_ERROR): Use onceonly macros.
56627
56628         Module fatal.
56629         * m4/fatal.m4: New file.
56630
56631         Module getloadavg.
56632         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
56633         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
56634
56635         Module getpagesize.
56636         * m4/getpagesize.m4: New file.
56637
56638         Module getusershell.
56639         * m4/getusershell.m4: New file.
56640
56641         Module physmem.
56642         * m4/physmem.m4: New file.
56643
56644         Module posixver.
56645         * m4/posixver.m4: New file.
56646
56647         Module quotearg.
56648         * m4/quotearg.m4: New file.
56649
56650         Module quote.
56651         * m4/quote.m4: New file.
56652
56653         Module readutmp.
56654         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
56655
56656         Module sig2str.
56657         * m4/sig2str.m4: New file.
56658
56659         Other.
56660         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
56661         ulonglong.m4.
56662         * m4/intmax_t.m4: New file.
56663         * m4/d-type.m4: Indentation.
56664         * m4/jm-macros.m4: Update.
56665         * m4/prereq.m4 (jm_PREREQ): Update.
56666         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
56667         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
56668         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
56669         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
56670         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
56671         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
56672         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
56673         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
56674         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
56675         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
56676         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
56677         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
56678         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
56679         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
56680         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
56681         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
56682         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
56683         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
56684         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
56685
56686 2002-12-24  Bruno Haible  <bruno@clisp.org>
56687
56688         * MODULES.txt: Update according to m4/ changes.
56689
56690         Module gettext.
56691         * config.rpath: New file, from gettext-0.11.5.
56692
56693         * modules/*: New module descriptions.
56694         * gnulib-tool: New file.
56695         * MODULES.html.sh: New file.
56696
56697 2002-12-21  Karl Berry  <karl@gnu.org>
56698
56699         * doc/fdl.texi: update to version 1.2.
56700
56701 2002-12-19  Karl Berry  <karl@gnu.org>
56702
56703         * config/config.guess: update from prep.
56704
56705 2002-12-18  Bruno Haible  <bruno@clisp.org>
56706
56707         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
56708         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
56709
56710 2002-12-17  Bruno Haible  <bruno@clisp.org>
56711
56712         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
56713         stdlib.h, string.h.
56714
56715 2002-12-17  Bruno Haible  <bruno@clisp.org>
56716
56717         * lib/canon-host.c (strdup): Remove unused declaration.
56718
56719         * lib/fsusage.c: Include full_read.h.
56720         (get_fs_usage): Use full_read instead of safe_read.
56721
56722         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
56723
56724 2002-12-12  Karl Berry  <karl@gnu.org>
56725
56726         * config/config.guess: update from prep.
56727
56728 2002-12-11  Bruno Haible  <bruno@clisp.org>
56729
56730         * m4/setenv.m4: New file, from gettext-0.11.5.
56731
56732 2002-12-11  Bruno Haible  <bruno@clisp.org>
56733
56734         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
56735         not unsetenv().
56736         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
56737         modifications:
56738
56739         2002-12-11  Bruno Haible  <bruno@clisp.org>
56740
56741                 * setenv.c (alloca): Fall back to malloc.
56742                 (freea): New macro.
56743                 (setenv): Use freea() to free memory allocated with alloca().
56744
56745         2002-11-13  Bruno Haible  <bruno@clisp.org>
56746
56747                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
56748                 function declarations.
56749                 * unsetenv.c (unsetenv): Likewise.
56750
56751         2002-03-04  Bruno Haible  <bruno@clisp.org>
56752
56753                 Portability to AIX 4.3.3.
56754                 * unsetenv.c: New file, extracted from setenv.c.
56755                 * setenv.c: Move the unsetenv() function to unsetenv.c.
56756
56757         2001-12-20  Bruno Haible  <bruno@clisp.org>
56758
56759                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
56760                 use malloc instead. For SunOS 4.
56761
56762         2001-12-11  Bruno Haible  <bruno@clisp.org>
56763
56764                 * setenv.c: Declare alloca.
56765                 (compar_fn_t): New typedef.
56766                 (KNOWN_VALUE, STORE_VALUE): Use it.
56767
56768         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
56769         setenv.h.
56770
56771 2002-12-10  Paul Eggert  <eggert@twinsun.com>
56772
56773         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
56774         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
56775         Choose values that are less likely to collide with system fnmatch
56776         options.
56777         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
56778         defined (e.g., a pure POSIX system).
56779         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
56780         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
56781
56782 2002-12-06  Paul Eggert  <eggert@twinsun.com>
56783
56784         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
56785         a pain in practice to deal with generated m4 files.  This change
56786         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
56787
56788         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
56789         and jm-glibc-io.m4, as they are no longer a special case.
56790         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
56791         kludge and the auto-generation stuff.  Check only whether the
56792         functions are declared, not whether they exist, since older hosts
56793         that don't declare the functions can't use the optimization anyway.
56794
56795 2002-12-06  Jim Meyering  <jim@meyering.net>
56796
56797         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
56798
56799         Merge in changes from libc's misc/error.c, in preparation
56800         for the merge of gnulib's changes back into libc.
56801
56802         * lib/error.c (_): Define only if not already defined.
56803         Move definition to follow all #include directives.
56804         Include unlocked-io.h only if !_LIBC.
56805         [_LIBC]: Include <libio/libioP.h>.
56806         [USE_IN_LIBIO]: Include <libio/iolibio.h>
56807         (fflush): Tweak definition to use INTUSE.
56808         (putc): Define.
56809
56810 2002-12-05  Paul Eggert  <eggert@twinsun.com>
56811
56812         * lib/alloca.c [defined emacs]: Include "lisp.h".
56813         (xalloc_die) [defined emacs]: New macro.
56814         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
56815         [! defined emacs]: Include <xalloc.h>.
56816         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
56817         (pointer): Typedef to POINTER_TYPE *.
56818         (malloc): Remove decl; we now always use xmalloc.
56819         (alloca): Use old-style definition, since Emacs needs this.
56820         Check for arithmetic overflow when computing combined size.
56821
56822 2002-12-04  Paul Eggert  <eggert@twinsun.com>
56823
56824         Do not generate unlocked-io.h automatically, since it's easier to
56825         maintain it by hand.
56826
56827         * lib/unlocked-io.h: New file, from GNU diffutils,
56828         but with proper copyright notice and attribution.
56829         * lib/gen-uio: Remove.
56830         * lib/Makefile.am: Add copyright notice.
56831         (libfetish_a_SOURCES): Add unlocked-io.h.
56832         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
56833         (DISTCLEANFILES, io_functions): Remove macros.
56834         (EXTRA_DIST): Remove gen_uio.
56835         (unlocked-io.h): Remove rule.
56836
56837 2002-12-04  Jim Meyering  <jim@meyering.net>
56838
56839         Reflect the fact that stat.c and lstat.c are no longer generated.
56840         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
56841         (DISTCLEANFILES): Likewise.
56842         (EXTRA_DIST): Likewise.
56843         (all_local): Don't depend on stat.c or lstat.c.
56844         (stat.c, lstat.c): Remove rules.
56845         (EXTRA_DIST): Remove xstat.in.
56846
56847         * lib/xstat.in: Remove file.  Contents moved into stat.c.
56848         * lib/stat.c: New file.  Contents mostly from xstat.in.
56849         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
56850         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
56851
56852         * lib/safe-read.c: Rework so that it may serve to define safe_write,
56853         too.
56854         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
56855
56856 2002-12-03  Jim Meyering  <jim@meyering.net>
56857
56858         * lib/safe-read.c, safe-write.c: Change variable names and comments,
56859         but not semantics, to minimize the differences between these two files.
56860         (safe_read): Change comment to mention SAFE_READ_ERROR.
56861
56862         * lib/safe-read.c (IS_EINTR): Define.
56863         (safe_read): Use IS_EINTR in place of in-function cpp directives.
56864
56865 2002-12-02  Jim Meyering  <jim@meyering.net>
56866
56867         * lib/safe-read.c (EINTR): Define.
56868         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
56869         (INT_MAX): Provide fallback.
56870         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
56871
56872         * lib/safe-read.h (SAFE_READ_ERROR): Define.
56873
56874 2002-12-02  Bruno Haible  <bruno@clisp.org>
56875
56876         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
56877         Define, taken from safe-read.c.
56878         (INT_MAX): Provide fallback.
56879         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
56880         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
56881
56882         * lib/safe-read.c (EINTR): Remove definition.
56883         (safe_read): Don't use EINTR if it is absent.
56884
56885 2002-12-01  Jim Meyering  <jim@meyering.net>
56886
56887         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
56888         zero.
56889         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
56890
56891 2002-11-27  Paul Eggert  <eggert@twinsun.com>
56892
56893         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
56894         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
56895         with `if (! (value < limit)) abort ();', for readability.
56896
56897 2002-11-26  Karl Berry  <karl@gnu.org>
56898
56899         * lib/strdup.c: copy from libc again, with jim's ok.
56900         * lib/.cppi-disable: re-add strdup.c
56901
56902 2002-11-25  Karl Berry  <karl@gnu.org>
56903
56904         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
56905         instead of "strtol.c".
56906
56907 2002-11-25  Karl Berry  <karl@gnu.org>
56908
56909         * config/install-sh: update from automake for variable quoting, $0 in
56910         error msgs, etc.
56911
56912         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
56913         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
56914         entry.
56915
56916 2002-11-25  Jim Meyering  <jim@meyering.net>
56917
56918         * lib/mktime.c: Sync from libc, now that it has the latest fix.
56919
56920 2002-11-24  Karl Berry  <karl@gnu.org>
56921
56922         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
56923         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
56924
56925 2002-11-24  Jim Meyering  <jim@meyering.net>
56926
56927         Update from coreutils:
56928
56929         * lib/mktime.c: Merge in changes from libc.
56930
56931         Avoid a link-time failure on some Linux systems.
56932         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
56933         (otherwise).
56934         (__mon_yday): Declare with the STATIC attribute.
56935         (__mktime_internal): Likewise.
56936         Based on a report from Greg Schafer.
56937
56938 2002-11-23  Jim Meyering  <jim@meyering.net>
56939
56940         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
56941         Use `unsigned', not `int', as type of index.
56942
56943         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
56944
56945         * lib/fsusage.c: Remove unneeded parentheses around operands of
56946         `defined'.
56947
56948 2002-11-22  Paul Eggert  <eggert@twinsun.com>
56949
56950         * lib/quotearg.h: Allow multiple inclusion by surrounding with
56951         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
56952         so that we can be included first.
56953         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
56954         * lib/quotearg.c: Include quotearg.h immediately after config.h.
56955         No need to include stddef.h or sys/types.h any more.
56956         Surround local include files with "", not "<>".
56957         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
56958         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
56959         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
56960         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
56961         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
56962         (ISPRINT): Remove; no longer needed now that we assume C89.
56963
56964         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
56965         Preserve errno.
56966
56967         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
56968         quotearg_char): Use SIZE_MAX rather than
56969         (size_t) -1 when we are talking about "infinity".
56970
56971         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
56972
56973 2002-11-22  Paul Eggert  <eggert@twinsun.com>
56974
56975         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
56976         hint that one should use `if (! x) abort ();' rather than `assert
56977         (x);', and anyway it's one less thing to worry about configuring.
56978         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
56979         hash_rehash, hash_insert): Use abort rather than assert.
56980
56981 2002-11-22  Bruno Haible  <bruno@clisp.org>
56982
56983         * lib/safe-read.h: Assume C89. Add comments.
56984         (safe_read): Change return type to size_t.
56985         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
56986         byte counts > SSIZE_MAX correctly.
56987         * lib/safe-write.h: New file.
56988         * lib/safe-write.c: New file.
56989         * lib/full-read.h: New file.
56990         * lib/full-read.c: New file.
56991         * lib/full-write.h: Assume C89. Add comments.
56992         * lib/full-write.c: Include safe-write.h.
56993         (full_write): Rewritten to use safe_write.
56994         Suggested by Jim Meyering and Paul Eggert.
56995
56996 2002-11-21  Jim Meyering  <jim@meyering.net>
56997
56998         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
56999
57000         Merge in changes from the coreutils.
57001
57002         2002-09-25  Paul Eggert  <eggert@twinsun.com>
57003         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
57004         <stdint.h>.
57005         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
57006         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
57007         int.  Work more efficiently if X is the same width as uintmax_t.
57008         Do not compare X to -1, to avoid bogus compiler warning.
57009         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
57010         Don't assume that f_frsize and f_bsize are the same type.
57011
57012         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
57013         warning on FreeBSD.
57014
57015         * lib/makepath.c (make_path): Restore umask *before* creating the final
57016         component.
57017         (make_path): Minor reformatting.
57018
57019         * lib/xmalloc.c: Adjust to work with new autoconf macros,
57020         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
57021         HAVE_MALLOC/HAVE_REALLOC.
57022
57023         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
57024         dummy ones.  At least on GNU/Linux systems, `auto' means something
57025         else.
57026         From Michael Stone.
57027
57028 2002-11-21  Bruno Haible  <bruno@clisp.org>
57029
57030         Remove case insensitive option matching.
57031         * lib/argmatch.h (argcasematch): Remove declaration.
57032         (ARGCASEMATCH): Remove macro.
57033         (__xargmatch_internal): Remove case_sensitive argument.
57034         (XARGMATCH): Update.
57035         (XARGCASEMATCH): Remove macro.
57036         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
57037         case_sensitive argument.
57038         (argcasematch): Remove function.
57039         (__xargmatch_internal): Remove case_sensitive argument.
57040         (main): Use XARGMATCH instead of XARGCASEMATCH.
57041
57042         * lib/xmalloc.c: Change compile-time error message. Add comment about
57043         required autoconf version.
57044
57045 2002-11-20  Paul Eggert  <eggert@twinsun.com>
57046
57047         Merge argmatch cleanups from Bison.  Assume C89.
57048
57049         * lib/argmatch.c: Include config.h here, not in argmatch.h.
57050         Include stdlib.h, for EXIT_FAILURE.
57051         Always include <string.h>, since we assume C89.
57052         (EXIT_FAILURE): Remove pre-C89 bug workaround.
57053         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
57054         Include <stddef.h> instead, since it's all we need for size_t.
57055         (PARAMS): Remove.  All uses removed.
57056         (ARRAY_CARDINALITY): Do not bother to #undef.
57057         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
57058         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
57059         Remove unnecessary parentheses.
57060         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
57061         Insert necessary parentheses.
57062         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
57063         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
57064
57065 2002-11-19  Bruno Haible  <bruno@clisp.org>
57066
57067         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
57068         * lib/mbswidth.h: Include <stddef.h>, for size_t.
57069
57070         * lib/mbswidth.h (PARAMS): Remove macro.
57071         (mbswidth, mbsnwidth): Use ANSI C function declarations.
57072         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
57073
57074         * lib/gcd.h (PARAMS): Remove macro.
57075         (gcd): Use ANSI C function declarations.
57076         * lib/gcd.c (gcd): Likewise.
57077
57078 2002-11-15  Bruno Haible  <bruno@clisp.org>
57079
57080         * lib/strcspn.c: Include <stddef.h>.
57081         (strcspn): Use ANSI C function declaration. Change return type to
57082         size_t. Use NULL.
57083         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
57084         (strpbrk): Use NULL.
57085         * lib/strpbrk.h (PARAMS): Remove macro.
57086         (strpbrk): Use ANSI C function declaration.
57087         * lib/strstr.c: Don't include <sys/types.h>.
57088         * lib/strstr.h (PARAMS): Remove macro.
57089         (strstr): Use ANSI C function declarations.
57090
57091 2002-11-14  Karl Berry  <karl@gnu.org>
57092
57093         * config/mkinstalldirs: `do' on separate line, instead of
57094         `for var; do'.
57095
57096 2002-11-06  Bruno Haible  <bruno@clisp.org>
57097
57098         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
57099         * lib/gcd.c (gcd): Likewise.
57100
57101 2002-11-05  Bruno Haible  <bruno@clisp.org>
57102
57103         * lib/gcd.h: New file, from gettext-0.11.5.
57104         * lib/gcd.c: New file, from gettext-0.11.5.
57105
57106 2002-11-05  Bruno Haible  <bruno@clisp.org>
57107
57108         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57109         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57110         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57111         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57112
57113         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
57114         <libintl.h>.
57115         * lib/makepath.c: Include gettext.h instead of <locale.h> and
57116         <libintl.h>.
57117
57118         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
57119         * lib/human.c: Include gettext.h instead of <libintl.h>.
57120         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
57121         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
57122         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
57123         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
57124         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
57125         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
57126         (textdomain): Remove definition.
57127         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
57128
57129         * lib/long-options.c: Remove include of <libintl.h> and definition of
57130         _.
57131         * lib/same.c: Remove include of <libintl.h> and definition of _.
57132
57133 2002-11-04  Owen Taylor  <otaylor@redhat.com>
57134
57135         * lib/config.charset: A few additions for Solaris.
57136
57137 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
57138
57139         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
57140         * lib/localcharset.c (locale_charset): Declare as extern "C".
57141
57142 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
57143
57144         * lib/config.charset: msdos in uk_UA uses CP1125.
57145
57146 2002-11-04  Bruno Haible  <bruno@clisp.org>
57147
57148         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
57149         * lib/strcase.h: New file, from GNU gettext-0.11.5.
57150         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
57151         * lib/strstr.h: New file, from GNU gettext-0.11.5.
57152         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
57153
57154 2002-11-04  Bruno Haible  <bruno@clisp.org>
57155
57156         * lib/localcharset.c (locale_charset): Don't return an empty string.
57157
57158 2002-11-04  Bruno Haible  <bruno@clisp.org>
57159
57160         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
57161         aliases.
57162
57163 2002-11-04  Bruno Haible  <bruno@clisp.org>
57164
57165         * lib/config.charset: Update for newest glibc. Add canonical names
57166         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
57167
57168 2002-11-04  Bruno Haible  <bruno@clisp.org>
57169
57170         * lib/config.charset: Add support for NetBSD.
57171
57172 2002-11-04  Bruno Haible  <bruno@clisp.org>
57173
57174         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
57175
57176 2002-11-01  Bruno Haible  <bruno@clisp.org>
57177
57178         * configure.in: Add AC_CONFIG_AUX_DIR call.
57179         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
57180         test/Makefile.
57181         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
57182
57183 2002-09-28  Karl Berry  <karl@gnu.org>
57184
57185         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
57186         installed automake until the next release, since changes have been
57187         made.
57188
57189 2002-09-25  Karl Berry  <karl@gnu.org>
57190
57191         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
57192         * lib/getopt*: copy from libc/posix.
57193         * lib/gettext.h: copy from gettext.
57194         * lib/.cppi-disable: add strdup.c, gettext.h.
57195
57196 2002-09-25  Karl Berry  <karl@gnu.org>
57197
57198         * config/srclist.txt: enable gettext.h check.
57199         * config/config.{guess,sub}: update from prep.
57200         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
57201                 from automake 1.6.3.
57202         See srclist*.
57203
57204 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
57205
57206         * regex.c (PATFETCH): Remove the translating fetch.
57207         (PATFETCH_RAW): Rename to PATFETCH.
57208         (set_image_of_range): New fun.
57209         (SET_RANGE_TABLE_WORK_AREA): Use it.
57210         (regex_compile): Don't translate the pattern chars so eagerly.
57211         Only do it when inserting an `exactn' bytecode or when handling
57212         a char-range.
57213         (mutually_exclusive_p): Avoid empty statement.
57214
57215 2002-07-06  Jim Meyering  <meyering@lucent.com>
57216
57217         * m4/README: Don't mention Makefile.am.in.
57218         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
57219
57220 2002-07-01  Jim Meyering  <meyering@lucent.com>
57221
57222         * lib/c-stack.c: Include sys/time.h.
57223         From Volker Borchert.
57224
57225 2002-06-26  Paul Eggert  <eggert@twinsun.com>
57226
57227         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
57228
57229 2002-06-26  Paul Eggert  <eggert@twinsun.com>
57230
57231         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
57232         New macro.  Use it uniformly instead of
57233         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
57234         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
57235         reported by Vin Shelton.
57236
57237 2002-06-22  Paul Eggert  <eggert@twinsun.com>
57238
57239         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
57240         Do not assume SA_SIGINFO behavior.
57241         Bug reported by Jim Meyering on NetBSD 1.5.2.
57242
57243 2002-06-22  Jim Meyering  <meyering@lucent.com>
57244
57245         * m4/c-stack.m4: New file, from diffutils-2.8.2.
57246         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
57247
57248         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
57249         now that configure.ac uses AC_GNU_SOURCE.
57250         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
57251         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
57252
57253         Update to latest tools.  Suggestions from Paul Eggert.
57254         * m4/stdbool.m4: New file, from diffutils-2.8.2.
57255         * m4/gnu-source.m4: Update from diffutils-2.8.2.
57256         * m4/fnmatch.m4: Likewise.
57257         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
57258         to AC_HEADER_STDBOOL
57259
57260 2002-06-22  Jim Meyering  <meyering@lucent.com>
57261
57262         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
57263         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
57264
57265 2002-06-22  Jim Meyering  <meyering@lucent.com>
57266
57267         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
57268
57269         * lib/exitfail.c, exitfail.h: Likewise.
57270         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
57271
57272         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
57273         of fnmatch.h.
57274         (EXTRA_DIST): Add fnmatch_loop.c.
57275         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
57276
57277         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
57278         * lib/fnmatch.c: Update from diffutils-2.8.2.
57279         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
57280         * lib/fnmatch.h: Remove file.
57281
57282 2002-06-21  Jim Meyering  <meyering@lucent.com>
57283
57284         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
57285         * m4/mbrtowc.m4: Likewise.
57286
57287         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
57288         * m4/mbswidth.m4: Reflect name change:
57289         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
57290         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
57291
57292         * m4/lib-link.m4: Update from gettext-0.11.2.
57293         * m4/gettext.m4: Likewise.
57294
57295         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
57296         From Alfred M. Szmidt.
57297
57298 2002-06-18  Paul Eggert  <eggert@twinsun.com>
57299
57300         * lib/file-type.h: Report an error if neither S_ISREG nor
57301         S_IFREG is defined, instead of using a test specific to glibc
57302         2.2.  This should be safe, since POSIX requires S_ISREG and
57303         Unix Version 7 had S_IFREG.  We don't need to check for
57304         <sys/types.h> since we don't use any symbols that it defines.
57305
57306 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
57307
57308         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
57309         $@-t, so that each temporary file name is unique and valid in the first
57310         8 characters, for operation under DOS.
57311
57312 2002-06-15  Paul Eggert  <eggert@twinsun.com>
57313
57314         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
57315
57316 2002-06-15  Jim Meyering  <meyering@lucent.com>
57317
57318         Work even with DJGPP 2.03, which lacks support for symlinks.
57319         From Richard Dawe.
57320         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
57321         is defined.
57322         * lib/lchown.c (S_ISLNK): Likewise.
57323
57324 2002-06-15  Jim Meyering  <meyering@lucent.com>
57325
57326         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
57327         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
57328         have been included before this file.
57329
57330 2002-06-14  Jim Meyering  <meyering@lucent.com>
57331
57332         * lib/file-type.h: Use the version from diffutils-2.8.2.
57333         * lib/file-type.c: Likewise.
57334
57335 2002-06-07  Jim Meyering  <meyering@lucent.com>
57336
57337         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
57338         They're needed at least for NetBSD 1.5.2.
57339         ($statxfs_includes): Include those same headers.
57340         ($statxfs_includes): Include sys/vfs.h if available.
57341         ($statxfs_includes): Likewise for sys/statvfs.h.
57342         Check for the following members in both structs statfs and statvfs:
57343         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
57344
57345 2002-06-01  Jim Meyering  <meyering@lucent.com>
57346
57347         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
57348         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
57349
57350 2002-05-28  Jim Meyering  <meyering@lucent.com>
57351
57352         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
57353         Reported by Volker Borchert.
57354
57355 2002-05-27  Jim Meyering  <meyering@lucent.com>
57356
57357         Fix a problem seen only on nonconforming systems whereby ls.c's
57358         use of localtime, and then of gettimeofday would cause trouble:
57359         the localtime call used to initialize rpl_gettimeofday's save
57360         mechanism would clobber ls's current local time information so
57361         that in any long listing the first file would always be listed
57362         with date 1970-01-01.  Analysis by Volker Borchert.
57363
57364         * lib/gettimeofday.c (localtime): Undefine.
57365         (rpl_localtime): New function.
57366
57367 2002-05-27  Jim Meyering  <meyering@lucent.com>
57368
57369         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
57370         localtime.
57371
57372         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
57373         use the replacement function; it wouldn't resolve at link time.
57374         Reported by Volker Borchert.
57375
57376 2002-05-22  Jim Meyering  <meyering@lucent.com>
57377
57378         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
57379         file-type.h.
57380         * lib/file-type.h: New file.
57381         * lib/file-type.c (file_type): New file/function.  Extracted from
57382         diffutils.
57383
57384 2002-04-30  Jim Meyering  <meyering@lucent.com>
57385
57386         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
57387
57388 2002-04-29  Paul Eggert  <eggert@twinsun.com>
57389
57390         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
57391
57392 2002-04-29  Paul Eggert  <eggert@twinsun.com>
57393
57394         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
57395         Do not check for alloca.h (no longer used) or stdbool.h (was never
57396         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
57397
57398 2002-04-29  Paul Eggert  <eggert@twinsun.com>
57399
57400         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
57401
57402 2002-04-29  Jim Meyering  <meyering@lucent.com>
57403
57404         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
57405         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
57406         Use AC_FUNC_STRNLEN here instead.
57407
57408         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
57409         With autoconf-2.53a, it's part of AC_PROG_CC.
57410
57411 2002-04-28  Paul Eggert  <eggert@twinsun.com>
57412
57413         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
57414         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
57415
57416 2002-04-28  Paul Eggert  <eggert@twinsun.com>
57417
57418         * lib/sig2str.h, lib/sig2str.c: New files.
57419         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
57420
57421 2002-04-28  Paul Eggert  <eggert@twinsun.com>
57422
57423         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
57424         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
57425         of 127, since 64 is the largest conceivable number for ancient
57426         nonstandard hosts.
57427         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
57428
57429 2002-04-28  Jim Meyering  <meyering@lucent.com>
57430
57431         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
57432
57433 2002-04-24  Jim Meyering  <meyering@lucent.com>
57434
57435         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
57436         (jm_PREREQ): Use it.
57437
57438         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
57439         mach/mach.h fcntl.h.
57440         Check for this function: setlocale.
57441
57442 2002-04-24  Jim Meyering  <meyering@lucent.com>
57443
57444         * lib/gettext.h: New file, from Gettext.
57445         * lib/Makefile.am (INCLUDES): Remove -I../intl.
57446         (libfetish_a_SOURCES): Add gettext.h.
57447
57448 2002-04-16  Jim Meyering  <meyering@lucent.com>
57449
57450         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
57451         ut_pid, ut_id, ut_exit.
57452
57453 2002-04-16  Jim Meyering  <meyering@lucent.com>
57454
57455         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
57456         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
57457         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
57458
57459 2002-04-12  Jim Meyering  <meyering@lucent.com>
57460
57461         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
57462         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
57463         existence of the getmntinfo function.  Needed for Darwin 5.3.
57464
57465         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
57466         This is necessary at least on Darwin 5.3.
57467
57468         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
57469         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
57470         strnlen.o in the library, and that makes some versions of ranlib
57471         object.
57472
57473 2002-04-12  Jim Meyering  <meyering@lucent.com>
57474
57475         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
57476
57477 2002-04-09  Jim Meyering  <meyering@lucent.com>
57478
57479         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
57480         to be more precise.  Rather than saying we're checking whether the
57481         function `works', say what we're testing.
57482         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
57483         Reported by Bruno Haible.
57484
57485 2002-03-10  Jim Meyering  <meyering@lucent.com>
57486
57487         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
57488         Suggestion from Santiago Vila.
57489
57490 2002-03-08  Jim Meyering  <meyering@lucent.com>
57491
57492         * lib/rename.c: Mention that this wrapper is needed also on
57493         mips-dec-ultrix4.4 systems.
57494
57495 2002-03-02  Jim Meyering  <meyering@lucent.com>
57496
57497         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
57498         not HAVE_CLOCK_SETTIME.
57499
57500 2002-02-27  Paul Eggert  <eggert@twinsun.com>
57501
57502         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
57503         Check for clock_settime.
57504
57505 2002-02-27  Paul Eggert  <eggert@twinsun.com>
57506
57507         * lib/nanosleep.h: Rename to....
57508         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
57509
57510         * lib/gettime.c: New file.
57511         * lib/settime.c: New file.
57512         * lib/stime.c: Remove.
57513
57514         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
57515         timespec.h.  Remove nanosleep.h.
57516
57517 2002-02-25  Paul Eggert  <eggert@twinsun.com>
57518
57519         * m4/acl.m4: New file.
57520         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
57521         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
57522
57523 2002-02-25  Paul Eggert  <eggert@twinsun.com>
57524
57525         * lib/acl.c, lib/acl.h: New files.
57526         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
57527
57528 2002-02-24  Jim Meyering  <meyering@lucent.com>
57529
57530         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
57531         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
57532         cause trouble.  Reported by Nelson Beebe.
57533
57534 2002-02-23  Paul Eggert  <eggert@twinsun.com>
57535
57536         * lib/path-concat.c (xpath_concat): Reorder code to pacify
57537         compilers that don't know that xalloc_die never returns.
57538
57539 2002-02-20  Jim Meyering  <meyering@lucent.com>
57540
57541         * lib/getdate.c: Regenerate using bison-1.33.
57542
57543 2002-02-17  Jim Meyering  <meyering@lucent.com>
57544
57545         * config/config.guess (main): Don't use `head -1'; it's no longer
57546         portable. Use `sed 1q' instead.
57547
57548 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
57549
57550         * m4/codeset.m4: Upgrade to gettext-0.11.
57551         * m4/gettext.m4: Upgrade to gettext-0.11.
57552         * m4/glibc21.m4: Upgrade to gettext-0.11.
57553         * m4/iconv.m4: Upgrade to gettext-0.11.
57554         * m4/isc-posix.m4: Upgrade to gettext-0.11.
57555         * m4/lcmessage.m4: Upgrade to gettext-0.11.
57556         * m4/lib-ld.m4: New file, from gettext-0.11.
57557         * m4/lib-link.m4: New file, from gettext-0.11.
57558         * m4/lib-prefix.m4: New file, from gettext-0.11.
57559         * m4/progtest.m4: Upgrade to gettext-0.11.
57560
57561 2002-02-15  Paul Eggert  <eggert@twinsun.com>
57562
57563         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
57564         (jm_PREREQ): Use it.
57565
57566 2002-02-15  Paul Eggert  <eggert@twinsun.com>
57567
57568         * lib/posixver.c, lib/posixver.h: New files.
57569         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
57570
57571 2002-02-02  Paul Eggert  <eggert@twinsun.com>
57572             Bruno Haible  <bruno@clisp.org>
57573
57574         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
57575         (fwrite_success_callback): New declaration.
57576         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
57577         print_unicode_char. Call failure callback instead of error.
57578         (fwrite_success_callback): New function.
57579         (exit_failure_callback): New function.
57580         (fallback_failure_callback): New function.
57581         (print_unicode_char): Call unicode_to_mb.
57582
57583 2002-01-26  Jim Meyering  <meyering@lucent.com>
57584
57585         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
57586         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
57587
57588 2002-01-26  Jim Meyering  <meyering@lucent.com>
57589
57590         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
57591
57592 2002-01-22  Paul Eggert  <eggert@twinsun.com>
57593
57594         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
57595
57596 2002-01-22  Jim Meyering  <meyering@lucent.com>
57597
57598         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
57599         Otherwise, some versions of automake would omit the rule that makes
57600         Makefile from Makefile.in.
57601
57602 2002-01-21  Paul Eggert  <eggert@twinsun.com>
57603
57604         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
57605         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
57606         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
57607         (memcoll): Set errno to zero if there is no error.
57608
57609         * lib/quotearg.c (quotearg_buffer_restyled):
57610         Fix bug with quoting buffers containing NUL when backslashing escapes.
57611         This bug was exposed by the other changes in this patch.
57612         (quotearg_n_options): New arg ARGSIZE.
57613         All callers changed.
57614         (quoting_options_from_style): New function.
57615         (quotearg_n_style): Use it.
57616         (quotearg_n_style_mem): New function.
57617
57618         * lib/quotearg.h (quotearg_n_style_mem): New function.
57619
57620 2002-01-19  Jim Meyering  <meyering@lucent.com>
57621
57622         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
57623         Remove useless quotes: DF_PROG="df".
57624         * m4/strnlen.m4: New file.
57625
57626 2002-01-16  Paul Eggert  <eggert@twinsun.com>
57627
57628         * lib/backupfile.c (ISDIGIT): Comment fix.
57629         * lib/getdate.y (ISDIGIT): Likewise.
57630         * lib/posixtm.c (ISDIGIT, year): Likewise.
57631         * lib/strverscmp.c (ISDIGIT): Likewise.
57632         * lib/userspec.c (ISDIGIT): Likewise.
57633
57634 2002-01-16  Jim Meyering  <meyering@lucent.com>
57635
57636         * lib/getdate.y: Add three semicolons, each just before a closing
57637         brace. Bison (as of version 1.31) no longer papers over that mistake.
57638
57639 2002-01-05  Jim Meyering  <meyering@lucent.com>
57640
57641         * lib/version-etc.c (version_etc_copyright): Update copyright year.
57642
57643 2001-12-19  Paul Eggert  <eggert@twinsun.com>
57644
57645         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
57646         not silently exit merely because the output buffer happens to
57647         have nothing pending.
57648
57649 2001-12-18  Paul Eggert  <eggert@twinsun.com>
57650
57651         See the big note in ../ChangeLog.
57652         * lib/human.c (suffixes): Prefer K to k for 1024.
57653         (generate_suffix_backwards): New function.
57654         (human_readable_inexact): Use it.
57655         * lib/xstrtol.c (__xstrtol): If there is no number but there
57656         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
57657         Accept 'K' as well as 'k'.
57658
57659 2001-12-15  Jim Meyering  <meyering@lucent.com>
57660
57661         * lib/regex.h (__restrict_arr): Update from libc.
57662
57663         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
57664         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
57665         (STREQ): Define.
57666
57667 2001-12-14  Jim Meyering  <meyering@lucent.com>
57668
57669         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
57670         Suggestion from Bruno Haible.
57671
57672 2001-12-10  Jim Meyering  <meyering@lucent.com>
57673
57674         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
57675         xrealloc, Instead, include "xalloc.h".
57676         (initbuffer): Don't cast xmalloc return value to char*.
57677         (readline): Reword comment.
57678         Don't cast xrealloc return value to char*
57679         Return NULL, not 0.
57680
57681 2001-12-09  Jim Meyering  <meyering@lucent.com>
57682
57683         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
57684         about `signed and unsigned type in conditional expression'.
57685         * lib/posixtm.c (posix_time_parse): Likewise.
57686
57687         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
57688
57689         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
57690         to avoid a pedantic warning.
57691
57692         * lib/getstr.c: Don't include assert.h.
57693         (getstr): Remove warning-evoking assertions.
57694         Return -1 if offset parameter is out of bounds.
57695         Change the type of a local from int to size_t.
57696
57697         * lib/strftime.c (my_strftime_localtime_r): Include this function
57698         definition in the `#if ! HAVE_TM_GMTOFF' block.
57699
57700         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
57701         Include xalloc.h instead.
57702
57703 2001-12-02  Jim Meyering  <meyering@lucent.com>
57704
57705         * lib/tempname.c: Don't declare getenv, thus reverting the change of
57706         2001-11-18.  It's no longer necessary, now that stdlib.h is always
57707         included.
57708
57709         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
57710         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
57711
57712 2001-11-30  Akim Demaille  <akim@epita.fr>
57713
57714         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
57715         before being defined.
57716
57717 2001-11-27  Paul Eggert  <eggert@twinsun.com>
57718
57719         * lib/quotearg.h (quotearg_n, quotearg_n_style):
57720         First arg is int, not unsigned.
57721         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
57722         (SIZE_MAX, UINT_MAX): New macros.
57723         (quotearg_n_options): Abort if N is negative.
57724         Avoid overflow check on hosts where size_t is 64 bits and int
57725         is 32 bits, as overflow is impossible there.
57726         Fix off-by-one typo that caused unnecessary reallocation.
57727
57728 2001-11-27  Jim Meyering  <meyering@lucent.com>
57729
57730         * lib/tempname.c: Merge with version from libc.
57731         * lib/regex.c: Likewise.
57732
57733         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
57734         systems for which STDC_HEADERS is 0, it was not included, resulting in
57735         a warning about an integer-to-pointer conversion problem with getenv.
57736         Reported by Volker Borchert.
57737
57738 2001-11-26  Jim Meyering  <meyering@lucent.com>
57739
57740         * lib/gtod.h: Remove file.
57741         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
57742         * lib/gettimeofday.c: Don't include gtod.h.
57743         (GTOD_init): Remove function.
57744         (rpl_gettimeofday): Do its job here instead, rather than aborting.
57745         Suggestion from Volker Borchert.
57746
57747 2001-11-23  Jim Meyering  <meyering@lucent.com>
57748
57749         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
57750         it.
57751         * lib/hash.c (struct hash_table): Define it here instead.
57752
57753 2001-11-22  Jim Meyering  <meyering@lucent.com>
57754
57755         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
57756
57757 2001-11-20  Jim Meyering  <meyering@lucent.com>
57758
57759         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
57760         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
57761
57762 2001-11-19  Jim Meyering  <meyering@lucent.com>
57763
57764         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
57765         directory.  Use "conftestXXXXXX" as the template.
57766         Suggestion from Paul Eggert.
57767
57768         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
57769         immediately, so the test doesn't mistakenly hit the max-open-files
57770         limit.
57771
57772 2001-11-18  Paul Eggert  <eggert@twinsun.com>
57773
57774         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
57775         (TEMPORARIES): New macro.
57776         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
57777         removes an artificial limitation (e.g. HP-UX 10.20, where
57778         TMP_MAX is 17576).
57779
57780 2001-11-18  Jim Meyering  <meyering@lucent.com>
57781
57782         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
57783
57784 2001-11-18  Jim Meyering  <meyering@lucent.com>
57785
57786         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
57787         on SunOS 4.
57788
57789         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
57790         files will be created before anything else.
57791
57792 2001-11-17  Paul Eggert  <eggert@twinsun.com>
57793
57794         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
57795         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
57796
57797 2001-11-17  Jim Meyering  <meyering@lucent.com>
57798
57799         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
57800         Prompted by a report from Bob Proulx.
57801
57802         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
57803         Instead, require UTILS_FUNC_MKSTEMP.
57804
57805 2001-11-17  Jim Meyering  <meyering@lucent.com>
57806
57807         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
57808         Now, that's done as part of AC_FUNC_STRTOD.
57809
57810 2001-11-17  Jim Meyering  <meyering@lucent.com>
57811
57812         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
57813         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
57814         rather than group writable.  Patch by Juan F. Codagnone.
57815
57816         * lib/readtokens.c: Remove explicit declarations of xmalloc and
57817         xrealloc, Instead, include "xalloc.h".
57818
57819         * lib/mountlist.c: Include unlocked-io.h after all system headers.
57820         Remove explicit declarations of xmalloc, xrealloc,
57821         and xstrdup.  Instead, include "xalloc.h".
57822
57823         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
57824         unlocked-io.h.
57825         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
57826         Likewise.
57827         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
57828
57829         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
57830         Reported by Padraig Brady.
57831
57832         * lib/mkstemp.c: #undef mkstemp.
57833         Include config.h.
57834         (rpl_mkstemp): Rename from mkstemp.
57835         Protoize.
57836
57837 2001-11-16  Jim Meyering  <meyering@lucent.com>
57838
57839         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
57840         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
57841         determine the amount of total physical memory, use pstat_getstatic.
57842         HPUX-11 doesn't define _SC_PHYS_PAGES.
57843         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
57844         If sysconf couldn't be used to determine the amount of available
57845         physical memory, use both pstat_getstatic and pstat_getdynamic.
57846         Based on a patch from Bob Proulx.
57847
57848 2001-11-10  Jim Meyering  <meyering@lucent.com>
57849
57850         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
57851         (jm_PREREQ): Use it.
57852
57853 2001-11-09  Jim Meyering  <meyering@lucent.com>
57854
57855         * m4/jm-macros.m4: Require autoconf-2.52f.
57856         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
57857         Use these AC_-prefixed names, not the AM_-prefixed ones.
57858
57859         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
57860
57861 2001-11-05  Jim Meyering  <meyering@lucent.com>
57862
57863         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
57864
57865 2001-11-04  Jim Meyering  <meyering@lucent.com>
57866
57867         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
57868         $DEFS.
57869
57870 2001-11-03  Jim Meyering  <meyering@lucent.com>
57871
57872         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
57873         of AC_DEFUN.
57874
57875         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
57876         know the name of the variable in the macro definition.
57877
57878 2001-11-03  Jim Meyering  <meyering@lucent.com>
57879
57880         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
57881         in argmatch_to_argument call.
57882
57883         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
57884         argument.
57885
57886         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
57887         e.g., a fault due to an attempt to free a NULL pointer.
57888
57889 2001-11-01  Jim Meyering  <meyering@lucent.com>
57890
57891         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
57892         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
57893
57894 2001-11-01  Jim Meyering  <meyering@lucent.com>
57895
57896         * lib/dirfd.c, lib/dirfd.h: New files.
57897         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
57898
57899         * lib/hash.c (hash_print) [TESTING]: Clean up.
57900
57901 2001-10-22  Paul Eggert  <eggert@twinsun.com>
57902
57903         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
57904         to avoid a warning if -Wall.
57905
57906 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
57907
57908         * README: New file
57909         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
57910         (per RMS's instructions, this is now the canonical source)
57911         * lgpl/, gpl/: New directories.
57912
57913 2001-10-21  Paul Eggert  <eggert@twinsun.com>
57914
57915         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
57916
57917 2001-10-21  Jim Meyering  <meyering@lucent.com>
57918
57919         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
57920         this code would end up calling gettext even in packages built
57921         with --disable-nls.
57922         * lib/getopt.c (_): Likewise.
57923         * lib/regex.c (_): Likewise.
57924
57925 2001-10-20  Paul Eggert  <eggert@twinsun.com>
57926
57927         * m4/error.m4 (jm_PREREQ_ERROR):
57928         Do not invoke AC_CHECK_FUNCS with strerror_r, as
57929         AC_FUNC_STRERROR_R does that.
57930         Check for strerror declaration.
57931
57932         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
57933         are supposed to have them these days.
57934         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
57935         Merge changes from latest Autoconf CVS.
57936         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
57937         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
57938         POSIX decided to standardize on the int flavor of strerror_r.
57939
57940 2001-10-20  Paul Eggert  <eggert@twinsun.com>
57941
57942         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
57943         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
57944         Use strerror_r that is only a macro, even if it is not a function.
57945         (strerror): Check for HAVE_DECL_STRERROR before declaring.
57946         (private_strerror): Use prototypes, not old-style function definition.
57947         (print_errno_message): New function.
57948         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
57949         char*-flavored one.
57950         (error_tail, error, error_at_line): Use it.
57951
57952 2001-10-11  Jim Meyering  <meyering@lucent.com>
57953
57954         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
57955         and quote_n (1, ... to avoid clobbering a buffer.
57956
57957 2001-10-05  Jim Meyering  <meyering@lucent.com>
57958
57959         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
57960         hash-pjw.h.
57961         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
57962         * lib/hash-pjw.h: New file.
57963
57964 2001-09-30  Jim Meyering  <meyering@lucent.com>
57965
57966         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
57967         `struct fsstat' has the `f_fstypename' member.
57968         Use that to define FS_TYPE, which is now used to make
57969         the getfsstat link test tighter.
57970
57971 2001-09-30  Jim Meyering  <meyering@lucent.com>
57972
57973         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
57974         Include <sys/ucred.h>, for Apple Darwin.
57975         Include sys/mount.h and sys/fs_types.h only if available.
57976         (FS_TYPE): Define.
57977         (read_filesystem_list): Use FS_TYPE.
57978
57979 2001-09-29  Paul Eggert  <eggert@twinsun.com>
57980
57981         * lib/exclude.c (excluded_filename): 0 -> false, since it's
57982         a boolean context.
57983
57984 2001-09-29  Jim Meyering  <meyering@lucent.com>
57985
57986         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
57987         [one-argument getmntent function]): Include stdio.h before mntent.h.
57988         SunOS 4.1.x needs it for the declaration of `FILE'.
57989         Patch by Volker Borchert.
57990
57991         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
57992         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
57993         sys/fs_types.h, and make the link-test for getfsstat guard #include
57994         directives with appropriate #if HAVE_*_H tests so that we can
57995         detect getfsstat on Apple Darwin1.3.7 systems.
57996         Reported by Nelson Beebe.
57997         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
57998
57999 2001-09-28  Paul Eggert  <eggert@twinsun.com>
58000
58001         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
58002         #defines strtoimax.  Also treat the other strto* functions
58003         like strtoimax.
58004
58005         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
58006         Check for strtoul and strtoumax,
58007         as those declarations are made even in the signed case.
58008         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
58009         Likewise, for strtol and strtoimax.
58010
58011 2001-09-28  Paul Eggert  <eggert@twinsun.com>
58012
58013         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
58014         #defines strtoimax.  Also treat the other strto* functions
58015         like strtoimax.
58016
58017         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
58018         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
58019         (strtoimax, strtoumax): Do not declare if already defined as a macro.
58020
58021 2001-09-26  Jim Meyering  <meyering@lucent.com>
58022
58023         Most macros in unlocked-io.h had the wrong number of arguments.
58024         * lib/gen-uio: New script.
58025         (USE_UNLOCKED_IO): Define to 1 if not already defined.
58026         * lib/unlocked-io.hin: Remove file.
58027         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
58028         rather than trying to embed it here.
58029         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
58030         Reported by Padraig Brady.
58031
58032 2001-09-25  Volker Borchert  <bt@teknon.de>
58033
58034         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
58035         `result'.
58036
58037 2001-09-24  Jim Meyering  <meyering@lucent.com>
58038
58039         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
58040
58041 2001-09-23  Jim Meyering  <meyering@lucent.com>
58042
58043         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
58044         instead of the mere test for existence of mntent.h.  The latter
58045         would get a false-positive on AIX 3.4 systems.
58046         In the outer getmntent if-block, don't die if neither of the getmntent
58047         tests succeeds.  Instead, just fall through and continue with the
58048         remaining tests.
58049
58050 2001-09-23  Jim Meyering  <meyering@lucent.com>
58051
58052         * lib/mountlist.c: Remove useless parentheses in #if directives.
58053         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
58054         the deprecated MOUNTED symbol is no longer defined in mntent.h.
58055
58056 2001-09-22  Jim Meyering  <meyering@lucent.com>
58057
58058         * m4/gettext.m4: New file.  From gettext.
58059         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
58060         * m4/progtest.m4: Likewise
58061         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
58062         * m4/glibc21.m4: Likewise.
58063
58064         * m4/libintl.m4: Remove.  No longer used.
58065
58066 2001-09-22  Jim Meyering  <meyering@lucent.com>
58067
58068         * lib/localcharset.c: Update from latest gettext.
58069         * lib/config.charset: Likewise.
58070
58071 2001-09-20  Jim Meyering  <meyering@lucent.com>
58072
58073         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
58074         strtoimax.
58075         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
58076         strtoumax.
58077
58078 2001-09-20  Jim Meyering  <meyering@lucent.com>
58079
58080         * lib/xstrtol.c (strtoimax): Guard declaration with
58081         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
58082         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
58083         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
58084         (strtoumax): Likewise, for completeness (it wasn't necessary).
58085
58086 2001-09-17  Paul Eggert  <eggert@twinsun.com>
58087
58088         * lib/strtoimax.c (HAVE_LONG_LONG):
58089         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
58090         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
58091         to work around bug in IBM C compiler.
58092
58093 2001-09-17  Jim Meyering  <meyering@lucent.com>
58094
58095         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
58096         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
58097         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
58098         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
58099         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
58100         whenever the right hand side need not be expanded by the shell.
58101
58102 2001-09-16  Paul Eggert  <eggert@twinsun.com>
58103
58104         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
58105         library.  It's not correct, as some older glibcs are buggy.
58106         fnmatch wasn't fixed until glibc 2.2.
58107
58108         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
58109         special shell magic here.
58110
58111 2001-09-16  Jim Meyering  <meyering@lucent.com>
58112
58113         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
58114         * m4/jm-macros.m4: Require it.
58115
58116 2001-09-16  Jim Meyering  <meyering@lucent.com>
58117
58118         * lib/mkdir.c: New file.
58119
58120 2001-09-15  Jim Meyering  <meyering@lucent.com>
58121
58122         * m4/jm-macros.m4: Check for help2man.
58123
58124 2001-09-11  Jim Meyering  <meyering@lucent.com>
58125
58126         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
58127         The body, by Paul Eggert, was moved here from configure.in.
58128         * m4/jm-macros.m4: Require UTILS_HOST_OS.
58129
58130 2001-09-04  Paul Eggert  <eggert@twinsun.com>
58131
58132         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
58133         (jm_PREREQ): Use it.
58134
58135 2001-09-04  Paul Eggert  <eggert@twinsun.com>
58136
58137         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
58138         Use ssize_t, not int, to store result of readlink.
58139         Check for ssize_t overflow as well as size_t overflow,
58140         as POSIX says the result of readlink is implementation-defined
58141         when ssize_t overflows.
58142         Remove unnecessary cast to char*.
58143         Use free+malloc instead of realloc, as the storage doesn't need
58144         to be preserved and it's clearer and can be more efficient that way.
58145         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
58146         * lib/xreadlink.h (xreadlink): Update prototype.
58147
58148 2001-09-04  Paul Eggert  <eggert@twinsun.com>
58149
58150         * lib/xgetcwd.c: Revert some of the previous change; intead,
58151         fix the HAVE_GETCWD_NULL code to behave more like the
58152         !HAVE_GETCWD_NULL code used to.
58153
58154         Include "xalloc.h".
58155         (xgetcwd): Do not return NULL when memory is exhausted; instead,
58156         invoke xalloc_die.
58157
58158 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58159
58160         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
58161         sys/param.h, as pathmax.h includes them.
58162
58163 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58164
58165         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
58166         (jm_PREREQ_XGETCWD): New macro.
58167
58168         * m4/getcwd.m4: New file.
58169
58170 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58171
58172         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
58173         like the HAVE_GETCWD_NULL code.
58174         Include pathmax.h if not HAVE_GETCWD.
58175         Do not include xalloc.h.
58176         (INITIAL_BUFFER_SIZE): New symbol.
58177         Do not use xmalloc / xrealloc, since the caller is responsible for
58178         handling errors.  Preserve errno around `free' during failure.
58179         Do not overrun buffer when using getwd.
58180
58181 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58182
58183         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
58184         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
58185         getcwd (NULL, 0).
58186
58187 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58188
58189         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
58190         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
58191         spotted by Jim Meyering.
58192
58193 2001-09-03  Jim Meyering  <meyering@lucent.com>
58194
58195         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
58196         failure.
58197
58198 2001-09-02  Jim Meyering  <meyering@lucent.com>
58199
58200         * lib/error.c: Update from GNU libc.
58201
58202 2001-09-01  Jim Meyering  <meyering@lucent.com>
58203
58204         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
58205         Used by df.
58206
58207 2001-09-01  Jim Meyering  <meyering@lucent.com>
58208
58209         * lib/xreadlink.c: New file.
58210         * lib/xreadlink.h: New file.
58211         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
58212         xreadlink.h.
58213
58214         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
58215         doesn't conflict with sparc Solaris 7's definition in
58216         /usr/include/sys/int_types.h.
58217
58218         * lib/exclude.c: Use `""', not `<>' to #include non-system header
58219         files.
58220         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
58221         and strncasecmp as r-values.  Unixware didn't have declarations.
58222
58223 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58224
58225         * lib/xstrtol.h: Add copyright notice.
58226         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
58227         LONGINT_INVALID_SUFFIX_CHAR.
58228
58229 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58230
58231         * lib/xstrtol.c (strtoimax): New decl.
58232
58233 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58234
58235         * lib/xgetcwd.c: Don't include pathmax.h.
58236         Include stdlib.h and unistd.h if available.
58237         Include xalloc.h.
58238         (xmalloc, xstrdup, free): Remove decls.
58239         (xgetcwd): Don't assume sizes fit in unsigned.
58240         Check for overflow when computing sizes.
58241         Simplify reallocation code.
58242
58243 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58244
58245         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
58246         a directory's st_size can have an arbitrary value, so the old
58247         usage could waste an arbitrary amount of memory.  All uses
58248         changed.
58249         * lib/savedir.h: Update prototype.
58250
58251 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58252
58253         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
58254
58255         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
58256         old strtoimax.c.
58257
58258         Also, make the following further changes to make this file's
58259         configuration more similar to that of strtol.c:
58260         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
58261         (strtoumax, uintmax_t, strtoull, strtol): Remove.
58262         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
58263         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
58264         changed to signed values.
58265
58266         And make the following changes as well:
58267         Fix copyright notice, as 1999 was missing.
58268         (verify): New macro.
58269         (strtoimax): Check sizes at compile-time, not run-time.
58270         Prefer strtol to strtoll if both work.
58271         (main): Remove; it was not that useful and was a pain to maintain.
58272
58273         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
58274
58275 2001-08-31  Jim Meyering  <meyering@lucent.com>
58276
58277         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
58278         Use an initial, malloc'd, buffer of length 128 rather than
58279         a statically allocated one of length 1024.
58280
58281 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58282
58283         Simplify code, partly by assuming autoconf 2.52 semantics.
58284
58285         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
58286
58287         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
58288         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
58289         All uses removed.
58290         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
58291         Move AC_REQUIRE to next-to-top level, to avoid confusion.
58292         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
58293         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
58294         jm_AC_HEADER_INTTYPES_H.
58295         * m4/jm-macros.m4 (jm_MACROS): Likewise.
58296
58297         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
58298
58299         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
58300         Quote first arg of AC_DEFUN.
58301         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
58302         since they are needed to parse the include file even if we need
58303         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
58304         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
58305         but with opposite signedness.
58306
58307 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58308
58309         Merge 'exclude' changes from tar 1.13.22.
58310         This fixes one or two unlikely storage allocation overflow bugs,
58311         but doesn't change user-visible behavior otherwise.
58312
58313 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58314
58315         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
58316         (jm_PREREQ_EXCLUDE): New macro.
58317
58318 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58319
58320         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
58321         tm to be declared.
58322
58323 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58324
58325         * lib/hash.c: Remove '2001' from copyright notice.
58326
58327 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58328
58329         * lib/full-write.h: New file.
58330         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
58331         * lib/full-write.c: Correct credits, as cccp.c no longer
58332         exists and anyway it was so heavily changed from the old cccp
58333         code as to be unrecognizable.  Include full-write.h.
58334         (full_write) Return size_t, with short writes meaning failure.
58335         All callers changed.  This fixes a bug with large buffers
58336         on 64-bit hosts.
58337         * lib/utime.c: Include full-write.h.
58338
58339 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58340
58341         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
58342         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
58343         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
58344         Include if available.
58345         (<xalloc.h>): Include
58346         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
58347         (verify): New macro.  Use it to verify that EXCLUDE macros do not
58348         collide with FNM macros.
58349         (struct patopts): New struct.
58350         (struct exclude): Use it, as exclude patterns now come with options.
58351         (new_exclude): Support above changes.
58352         (new_exclude, add_exclude_file):
58353         Initial size must now be a power of two to simplify overflow checking.
58354         (free_exclude, fnmatch_no_wildcards): New function.
58355         (excluded_filename): No longer requires options arg, as the options
58356         are determined by add_exclude.  Now returns bool, not int.
58357         (excluded_filename, add_exclude):
58358         Add support for the fancy new exclusion options.
58359         (add_exclude, add_exclude_file): Now takes int options arg.
58360         Check for arithmetic overflow when computing sizes.
58361         (add_exclude_file): xrealloc might modify errno, so don't
58362         realloc until after errno might be used.
58363
58364         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
58365         New macros.
58366         (free_exclude): New decl.
58367         (add_exclude, add_exclude_file): Now takes int options arg.
58368         (excluded_filename): No longer requires options arg, as the options
58369         are determined by add_exclude.  Now returns bool, not int.
58370
58371 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58372
58373         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
58374
58375 2001-08-27  Jim Meyering  <meyering@lucent.com>
58376
58377         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
58378
58379         * lib/version-etc.c (N_): Remove definition.
58380         Revert most of last change.
58381         Instead, simply don't mark the `Copyright...' string for translation.
58382         Based on advice from Paul Eggert.
58383
58384         * lib/strtoxmax.c: Tweak comment.
58385
58386 2001-08-26  Jim Meyering  <meyering@lucent.com>
58387
58388         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
58389
58390         * m4/xstrtoimax.m4: New file.
58391         * m4/xstrtoumax.m4: Add comments explaining why we
58392         AC_REPLACE_FUNCS(strtol).
58393
58394 2001-08-26  Jim Meyering  <meyering@lucent.com>
58395
58396         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
58397         of copyright with `%s' so translators don't get an untranslated
58398         message in 2002.
58399         (COPYRIGHT_YEAR): Define.
58400         (version_etc): Use fprintf rather than fputs.
58401         Suggestion from Ulrich Drepper.
58402
58403         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
58404
58405         * lib/strtoll.c: New file, from GNU libc.
58406         * lib/xstrtoimax.c: New file.
58407
58408         * lib/xstrtol.h: Add xstrtoimax.
58409         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
58410         * lib/strtoimax.c: New file.  Likewise, but first define
58411         STRTOUXMAX_SIGNED.
58412
58413         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
58414         ...
58415         * lib/strtoxmax.c: ... then renamed to this.
58416
58417 2001-08-18  Paul Eggert  <eggert@twinsun.com>
58418
58419         * m4/inttypes.m4: Add AC_PREREQ(2.13).
58420         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
58421         (jm_AC_TYPE_INTMAX_T): New macro.
58422         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
58423
58424         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
58425
58426         * m4/longlong.m4: Renamed from ulonglong.m4.
58427         * m4/inttypes.m4: Renamed from inttypes_h.m4.
58428         * m4/uintmax_t.m4: Removed.
58429
58430 2001-08-13  Paul Eggert  <eggert@twinsun.com>
58431
58432         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
58433         Port to Solaris 8, where 'sed' requires a space after the 'r'
58434         command, and where sh dislikes "$/".  Clean up the spacing a bit.
58435         Redirect output to $tmp just once.
58436
58437 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
58438
58439         * lib/addext.c (<errno.h>): Include.
58440         (errno): Declare if not defined.
58441         (addext): Work correctly when pathconf returns -1 and leaves
58442         errno alone because there is no limit.  Also, work even if
58443         pathconf returns a value greater than SIZE_MAX.
58444
58445 2001-08-12  Jim Meyering  <meyering@lucent.com>
58446
58447         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
58448         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
58449         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
58450         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
58451         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
58452         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
58453         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
58454         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
58455         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
58456         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
58457         utime.m4, utimes.m4, xstrtoumax.m4:
58458         Quote the first argument in each use of AC_DEFUN.
58459
58460 2001-08-12  Jim Meyering  <meyering@lucent.com>
58461
58462         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
58463         Simply `return getcwd (NULL, 0);'.
58464         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
58465         Use 1300 as initial value for length, not PATH_MAX.
58466
58467         * lib/pathmax.h: Clean up cpp syntax.
58468
58469 2001-08-12  Jim Meyering  <meyering@lucent.com>
58470
58471         * lib/gettimeofday.c: New file.
58472         * lib/gtod.h: New file.
58473         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
58474
58475 2001-08-05  Jim Meyering  <meyering@lucent.com>
58476
58477         * m4/jm-macros.m4: Require autoconf-2.52.
58478
58479 2001-08-04  Jim Meyering  <meyering@lucent.com>
58480
58481         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
58482         stmt, to get in sync with glibc.
58483
58484 2001-08-03  Paul Eggert  <eggert@twinsun.com>
58485
58486         The following changes are from gettext 0.10.39 as maintained by
58487         Bruno Haible.
58488
58489         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
58490         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
58491         with inverted sense.  All uses changed.
58492
58493         * lib/mbswidth.c: Don't include <limits.h>.
58494         Include <stdlib.h> and <string.h> unconditionally.
58495         (iswcntrl, mbsinit, ISCNTRL): New macros.
58496         (mbsnwidth): Use K&R style function declarations.
58497         Don't bother checking for MB_LEN_MAX == 1, since the compiler
58498         can optimize it when MB_CUR_MAX == 1.
58499         The width of control characters is zero, not 1.
58500
58501 2001-08-03  Paul Eggert  <eggert@twinsun.com>
58502
58503         The following changes are from gettext 0.10.39 as maintained by
58504         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
58505
58506         * m4/codeset.m4: Upgrade to serial AM1.
58507         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
58508         all uses changed.  Quote first arg of AC_DEFUN.
58509         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
58510
58511         * m4/iconv.m4: Upgrade to serial AM2.
58512         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
58513         Add --with-libconv-prefix.
58514         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
58515         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
58516         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
58517         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
58518         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
58519
58520         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
58521         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
58522         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
58523         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
58524         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
58525         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
58526         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
58527         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
58528         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
58529
58530         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
58531         string.h any more.
58532
58533         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
58534         not the default value.
58535
58536         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
58537         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
58538         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
58539         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
58540         Also check for iswcntrl, used for wcwidth fallback.
58541         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
58542         to Autoconf 2.13.
58543
58544 2001-08-03  Jim Meyering  <meyering@lucent.com>
58545
58546         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
58547         as it was in the original.  Reported by Paul Eggert.
58548
58549 2001-07-16  Jim Meyering  <meyering@lucent.com>
58550
58551         * m4/gettimeofday.m4: New file.
58552         Prompted by a report from Bernhard Baehr.
58553
58554 2001-07-15  Jim Meyering  <meyering@lucent.com>
58555
58556         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
58557         stuff. Now it's in ../Makefile.cfg.
58558
58559 2001-07-15  Jim Meyering  <meyering@lucent.com>
58560
58561         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
58562         (BUILT_SOURCES): Add unlocked-io.h.
58563         (io_functions): Define.
58564         (unlocked-io.h): New rule.
58565         (DISTCLEANFILES): Add unlocked-io.h.
58566         (all-local): Depend on unlocked-io.h, to ensure it is created.
58567
58568         * lib/unlocked-io.hin: New file
58569
58570         * lib/regex.c: Update from glibc.
58571
58572 2001-07-05  Jim Meyering  <meyering@lucent.com>
58573
58574         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
58575         recommendation.
58576         (libfetish_a_SOURCES): Put all .h files here instead.
58577         Remove a thus-exposed (better checks in automake) duplicate and
58578         two unnecessary .h files.
58579
58580 2001-07-04  Jim Meyering  <meyering@lucent.com>
58581
58582         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
58583         that generates jm-glibc-io.m4 so that it doesn't trigger any make
58584         distcheck failure.
58585
58586 2001-07-02  Jim Meyering  <meyering@lucent.com>
58587
58588         The following changes were prompted by suggestions from Bruno Haible.
58589
58590         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
58591         is now generated.
58592         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
58593         definition of EXTRA_DIST.
58594         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
58595         ensure that the generated file is created/updated whenever the list
58596         of $(unlocked_functions) is changed.
58597         (jm-glibc-io.m4): New rule.
58598         (unlocked-io.h): New rule -- currently unused.
58599
58600 2001-06-24  Jim Meyering  <meyering@lucent.com>
58601
58602         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
58603         unmatched right bracket, rather than kludging it with an extra,
58604         falsely-matching quote in a comment.  Patch by Akim Demaille.
58605
58606 2001-06-11  Jim Meyering  <meyering@lucent.com>
58607
58608         * lib/regex.c: Update from GNU libc.
58609
58610 2001-05-27  Jim Meyering  <meyering@lucent.com>
58611
58612         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
58613         Check for ut_type in struct utmp.
58614
58615 2001-05-27  Jim Meyering  <meyering@lucent.com>
58616
58617         * lib/readutmp.h (UT_TYPE): Define.
58618
58619 2001-05-24  Jim Meyering  <meyering@lucent.com>
58620
58621         * lib/argmatch.c: Include "quote.h".
58622         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
58623         quote function.  Reported by Göran Uddeborg.
58624
58625 2001-05-22  Jim Meyering  <meyering@lucent.com>
58626
58627         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
58628         now that we use the package-supplied version unconditionally.
58629         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
58630
58631 2001-05-21  Jim Meyering  <meyering@lucent.com>
58632
58633         * m4/regex.m4: Change a couple backticks to single quotes to avoid
58634         shell syntax errors.
58635
58636 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
58637
58638         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
58639
58640 2001-05-20  Paul Eggert  <eggert@twinsun.com>
58641
58642         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
58643         Don't bother to check library strftime, since
58644         we'll be using our own my_strftime function anyway.
58645         Define my_strftime instead of strftime.
58646
58647 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
58648
58649         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
58650         which is not yet declared.
58651
58652 2001-05-15  Jim Meyering  <meyering@lucent.com>
58653
58654         * m4/regex.m4: Use proper quoting so brackets appear in the test
58655         program.
58656         Reported by, and with help from, Bruno Haible.
58657
58658 2001-05-13  Jim Meyering  <meyering@lucent.com>
58659
58660         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
58661         undefined.
58662
58663 2001-05-11  Paul Eggert  <eggert@twinsun.com>
58664
58665         dirname code cleanup.  base_name now behaves more compatibly
58666         with POSIX basename when given file names that have trailing
58667         slashes, and similarly for dir_name.  Add new primitives
58668         base_len and dir_len.  Put the directory-name-related decls
58669         into dirname.h.
58670
58671         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
58672         * lib/backupfile.c (base_name): Likewise.
58673         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
58674         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
58675         * lib/makepath.c (strip_trailing_slashes): Likewise.
58676         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
58677         ISSLASH): Likewise.
58678         * lib/rename.c (strip_trailing_slashes): Likewise.
58679         * lib/same.c (base_name): Likewise.
58680         * lib/stripslash.c (ISSLASH): Likewise.
58681
58682         * lib/addext.c: Include <dirname.h> after size_t is defined.
58683         * lib/backupfile.c: Likewise.
58684
58685         * lib/addext.c (addext): Use base_len to trim redundant
58686         trailing slashes instead of doing it ourselves.
58687         But do not trim the last slash if it is not redundant.
58688
58689         * lib/backupfile.c (find_backup_file_name,
58690         max_backup_version): Use base_len instead of rolling it ourselves.
58691         Handle the case of "" and (on DOS) "C:" correctly.
58692
58693         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
58694         needed. Include <string.h>, <dirname.h>.
58695         (base_name): Allow file names ending in slashes, other than names
58696         that are all slashes.  In this case, return the basename followed
58697         by the slashes.  This is more general, and can be used in places
58698         where the original base_name purposely had an assertion failure.
58699         (base_len): New function.
58700
58701         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
58702         Do not include <assert.h>; no longer needed.
58703         Include xalloc.h.
58704         (memrchr): Remove decl.
58705         (dir_name_r): Remove.
58706         (dir_len): Renamed from dirlen.  All callers changed.
58707         Rewrite in terms of base_name, for simplicity and consistency.
58708         (dir_name): Never return NULL.  All callers changed.
58709         Do not include <stdlib.h> in test program; no longer needed.
58710         return 0; is fine for test program.
58711
58712         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
58713         New macros.
58714         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
58715
58716         * lib/path-concat.c (path_concat): Use base_len to compute
58717         base length, not strlen; this means we cannot rely on memcpy
58718         to null-terminate.
58719
58720         * lib/same.c (STREQ): Remove.
58721         (same_name): Handle the case where the basename ends in trailing '/'.
58722
58723         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
58724         a slash was stripped.  Do not strip the last slash after a
58725         file system prefix.
58726
58727 2001-05-11  Paul Eggert  <eggert@twinsun.com>
58728
58729         * lib/Makefile.am (libfetish_a_SOURCES):
58730         Add strftime.c, since we now compile it on all hosts.
58731
58732         * lib/strftime.c (my_strftime):
58733         Define to nstrftime if emacs, but only if my_strftime is not defined.
58734         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
58735         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
58736         Add one more extra argument: a nanoseconds value.
58737         All uses changed.
58738         (ns): New macro.
58739         (my_strftime function): Add %N format.
58740         (emacs_strftimeu): Renamed from emacs_strftime,
58741         with extra ut argument.
58742
58743 2001-05-09  Paul Eggert  <eggert@twinsun.com>
58744
58745         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
58746
58747 2001-04-21  Jim Meyering  <meyering@lucent.com>
58748
58749         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
58750         doesn't interfere.
58751
58752 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
58753
58754         * m4/ftruncate.m4: Check for chsize.
58755         Link with ftruncate.o unconditionally if ftruncate is missing.
58756         This was required when cross-compiling to i586-mingw32msvc.
58757
58758 2001-04-08  Jim Meyering  <meyering@lucent.com>
58759
58760         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
58761         recomputed; that's necessary when the offset spans a DST transition.
58762         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
58763
58764 2001-04-02  Jim Meyering  <meyering@lucent.com>
58765
58766         * lib/regex.h, regex.c: Update from GNU libc.
58767
58768 2001-03-24  Jim Meyering  <meyering@lucent.com>
58769
58770         * m4/jm-macros.m4: Require autoconf-2.49d.
58771
58772 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
58773
58774         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
58775
58776 2001-03-19  Paul Eggert  <eggert@twinsun.com>
58777
58778         * lib/version-etc.c (version_etc_copyright): Update to 2001.
58779
58780 2001-03-17  Jim Meyering  <meyering@lucent.com>
58781
58782         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
58783         now that the version in autoconf is equivalent.
58784         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
58785
58786         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
58787         Suggestion from Akim Demaille.
58788
58789         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
58790         (jm_PREREQ_TEMPNAME): New function.
58791
58792 2001-03-16  Paul Eggert  <eggert@twinsun.com>
58793
58794         * lib/tempname.c (uint64_t): Define to uintmax_t if
58795         not defined, and if UINT64_MAX is not defined.
58796         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
58797         Reported by John David Anglin.
58798
58799 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
58800
58801         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
58802         resolve alias if codeset is empty.
58803         * lib/config.charset (BeOS): Use wildcard syntax.
58804
58805 2001-03-13  Jim Meyering  <meyering@lucent.com>
58806
58807         * lib/path-concat.c (path_concat)
58808         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
58809         concatenating e.g., `C:' and `foo'.
58810         From Bruno Haible.
58811
58812 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
58813
58814         * lib/localcharset.c (locale_charset): Don't use
58815         setlocale(LC_CTYPE,NULL). Don't return NULL.
58816         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
58817
58818 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
58819
58820         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
58821         support for DOS/DJGPP.
58822
58823 2001-03-01  Paul Eggert  <eggert@twinsun.com>
58824
58825         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
58826         lacks mkstemp.  Compile our own tempname.c if we compile our own
58827         mkstemp.c, as mkstemp relies on tempname.
58828
58829 2001-03-01  Jim Meyering  <meyering@lucent.com>
58830
58831         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
58832         AH_VERBATIM really does output its argument verbatim.
58833
58834 2001-02-28  Paul Eggert  <eggert@twinsun.com>
58835
58836         * lib/Makefile.am (libfetish_a_SOURCES):
58837         Add dup-safer.c, fopen-safer.c.
58838         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
58839
58840         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
58841         * lib/unistd-safer.h: New files.
58842
58843 2001-02-25  Paul Eggert  <eggert@twinsun.com>
58844
58845         The mkstemp replacement is taken from glibc 2.2.2, with some
58846         portability fixes for use outside glibc, as follows:
58847
58848         * lib/tempname.c (struct_stat64): New macro.
58849         (direxists, __gen_tempname): Use it.
58850         This avoids a portability problem with Solaris 8.
58851
58852         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
58853         (<stddef.h>, <stdint.h>, <string.h>):
58854         Include only if STDC_HEADERS || _LIBC.
58855         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
58856         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
58857         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
58858         (__set_errno): Define this macro if <errno.h> doesn't.
58859         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
58860         Define these macros if <stdio.h> doesn't.
58861         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
58862         Define these macros if <sys/stat.h>
58863         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
58864         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
58865         __xstat64): Define if not _LIBC.
58866         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
58867         (__gen_tempname): Invoke gettimeofday only if
58868         HAVE_GETTIMEOFDAY || _LIBC;
58869         otherwise, fall back on plain "time".
58870         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
58871
58872         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
58873
58874         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
58875
58876 2001-02-18  Paul Eggert  <eggert@twinsun.com>
58877
58878         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
58879
58880 2001-02-17  Paul Eggert  <eggert@twinsun.com>
58881
58882         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
58883         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
58884         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
58885         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
58886
58887 2001-02-17  Paul Eggert  <eggert@twinsun.com>
58888
58889         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
58890         Remove workaround macros for hosts that have mbrtowc but not
58891         mbstate_t, as we now insist on proper declarations for both
58892         before using mbrtowc.
58893
58894 2001-02-17  Jim Meyering  <meyering@lucent.com>
58895
58896         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
58897         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
58898         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
58899         UnixWare 7.1.1.
58900
58901         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
58902         rather than AC_CACHE_VAL.
58903
58904 2001-02-17  Jim Meyering  <meyering@lucent.com>
58905
58906         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
58907         around included file name.
58908
58909         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
58910
58911         * lib/strftime.c: Update from GNU libc (the only changes were to
58912         comments).
58913
58914 2001-02-17  Jim Meyering  <meyering@lucent.com>
58915
58916         * lib/regex.c: Update from libc.
58917
58918 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
58919
58920         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
58921         clash.
58922
58923 2001-02-16  Paul Eggert  <eggert@twinsun.com>
58924
58925         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
58926         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
58927         Reported by Mark Hounschell via Paul Eggert.
58928
58929 2001-02-07  Jim Meyering  <meyering@lucent.com>
58930
58931         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
58932
58933 2001-02-05  Jim Meyering  <meyering@lucent.com>
58934
58935         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
58936         it includes the patch required for `large file' support with at least
58937         HP-UX's 10.20 /bin/cc.
58938
58939 2001-02-03  Jim Meyering  <meyering@lucent.com>
58940
58941         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
58942         AS_IF, now that it works once again (mysteriously).
58943         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
58944
58945 2001-01-30  Jim Meyering  <meyering@lucent.com>
58946
58947         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
58948         * m4/chown.m4: Rename conftestchown to conftest.chown.
58949         * m4/rename.m4: s/conftestdir/conftest.d1/ and
58950         s/conftestdir2/conftest.d2/.
58951         * m4/utimes.m4: s/conftestdata/conftest.data/
58952         Inspired by Pavel Roskin's change in autoconf.
58953
58954 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
58955
58956         * lib/config.charset: Update for FreeBSD 4.2.
58957
58958 2001-01-27  Jim Meyering  <meyering@lucent.com>
58959
58960         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
58961         a use of AS_IF.
58962         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
58963
58964 2001-01-26  Jim Meyering  <meyering@lucent.com>
58965
58966         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
58967         quotearg.c includes it.
58968
58969 2001-01-26  Jim Meyering  <meyering@lucent.com>
58970
58971         * lib/quotearg.c: Include stddef.h.
58972         * lib/quote.c: Include stddef.h.
58973         Reported by Axel Kittenberger.
58974
58975         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
58976         line in double quotes so that it evokes a better diagnostic.
58977         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
58978         Reported by Axel Kittenberger.
58979
58980 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
58981
58982         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
58983         as if it was a `charset'.
58984
58985 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
58986
58987         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
58988         has const.
58989
58990 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
58991
58992         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
58993         to avoid a warning.  Add back 'const' to inptr.
58994
58995 2001-01-20  Jim Meyering  <meyering@lucent.com>
58996
58997         Be sure that headers are checked before used in code compiled
58998         for the type checks.
58999         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
59000         In place of that, invoke jm_CHECK_ALL_TYPES.
59001         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
59002         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
59003         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
59004         The check for ssize_t was mistakenly run before the test for unistd.h.
59005
59006         The configure-time check for stdbool.h was missing.
59007         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
59008         (jm_PREREQ_HASH): New function.
59009
59010 2001-01-17  Jim Meyering  <meyering@lucent.com>
59011
59012         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
59013         for autoconf-2.49c.
59014         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
59015
59016 2001-01-16  Jim Meyering  <meyering@lucent.com>
59017
59018         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
59019         From Bruno Haible.
59020
59021 2001-01-14  Jim Meyering  <meyering@lucent.com>
59022
59023         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
59024         foo and bar.  Create conftestdir/ in the script, not in the C code.
59025         Remove directories in the script, not in the C code.
59026         Remove conftestdir{,2} before trying to create the directory.
59027         Make the entire configure script fail if the mkdir fails.
59028
59029 2001-01-14  Jim Meyering  <meyering@lucent.com>
59030
59031         * lib/rename.c: New file.  From Volker Borchert.
59032         Include stdlib.h, string.h or strings.h, and xalloc.h.
59033         Use strip_trailing_slashes rather than open-coding it.
59034
59035 2001-01-03  Paul Eggert  <eggert@twinsun.com>
59036
59037         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
59038
59039 2001-01-03  Jim Meyering  <meyering@lucent.com>
59040
59041         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
59042         of local `inptr' to avoid warning with some system declarations of
59043         iconv.
59044
59045 2001-01-02  Volker Borchert  <bt@teknon.de>
59046
59047         * m4/rename.m4: New file.
59048         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
59049
59050 2001-01-01  Jim Meyering  <meyering@lucent.com>
59051
59052         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
59053         even on systems with utmpx.h.  It's necessary for the declaration of
59054         utmp's ut_user member.  Reported by Andreas Jaeger.
59055
59056         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
59057         available. They are required for the declarations of getgrgid and
59058         getpwuid resp.
59059         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
59060         Reported by Andreas Jaeger.
59061
59062 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
59063
59064         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
59065         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
59066         so `make install' also works in VPATH builds.
59067
59068 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
59069
59070         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
59071         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
59072         can be used in subdirectories.
59073
59074 2000-12-29  Paul Eggert  <eggert@twinsun.com>
59075
59076         * lib/modechange.c: Do not assume that mode_t uses the
59077         traditional octal encoding.  E.g. "chmod 1 FOO" should set
59078         the other-execute bit of FOO even if S_IXOTH != 1.
59079
59080         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
59081         WOTH, XOTH, ALLM): New macros.
59082         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
59083          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
59084         Use them.
59085         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
59086         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
59087         (mode_compile):
59088         No need to use uintmax_t; unsigned long is long enough.
59089         Don't bother to get suffix since we don't use it.
59090
59091 2000-12-26  Jim Meyering  <meyering@lucent.com>
59092
59093         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
59094         better with autoheader.
59095
59096 2000-12-24  Jim Meyering  <meyering@lucent.com>
59097
59098         * lib/hash.c (is_prime): Return explicit boolean values.
59099         (hash_get_first): Return NULL to appease Irix5.6's 89.
59100         Reported by Nelson Beebe.
59101
59102 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
59103
59104         * lib/localcharset.c (locale_charset): Add support for Win32.
59105
59106 2000-12-18  Paul Eggert  <eggert@twinsun.com>
59107
59108         * lib/physmem.h, lib/physmem.c: New files.
59109
59110         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
59111         (noinst_HEADERS): Add physmem.h.
59112
59113         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
59114         't' for compatibility with Solaris 8 sort.
59115
59116 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
59117
59118         * lib/config.charset: Add support for BeOS.
59119
59120 2000-12-17  Jim Meyering  <meyering@lucent.com>
59121
59122         * m4/dos.m4 (jm_AC_DOS): New file and macro.
59123         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
59124
59125 2000-12-16  Jim Meyering  <meyering@lucent.com>
59126
59127         This bug had a serious impact on chown: `chown N:M FILE' (for integer
59128         N and M) would have treated it like `chown N:N FILE'.
59129
59130         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
59131
59132 2000-12-16  Jim Meyering  <meyering@lucent.com>
59133
59134         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
59135         SHELLS_FILE to a file name that's useful on djgpp systems.
59136         Include stdlib.h.
59137         (ADDITIONAL_DEFAULT_SHELLS): Define.
59138         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
59139         Based mostly on a patch from Prashant TR.
59140
59141 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
59142
59143         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
59144         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
59145         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
59146
59147 2000-12-08  Andreas Schwab  <schwab@suse.de>
59148
59149         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
59150         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
59151
59152 2000-12-07  Jim Meyering  <meyering@lucent.com>
59153
59154         * lib/stripslash.c (ISSLASH): Define.
59155         (strip_trailing_slashes): Use ISSLASH rather than comparing against
59156         `/'.
59157         From Prashant TR.
59158
59159         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
59160         (dir_name_r): Declare this function as static.
59161         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
59162         manifest itself on a name containing a mix of slashes and
59163         backslashes.
59164         Make this function work with names starting with a DOS-style
59165         drive letter and colon prefix.
59166         (dir_name): Append `.' if necessary.
59167         Based mostly on patches from Prashant TR and Eli Zaretskii.
59168
59169         * lib/dirname.h (dir_name_r): Remove prototype.
59170
59171 2000-12-06  Paul Eggert  <eggert@twinsun.com>
59172
59173         * m4/off_t-format.m4: Remove this file.
59174         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
59175
59176 2000-12-06  Jim Meyering  <meyering@lucent.com>
59177
59178         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
59179         replacement strtoull, we may well need the replacement strtoul, too.
59180         Check for declarations of strtoul and strtoull.
59181         Check for strtol.  Mainly as a cue to cause automake to include
59182         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
59183         Check for limits.h -- strtol.c needs it.
59184
59185 2000-12-05  Jim Meyering  <meyering@lucent.com>
59186
59187         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
59188
59189 2000-12-04  Jim Meyering  <meyering@lucent.com>
59190
59191         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
59192         Also include memory.h, stdlib.h, unistd.h if appropriate.
59193         Reported by Andreas Jaeger (conflicting declaration of malloc).
59194
59195 2000-12-02  Jim Meyering  <meyering@lucent.com>
59196
59197         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
59198         * m4/jm-macros.m4 (jm_MACROS): require it.
59199
59200 2000-12-02  Jim Meyering  <meyering@lucent.com>
59201
59202         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
59203
59204 2000-12-01  Paul Eggert  <eggert@twinsun.com>
59205
59206         * lib/memrchr.c: Include <config.h> before any system include file.
59207
59208 2000-11-30  Jim Meyering  <meyering@lucent.com>
59209
59210         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
59211
59212 2000-11-30  Jim Meyering  <meyering@lucent.com>
59213
59214         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
59215
59216 2000-11-29  Paul Eggert  <eggert@twinsun.com>
59217
59218         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
59219
59220 2000-11-26  Jim Meyering  <meyering@lucent.com>
59221
59222         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
59223
59224 2000-11-22  Paul Eggert  <eggert@twinsun.com>
59225
59226         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
59227         size of (size_t) -1; it's not portable.
59228
59229 2000-11-17  Jim Meyering  <meyering@lucent.com>
59230
59231         * lib/strstr.c: Update from GNU libc.
59232
59233 2000-11-17  Akim Demaille  <akim@epita.fr>
59234
59235         * lib/obstack.h: Formatting changes.
59236         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
59237         prevent type checking.
59238         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
59239         cast the value to (void *): assigning a `foo *' to a `void *'
59240         variable is valid.
59241         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
59242
59243 2000-11-16  Jim Meyering  <meyering@lucent.com>
59244
59245         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
59246
59247 2000-11-11  Jim Meyering  <meyering@lucent.com>
59248
59249         * lib/error.c: Add a couple #includes, merging from GNU libc version.
59250
59251 2000-11-10  Jim Meyering  <meyering@lucent.com>
59252
59253         * lib/obstack.h: Update from GNU libc.
59254         * lib/obstack.c: Likewise.
59255
59256 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
59257
59258         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
59259
59260 2000-11-06  Paul Eggert  <eggert@twinsun.com>
59261
59262         * lib/getusershell.c (setusershell): Use rewind rather than
59263         fseek/fseeko, to avoid configuration hassles with fseeko.
59264         Don't bother opening SHELLS_FILE if shellstream is NULL;
59265         it's not necessary.
59266
59267 2000-11-05  Jim Meyering  <meyering@lucent.com>
59268
59269         * lib/makepath.h (make_dir): Declare.
59270         * lib/makepath.c (make_dir): Remove `static' attribute.
59271         Tweak a comment.
59272
59273 2000-11-04  Jim Meyering  <meyering@lucent.com>
59274
59275         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
59276
59277 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
59278
59279         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
59280         last one in a bucket, advance to the next bucket.
59281
59282 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
59283
59284         * lib/fnmatch.c: Do not comment out all the code if we are using
59285         the GNU C library, because in some cases we are replacing buggy
59286         code in the GNU C library itself.
59287
59288 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
59289
59290         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
59291         (regex_compile): Catch bogus \(\1\).
59292
59293 2000-10-30  Paul Eggert  <eggert@twinsun.com>
59294
59295         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
59296         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
59297         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
59298
59299 2000-10-30  Paul Eggert  <eggert@twinsun.com>
59300
59301         * lib/error.h, getline.h, modechange.h:
59302         Remove "2000" from Copyright line, as the file hasn't been
59303         changed this year other than in the copyright notice.
59304
59305         * lib/xalloc.h: Add "2000" to Copyright line, as this file
59306         was changed this year.
59307
59308 2000-10-29  Jim Meyering  <meyering@lucent.com>
59309
59310         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
59311         renaming.
59312         * m4/ls-mntd-fs.m4: Likewise
59313
59314 2000-10-29  Jim Meyering  <meyering@lucent.com>
59315
59316         * lib/xstat.in: Fix grammar in comment.
59317
59318 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
59319
59320         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
59321         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
59322         doesn't define __restrict_arr.
59323
59324 2000-10-28  Jim Meyering  <meyering@lucent.com>
59325
59326         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
59327         (jm_PREREQ_MEMCHR): New function.
59328
59329 2000-10-28  Jim Meyering  <meyering@lucent.com>
59330
59331         * lib/memchr.c: Update from libc.
59332         Adjust for portability:
59333         [HAVE_STDLIB_H]: Include stdlib.h.
59334         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
59335         Undef __memchr, too.
59336         [!weak_alias]: Define __memchr to memchr.
59337
59338         * lib/regex.c: Update from libc.
59339         * lib/regex.h: Likewise.
59340         * lib/getopt1.c: Likewise.
59341         * lib/memcmp.c: Likewise.
59342
59343         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
59344         Avoid using fseek, when possible -- it's broken by design.
59345         Patch by Ulrich Drepper.
59346
59347 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
59348
59349         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
59350         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
59351         Giving in to popular pressure to shut up the compiler with casts.
59352
59353 2000-10-26  Jim Meyering  <meyering@lucent.com>
59354
59355         * lib/strftime.c: Update from libc.
59356
59357 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
59358
59359         * regex.c: More `unsigned char' -> `re_char' changes.
59360         Also change several `int' into `re_wchar_t'.
59361         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
59362         (PUSH_FAILURE_POINTER): Don't cast any more.
59363         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
59364         We want GCC to complain, since this piece of code makes
59365         re_match non-reentrant, which *should* be fixed.
59366         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
59367         (EXTEND_BUFFER): Use RETALLOC.
59368         (SET_LIST_BIT): Don't cast.
59369         (re_wchar_t): New type.
59370         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
59371         that those two functions will always properly return.
59372         (IMMEDIATE_QUIT_CHECK): Cast to void.
59373         (analyse_first): Use recursion rather than an explicit stack.
59374         (re_compile_fastmap): Can't fail anymore.
59375         (re_search_2): Don't check re_compile_fastmap for failure.
59376         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
59377         Now also sets the new value (passed in a new argument).
59378         (re_match_2_internal): Use it.
59379         Also, use a new var `reg' of type size_t when looping through regs
59380         rather than reuse the inappropriate `mcnt'.
59381
59382 2000-10-25  Jim Meyering  <meyering@lucent.com>
59383
59384         * lib/obstack.c: Update from libc.
59385
59386 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
59387
59388         * regex.c (regex_compile): Change the way of handling a range from
59389         a char less than 256 to a char not less than 256.
59390
59391 2000-10-24  Andrew Innes  <andrewi@gnu.org>
59392
59393         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
59394         NT-Emacs only.
59395         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
59396         so that re_search functions only quit when callers expect them to.
59397
59398 2000-10-23  Jim Meyering  <meyering@lucent.com>
59399
59400         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
59401         wrong.  That set_locale call must not have any side effects.
59402         From Paul Eggert.
59403
59404 2000-10-22  Jim Meyering  <meyering@lucent.com>
59405
59406         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
59407         [CYCLIC]: Remove now-unused definition.
59408
59409         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
59410         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
59411         Suggestion from Ulrich Drepper.
59412
59413 2000-10-21  Jim Meyering  <meyering@lucent.com>
59414
59415         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
59416         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
59417         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
59418
59419 2000-10-21  Jim Meyering  <meyering@lucent.com>
59420
59421         * lib/dirname.c (memrchr): Declare if necessary.
59422         (dir_name): Remove the restriction that there be no
59423         trailing slashes.  Now, this code skips past them, effectively
59424         ignoring them.
59425         [TEST_DIRNAME] (main): New unit tests.
59426
59427         * lib/memrchr.c: New file from GNU libc.
59428         Undef __memrchr, too.
59429         [!weak_alias]: Define __memrchr to memrchr.
59430         Guard weak_alias use with `#ifdef weak_alias'.
59431
59432 2000-10-21  Jim Meyering  <meyering@lucent.com>
59433
59434         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
59435         (dir_name): Use dir_name_r.
59436         * lib/dirname.h (dir_name_r): Declare it.
59437
59438 2000-10-17  Jim Meyering  <meyering@lucent.com>
59439
59440         * lib/quote.h (PARAMS): Define and use.
59441         Reported by Akim Demaille.
59442
59443         * lib/getopt.c: Update from libc.
59444
59445 2000-10-16  Jim Meyering  <meyering@lucent.com>
59446
59447         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
59448         setlocale.
59449         From Jan Fedak.
59450
59451 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
59452
59453         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
59454
59455 2000-09-25  Jim Meyering  <meyering@lucent.com>
59456
59457         * lib/md5.h (rol): Define (from GnuPG).
59458
59459         * lib/sha.c: Give credit (GnuPG) where due.
59460         (M): Use rol rather than open-coding it.
59461         Add a FIXME comment.
59462
59463 2000-09-21  Jim Meyering  <meyering@lucent.com>
59464
59465         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
59466         Reported by Michael Stone.
59467
59468 2000-09-20  Jim Meyering  <meyering@lucent.com>
59469
59470         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
59471         (noinst_HEADERS): Add sha.h.
59472         Based on code from Scott G. Miller and from GnuPG.
59473
59474 2000-09-18  Jim Meyering  <meyering@lucent.com>
59475
59476         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
59477         LIBS. Otherwise, everyone ends up linking with -lelf for some
59478         configurations.
59479         Reported by Mike Stone.
59480
59481 2000-09-15  Jim Meyering  <meyering@lucent.com>
59482
59483         * lib/regex.c: Update from libc.
59484
59485 2000-09-10  Jim Meyering  <meyering@lucent.com>
59486
59487         * lib/getopt.c (_getopt_internal): Update from glibc.
59488
59489 2000-09-09  Jim Meyering  <meyering@lucent.com>
59490
59491         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
59492         think it should be used as a general replacement for isascii.
59493         * lib/fnmatch.c: Likewise.
59494         * lib/mbswidth.c: Likewise
59495         * lib/regex.c: Likewise.
59496
59497         Don't use atoi.
59498         * lib/userspec.c: Include sys/param.h and limits.h.
59499         Include xstrtol.h.
59500         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59501         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
59502         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
59503         UID, GID.  Check range.
59504
59505 2000-09-06  Jim Meyering  <meyering@lucent.com>
59506
59507         * lib/getopt.c (_getopt_internal): Update from glibc.
59508
59509 2000-08-30  Jim Meyering  <meyering@lucent.com>
59510
59511         * lib/strftime.c: Merge in changes from GNU libc.
59512
59513 2000-08-26  Jim Meyering  <meyering@lucent.com>
59514
59515         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
59516         * m4/fpending.m4: New file.
59517
59518 2000-08-26  Jim Meyering  <meyering@lucent.com>
59519
59520         * lib/closeout.c: Include "__fpending.h".
59521         (close_stdout_status): Return right away if there's nothing to flush.
59522
59523         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
59524         * lib/__fpending.c: New file.
59525         * lib/__fpending.h: New file.
59526
59527 2000-08-20  Jim Meyering  <meyering@lucent.com>
59528
59529         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
59530         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
59531         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
59532
59533 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
59534
59535         Improve fileutils installation on systems where running
59536         programs (like install) can't be unlinked.
59537         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
59538         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
59539
59540 2000-08-07  Paul Eggert  <eggert@twinsun.com>
59541
59542         Standardize on "memory exhausted" instead of "Memory exhausted"
59543         or "virtual memory exhausted".
59544         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
59545         "virtual memory exhausted".
59546         * lib/same.c (same_name): Invoke xalloc_die instead of printing
59547         our own message.
59548         * lib/userspec.c (parse_user_spec): Likewise.
59549         * lib/bumpalloc.h: comment fix
59550         * lib/same.c, userspec.c: Include xalloc.h.
59551
59552         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
59553         not char *const and pointing to a constant array.
59554         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
59555         (xrealloc): Comment fix.
59556
59557         * lib/userspec.c (parse_user_spec):
59558         Don't translate a message until just before returning,
59559         to avoid unnecessary translation.
59560
59561 2000-08-07  Jim Meyering  <meyering@lucent.com>
59562
59563         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
59564         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
59565         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
59566         getgroups.c, gethostname.c, getopt.h, group-member.c,
59567         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
59568         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
59569         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
59570         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
59571         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
59572         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
59573         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
59574         yesno.c: Back out Copyright date changes for each file with no change
59575         this year.  This eases coordination with other programs using the same
59576         source code modules.  From Paul Eggert.
59577
59578 2000-08-06  Paul Eggert  <eggert@twinsun.com>
59579
59580         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
59581         not char, for compatibility with glibc 2.1.3 strftime.c.
59582
59583 2000-08-03  Greg McGary  <greg@mcgary.org>
59584
59585         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
59586         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
59587         (EXTEND_BUFFER): Use them.
59588
59589 2000-08-01  Jim Meyering  <meyering@lucent.com>
59590
59591         * lib/dirname.c (ISSLASH): Define.
59592         (BACKSLASH_IS_PATH_SEPARATOR): Define.
59593         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
59594         both `\' and `/' may be use as path separators.
59595         Based on a patch from Prashant TR.
59596
59597 2000-07-31  Paul Eggert  <eggert@twinsun.com>
59598
59599         * lib/quotearg.c (quotearg_n_options): Don't make the initial
59600         slot vector a constant, since it might get modified.
59601
59602 2000-07-31  Jim Meyering  <meyering@lucent.com>
59603
59604         * lib/xmalloc.c: Use `virtual memory exhausted', not
59605         `Memory exhausted'.
59606         * lib/obstack.c (print_and_abort): Likewise.
59607
59608 2000-07-30  Paul Eggert  <eggert@twinsun.com>
59609
59610         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
59611         buffer, so that the caller can always quote one small
59612         component of a "memory exhausted" message in slot 0.
59613         From a suggestion by Jim Meyering.
59614
59615 2000-07-30  Jim Meyering  <meyering@lucent.com>
59616
59617         * lib/makepath.c (make_path): Quote the other instance, too.
59618
59619         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
59620         (STATIC_BUF_SIZE): Define.
59621         (quotearg_n_options): Use only statically allocated storage when
59622         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
59623         than STATIC_BUF_SIZE.
59624
59625 2000-07-29  Jim Meyering  <meyering@lucent.com>
59626
59627         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
59628         * lib/dirname.c (dir_name): Likewise.
59629
59630         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
59631         `/'.
59632
59633         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
59634         (dir_name): Assert that there are no trailing slashes.
59635
59636 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
59637
59638         * lib/mbswidth.h (mbswidth): Add a flags argument.
59639         (mbswidth): New declaration.
59640         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
59641         * lib/mbswidth.c (mbswidth): Add a flags argument.
59642         (mbsnwidth): New function.
59643
59644 2000-07-24  Jim Meyering  <meyering@lucent.com>
59645
59646         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
59647
59648 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59649
59650         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
59651
59652 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59653
59654         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
59655         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
59656         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
59657         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
59658         invoke multibyte primitives.
59659
59660 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59661
59662         * lib/quotearg.c:
59663         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
59664         so that mbstate_t is always defined.
59665
59666         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
59667         be 1 in at least one GCC installation, and this configuration
59668         error is likely to be common.  Ignoring MB_LEN_MAX hurts
59669         performance on hosts that have mbrtowc but have only unibyte
59670         locales, but I assume these hosts are rare.
59671
59672 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59673
59674         * lib/mbswidth.c (_XOPEN_SOURCE):
59675         Don't define; this causes problems on Solaris 7.
59676         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
59677
59678 2000-07-23  Jim Meyering  <meyering@lucent.com>
59679
59680         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
59681         too: getgrgid, getpwuid, getuid.
59682
59683 2000-07-23  Jim Meyering  <meyering@lucent.com>
59684
59685         * lib/basename.c (base_name): Add an assertion.
59686
59687 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
59688
59689         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
59690         shadow its mbsinit function.
59691
59692 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
59693
59694         * lib/mbswidth.h: New file.
59695         * lib/mbswidth.c: New file.
59696         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
59697         (noinst_HEADERS): Add mbswidth.h.
59698
59699 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
59700
59701         * lib/config.charset: Add support for FreeBSD. Improve support for
59702         HP-UX and IRIX 6.
59703
59704 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
59705
59706         * m4/mbswidth.m4: New file.
59707         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
59708
59709 2000-07-15  Jim Meyering  <meyering@lucent.com>
59710
59711         * lib/makepath.c: Include quote.h.
59712         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
59713         corresponding argument in a `quote (...)' call.
59714         Give better diagnostics.
59715
59716         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
59717         (noinst_HEADERS): Add quote.h.
59718
59719         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
59720         from tar's src/misc.c.
59721         * lib/quote.h: New file.  Prototypes for same.
59722
59723 2000-07-14  Paul Eggert  <eggert@twinsun.com>
59724
59725         From a suggestion by Bruno Haible.
59726         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
59727         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
59728         to decide whether to define the BeOS workaround macro;
59729         this adjusts to the change to AC_MBSTATE_T.
59730
59731 2000-07-14  Jim Meyering  <meyering@lucent.com>
59732
59733         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
59734         jm_AC_TYPE_UINTMAX_T.
59735
59736 2000-07-13  Paul Eggert  <eggert@twinsun.com>
59737
59738         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
59739
59740         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
59741         quotearg_buffer_restyled): Add support for
59742         clocale_quoting_style.  Undo previous change to
59743         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
59744         and "{RIGHT QUOTATION MARK}" msgids.
59745
59746 2000-07-10  Paul Eggert  <eggert@twinsun.com>
59747
59748         From a suggestion by Bruno Haible.
59749         * m4/mbstate_t.m4 (AC_MBSTATE_T):
59750         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
59751         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
59752         and mbstate_t, to a single-part test that simply defines mbstate_t.
59753         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
59754         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
59755
59756 2000-07-10  Jim Meyering  <meyering@lucent.com>
59757
59758         * m4/strerror_r.m4: Mirror the correction made in autoconf.
59759
59760         * m4/gnu-source.m4: Output to confdefs.h directly.
59761         Suggestion from Akim Demaille.
59762
59763 2000-07-09  Paul Eggert  <eggert@twinsun.com>
59764
59765         The old behavior of quoting `like this' doesn't look good with
59766         newer, ISO-style fonts.  See:
59767         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
59768
59769         Instead, quote "like this" by default.  Let the translator
59770         tailor the locale-specific quoting behavior by providing
59771         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
59772
59773         * lib/quotearg.c (N_): New macro.
59774         (gettext_default): New function.
59775         (quotearg_buffer_restyled): Use
59776         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
59777         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
59778
59779 2000-07-09  Jim Meyering  <meyering@lucent.com>
59780
59781         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
59782         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
59783
59784         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
59785         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
59786
59787 2000-07-09  Jim Meyering  <meyering@lucent.com>
59788
59789         * lib/Most files: Update copyright dates to include 2000.
59790
59791 2000-07-08  Jim Meyering  <meyering@lucent.com>
59792
59793         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
59794         if not defined.
59795         (xgethostname): Remove now-unnecessary #ifdef.
59796         Move declaration of `err' into loop where it's used.
59797
59798 2000-07-05  Paul Eggert  <eggert@twinsun.com>
59799         and Bruno Haible  <haible@clisp.cons.org>
59800
59801         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
59802         only if the test for an object-type mbstate_t fails.  This
59803         prevents us from mistakenly reporting that mbstate_t is a
59804         system object type after we "#define mbstate_t int" to work
59805         around its lack.
59806
59807 2000-07-05  Paul Eggert  <eggert@twinsun.com>
59808         and Bruno Haible  <haible@clisp.cons.org>
59809
59810         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
59811
59812 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
59813
59814         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
59815         to strerror_r.
59816         Include <ctype.h> for use of isalpha.
59817
59818 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
59819
59820         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
59821         by allocating a larger buffer. Test the gethostname return value for
59822         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
59823         returns an error and ENAMETOOLONG isn't defined.
59824
59825 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
59826
59827         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
59828         dimension.
59829
59830 2000-07-04  Jim Meyering  <meyering@lucent.com>
59831
59832         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
59833         of the deprecated AC_CHECKING.
59834
59835 2000-07-04  Jim Meyering  <meyering@lucent.com>
59836
59837         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
59838         Reported by Bruno Haible.
59839
59840 2000-07-04  Jim Meyering  <meyering@lucent.com>
59841
59842         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
59843         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
59844         lacks mbrtowc.
59845
59846 2000-07-03  Paul Eggert  <eggert@twinsun.com>
59847
59848         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
59849         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
59850
59851 2000-07-03  Paul Eggert  <eggert@twinsun.com>
59852         and Bruno Haible  <haible@clisp.cons.org>
59853
59854         * lib/quotearg.c (mbrtowc):
59855         Assign to *pwc, and return 1 only if result is nonzero.
59856         (iswprint): Use ISPRINT when substituting our own mbrtowc.
59857
59858 2000-07-03  Jim Meyering  <meyering@lucent.com>
59859
59860         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
59861
59862 2000-07-03  Jim Meyering  <meyering@lucent.com>
59863
59864         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
59865         This is necessary to get a definition of e.g., UTMP_FILE on
59866         HP-UX 10.20.
59867         From Bob Proulx.
59868
59869 2000-07-02  Jim Meyering  <meyering@lucent.com>
59870
59871         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
59872
59873         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
59874         AC_LIBOBJ(function_name).
59875         * m4/chown.m4: Likewise.
59876         * m4/fnmatch.m4: Likewise.
59877         * m4/ftruncate.m4: Likewise.
59878         * m4/getgroups.m4: Likewise.
59879         * m4/getline.m4: Likewise.
59880         * m4/group-member.m4: Likewise.
59881         * m4/jm-macros.m4: Likewise.
59882         * m4/lstat.m4: Likewise.
59883         * m4/malloc.m4: Likewise.
59884         * m4/memcmp.m4: Likewise.
59885         * m4/nanosleep.m4: Likewise.
59886         * m4/putenv.m4: Likewise.
59887         * m4/realloc.m4: Likewise.
59888         * m4/regex.m4: Likewise.
59889         * m4/stat.m4: Likewise.
59890         * m4/strftime.m4: Likewise.
59891
59892 2000-07-02  Jim Meyering  <meyering@lucent.com>
59893
59894         * lib/quotearg.c (mbstate_t): Don't define here.
59895
59896 2000-07-02  Jim Meyering  <meyering@lucent.com>
59897
59898         * lib/nanosleep.c (SIGCONT): Define if not already defined.
59899
59900 2000-07-01  Jim Meyering  <meyering@lucent.com>
59901
59902         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
59903
59904 2000-07-01  Jim Meyering  <meyering@lucent.com>
59905
59906         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
59907         problem.
59908
59909 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
59910
59911         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
59912         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
59913
59914 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
59915
59916         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
59917         per change in ../m4/ls-mntd-fs.m4.
59918         (read_filesystem_list): Ignore symbolic links.
59919
59920 2000-06-29  Jim Meyering  <meyering@lucent.com>
59921
59922         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
59923         for declaration of strcmp.
59924
59925         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
59926
59927         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
59928         Avoid warning by casting result to `char *' to remove `const'.
59929
59930 2000-06-28  Jim Meyering  <meyering@lucent.com>
59931
59932         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
59933         included by quotearg.c, for which we perform this test.  From
59934         Bruno Haible.
59935
59936 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
59937
59938         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
59939         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
59940         <utmpx.h> exists, put readutmp.o into LIBOBJS.
59941
59942 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
59943
59944         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
59945
59946 2000-06-26  Paul Eggert  <eggert@twinsun.com>
59947
59948         savedir now sets errno on failure and invokes xmalloc to get memory.
59949         Fix a couple of other minor bugs while we're at it.
59950
59951         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
59952         (NAMLEN): Remove macro.
59953         (malloc, realloc): Remove decls.
59954         (stpcpy): Likewise.
59955         ("xalloc.h"): Include.
59956         (NAME_SIZE_DEFAULT): New macro.
59957         (savedir): Use xmalloc / xrealloc to allocate memory.
59958         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
59959         Skip "" directory entries.
59960         Use strlen to calculate directory entry length, since the old method
59961         is rarely used these days and isn't worth supporting.
59962         Don't use a pointer after freeing it.
59963         Check for integer overflow when calculating allocation size.
59964         Use memcpy to copy entries, instead of stpcpy.
59965         Set errno properly when returning NULL.
59966         Check for readdir error.
59967
59968 2000-06-26  Jim Meyering  <meyering@lucent.com>
59969
59970         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
59971
59972 2000-06-25  Jim Meyering  <meyering@lucent.com>
59973
59974         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
59975         Linux header bug when _XOPEN_SOURCE is defined to 500.
59976
59977 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
59978
59979         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
59980         deficiency.
59981
59982 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
59983
59984         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
59985         Include xalloc.h.
59986         Don't include <stdlib.h>.  Don't declare malloc, realloc.
59987
59988 2000-06-24  Jim Meyering  <meyering@lucent.com>
59989
59990         * m4/strerror_r.m4: Revive this file -- to try out an experimental
59991         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
59992         for which strerror does return char*, but which lacks a conveniently
59993         accessible declaration of the function.  If the compile-test says
59994         strerror_r doesn't work, then resort to a `run'-test that works on
59995         BeOS and segfaults on DEC Unix.
59996
59997 2000-06-24  Jim Meyering  <meyering@lucent.com>
59998
59999         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
60000
60001 2000-06-23  Paul Eggert  <eggert@twinsun.com>
60002
60003         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
60004         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
60005
60006 2000-06-23  Paul Eggert  <eggert@twinsun.com>
60007
60008         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
60009         (mbrtowc, mbstate_t): Define substitutes if
60010         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
60011         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
60012         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
60013
60014 2000-06-23  Jim Meyering  <meyering@lucent.com>
60015
60016         * m4/afs.m4: Add missing AC_MSG_RESULT.
60017         Reported by Bruno Haible.
60018
60019         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
60020         Suggestion from Bruno Haible.
60021
60022 2000-06-23  Jim Meyering  <meyering@lucent.com>
60023
60024         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
60025
60026 2000-06-21  Jim Meyering  <meyering@lucent.com>
60027
60028         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
60029
60030 2000-06-21  Jim Meyering  <meyering@lucent.com>
60031
60032         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
60033         (noinst_HEADERS): Add getstr.h.
60034
60035         * lib/getline.c (getstr): Move into a separate file.
60036         * lib/getstr.c (getstr): New file, extracted from getline.c, with
60037         the following changes: new parameter, delim2; both delim[12]
60038         parameters have type `int', not `char'.  The latter would lose
60039         with 8-bit delimiters.
60040         * lib/getstr.h: New file.
60041
60042 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
60043
60044         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
60045         than 1024, return a memory chunk of least possible size, instead
60046         of size PATH_MAX + 2. In the loop, increment the size proportionally.
60047         Use free/xmalloc instead of xrealloc to avoid copying for very long
60048         paths.
60049
60050 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
60051
60052         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
60053         the empty string.
60054
60055 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
60056
60057         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
60058         address, not strdup.  Include <stdlib.h> and don't declare free().
60059
60060 2000-06-19  Jim Meyering  <meyering@lucent.com>
60061
60062         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
60063
60064 2000-06-18  Jim Meyering  <meyering@lucent.com>
60065
60066         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
60067
60068         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
60069         `checking whether...' message to be consistent with that of the
60070         lstat test.
60071
60072 2000-06-18  Jim Meyering  <meyering@lucent.com>
60073
60074         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
60075         Besides, these days every porting target provides a mkdir function.
60076
60077         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
60078         needed. (this snippet comes from src/system.h).
60079
60080 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
60081
60082         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
60083
60084 2000-06-15  Paul Eggert  <eggert@twinsun.com>
60085
60086         * lib/human.c (adjust_value): New function.
60087         (human_readable_inexact): Apply rounding style even when
60088         printing approximate values.
60089
60090 2000-06-14  Paul Eggert  <eggert@twinsun.com>
60091
60092         * lib/human.c (human_readable_inexact): Allow an input block
60093         size that is not a multiple of the output block size, and vice versa.
60094         Reported by Piergiorgio Sartor.
60095
60096 2000-06-14  Paul Eggert  <eggert@twinsun.com>
60097
60098         * lib/getdate.y (get_date): Apply relative times after time
60099         zone indicator, not before.  Reported by Todd A. Jacobs.
60100
60101 2000-06-13  Jim Meyering  <meyering@lucent.com>
60102
60103         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
60104
60105         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
60106
60107 2000-06-12  Paul Eggert  <eggert@twinsun.com>
60108
60109         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
60110
60111 2000-06-12  Jim Meyering  <meyering@lucent.com>
60112
60113         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
60114         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
60115         optional argument.
60116         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
60117         the optional argument, `lib'.
60118
60119 2000-06-08  Jim Meyering  <meyering@lucent.com>
60120
60121         * m4/largefile.m4: Remove file (now that it's part of autoconf).
60122
60123 2000-06-04  Paul Eggert  <eggert@twinsun.com>
60124
60125         Rewrite largefile configuration so that we don't need to run
60126         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
60127         AC_CANONICAL_HOST in configure.in -- jmm]
60128
60129         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
60130         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
60131         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
60132         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
60133         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
60134         All uses changed.
60135         Instead of inspecting the output of getconf, try to compile the
60136         test program without and with the macro definition.
60137         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
60138         for getconf.  Instead, check for the needed flags by compiling
60139         test programs.
60140
60141 2000-06-04  Paul Eggert  <eggert@twinsun.com>
60142
60143         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
60144
60145 2000-06-04  Jim Meyering  <meyering@lucent.com>
60146
60147         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
60148         SunOS 4.1.4 for which gid_t is an unsigned type.
60149
60150 2000-06-03  Jim Meyering  <meyering@lucent.com>
60151
60152         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
60153         now that autoconf requires that.
60154
60155         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
60156         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
60157         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
60158
60159 2000-06-03  Jim Meyering  <meyering@lucent.com>
60160
60161         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
60162
60163 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
60164
60165         * m4/glibc21.m4: New file.
60166         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
60167
60168 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
60169
60170         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
60171         newer, don't install charset.alias.
60172         * lib/config.charset: Change the Linux/glibc rules so they become empty
60173         on glibc-2.1 or newer.
60174
60175 2000-06-02  Jim Meyering  <meyering@lucent.com>
60176
60177         * lib/mountlist.c: Back out last change.  Instead, do this...
60178         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
60179         me_dummy member using the same `ignore'-testing code.
60180         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
60181         fs_type strings.
60182         From Mark D. Roth.
60183
60184 2000-05-29  Jim Meyering  <meyering@lucent.com>
60185
60186         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
60187         mounts with the `ignore' attribute.  Based on a patch from
60188         Mark D. Roth.
60189
60190 2000-05-28  Jim Meyering  <meyering@lucent.com>
60191
60192         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
60193         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60194         * m4/stat.m4: Likewise.
60195         * m4/lstat.m4: Likewise.
60196         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
60197
60198         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
60199         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
60200
60201 2000-05-26  Jim Meyering  <meyering@lucent.com>
60202
60203         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
60204
60205 2000-05-24  Jim Meyering  <meyering@lucent.com>
60206
60207         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
60208         autoconf requires that.
60209         * m4/lib-check.m4: Likewise.
60210         * m4/jm-macros.m4: Likewise.
60211         * m4/strftime.m4: Likewise.
60212
60213         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
60214         AC_CHECK_DECLS, now that autoconf requires that.
60215
60216 2000-05-22  Jim Meyering  <meyering@lucent.com>
60217
60218         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60219         * m4/lstat.m4: Likewise.
60220
60221 2000-05-22  Jim Meyering  <meyering@lucent.com>
60222
60223         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
60224
60225 2000-05-20  Jim Meyering  <meyering@lucent.com>
60226
60227         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
60228         (jm_PREREQ): Use it.
60229
60230 2000-05-18  Jim Meyering  <meyering@lucent.com>
60231
60232         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
60233         back, too, since it may have been modified by allocate_entry.
60234         (hash_delete): Rewrite to use neither the assignment operator
60235         nor the comma operator in an if-expression.
60236
60237 2000-05-15  Paul Eggert  <eggert@twinsun.com>
60238
60239         * lib/closeout.c:
60240         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
60241         Remove; no longer needed.
60242         "quotearg.h": Add include.
60243         (file_name): Do not bother to explicitly initialize to NULL; it's less
60244         efficient on some hosts.
60245         (close_stdout_status): Remove test as to whether stdout was already
60246         closed; it breaks for the case "echo x | sort >&-".
60247         Quote file name colons.
60248         Do not assume that _("write error") lacks format strings.
60249
60250 2000-05-15  Jim Meyering  <meyering@lucent.com>
60251
60252         * lib/version-etc.c (version_etc_copyright): Update the copyright
60253         string used in all --version output.
60254
60255 2000-05-14  Jim Meyering  <meyering@lucent.com>
60256
60257         * lib/closeout.c (close_stdout_set_file_name): New function.
60258         (close_stdout_status): Use new file-scoped global.
60259         Return right away if fstat says the stdout file descriptor is invalid.
60260         * lib/closeout.h (close_stdout_set_file_name): Declare.
60261
60262 2000-05-10  Jim Meyering  <meyering@lucent.com>
60263
60264         * lib/closeout.c [default_exit_status]: New file-scoped variable.
60265         (close_stdout_set_status): New function.
60266         * lib/closeout.h (close_stdout_set_status): Declare.
60267
60268 2000-05-09  Jim Meyering  <meyering@lucent.com>
60269
60270         * m4/gettext.m4: Rename this...
60271         * m4/libintl.m4: ...to this.
60272
60273 2000-05-08  Jim Meyering  <meyering@lucent.com>
60274
60275         * lib/long-options.c: Don't include closeout.h.
60276         (parse_long_options): Don't call close_stdout for --version.
60277
60278 2000-05-06  Paul Eggert  <eggert@twinsun.com>
60279
60280         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
60281         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
60282         2.1.3 bug.  This avoids a clash when files like regex.c define
60283         _GNU_SOURCE.
60284
60285 2000-05-06  Jim Meyering  <meyering@lucent.com>
60286
60287         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
60288         (AC_REPLACE_FUNCS): Add strnlen.
60289
60290         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
60291         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
60292
60293         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
60294         AC_SEARCH_LIBS call for nanosleep.
60295         (LIB_NANOSLEEP): Set and AC_SUBST.
60296
60297 2000-05-06  Jim Meyering  <meyering@lucent.com>
60298
60299         * lib/strnlen.c: Undefine __strnlen and strnlen.
60300         [!weak_alias]: Define __strnlen to strnlen.
60301
60302         * lib/atexit.c: New file, from libiberty.
60303
60304 2000-05-06  Jim Meyering  <meyering@lucent.com>
60305
60306         * lib/closeout.c (close_stdout_status): Also check for errors on the
60307         stderr stream.
60308
60309 2000-05-05  Jim Meyering  <meyering@lucent.com>
60310
60311         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
60312         AC_SEARCH_LIBS call for clock_gettime.
60313         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
60314
60315         * m4/search-libs.m4: Update from autoconf.
60316
60317         su doesn't work on Solaris 2.6.
60318         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
60319         <shadow.h>.  Reported by Dragos Harabor.
60320
60321 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
60322
60323         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
60324         memcpy instead of xmalloc, xrealloc, path_concat.
60325         (locale_charset): Treat empty environment variables as absent.
60326         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
60327
60328 2000-05-04  Jim Meyering  <meyering@lucent.com>
60329
60330         * lib/getopt.c: Update from glibc.
60331         * lib/obstack.c: Likewise.
60332         * lib/obstack.h: Likewise.
60333         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
60334         file
60335
60336         * lib/regex.h: Likewise.
60337         * lib/strndup.c: Likewise.
60338         * lib/strnlen.c: New file, from glibc.
60339
60340 2000-05-03  Jim Meyering  <meyering@lucent.com>
60341
60342         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
60343
60344 2000-05-02  Paul Eggert  <eggert@twinsun.com>
60345
60346         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
60347         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
60348         compile-time test, rather than inspecting host and OS, to
60349         decide whether to define _LARGEFILE_SOURCE.
60350
60351 2000-05-01  Jim Meyering  <meyering@lucent.com>
60352
60353         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
60354
60355         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
60356         Based on a patch from Bruno Haible.
60357
60358 2000-05-01  Jim Meyering  <meyering@lucent.com>
60359
60360         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
60361
60362 2000-04-29  Jim Meyering  <meyering@lucent.com>
60363
60364         * lib/path-concat.c: Declare strdup only if it's not defined.
60365         * lib/canon-host.c: Likewise.
60366
60367 2000-04-28  Jim Meyering  <meyering@lucent.com>
60368
60369         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
60370         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
60371         is included first, then limits.h is included by locale.h by libintl.h.
60372         From John David Anglin.
60373
60374 2000-04-25  Jim Meyering  <meyering@lucent.com>
60375
60376         * lib/makepath.c (S_IRWXUGO): Define.
60377         (make_path): Always perform explicit chmod if MODE specifies any
60378         of the `special' permission bits.  Prompted by a bug report against
60379         install from Mate Wierdl and Joost van Baal.
60380
60381 2000-04-18  Jim Meyering  <meyering@lucent.com>
60382
60383         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
60384         (jm_PREREQ): Use it.
60385
60386 2000-04-18  Jim Meyering  <meyering@lucent.com>
60387
60388         * lib/README: New file.
60389
60390         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
60391         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
60392
60393 2000-04-17  Jim Meyering  <meyering@lucent.com>
60394
60395         Get it right :-)
60396         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
60397         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
60398         Suggestion from Akim Demaille.
60399
60400 2000-04-17  Jim Meyering  <meyering@lucent.com>
60401
60402         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
60403         the definition of it to rpl_strftime also defined-away the system's
60404         declaration.
60405
60406 2000-04-15  Jim Meyering  <meyering@lucent.com>
60407
60408         Use `C' to denote so-called `contiguous' files, the same way
60409         that tar does.
60410         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
60411         (ftypelet): Use S_ISCTG.
60412         From Michael Deutschmann.
60413
60414 2000-04-14  Jim Meyering  <meyering@lucent.com>
60415
60416         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
60417         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
60418         clobbered.
60419
60420 2000-04-14  Jim Meyering  <meyering@lucent.com>
60421
60422         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
60423
60424 2000-04-13  Jim Meyering  <meyering@lucent.com>
60425
60426         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
60427         AH_VERBATIM to insert required #ifndef into config.h.in.
60428         Suggestion from Akim Demaille.
60429
60430 2000-04-12  Jim Meyering  <meyering@lucent.com>
60431
60432         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
60433         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
60434         Christian Krackowizer.
60435
60436         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
60437         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
60438         (AC_SYS_LARGEFILE): Require.
60439         (AM_C_PROTOTYPES): Require.
60440
60441 2000-04-08  Jim Meyering  <meyering@lucent.com>
60442
60443         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
60444         names don't conflict.  Reported by Eli Zaretskii.
60445
60446 2000-04-07  Jim Meyering  <meyering@lucent.com>
60447
60448         * lib/putenv.c: Move inclusion of errno.h so it follows that of
60449         sys/types.h, to work around system header problems on AIX 3.2.5.
60450         From Bruno Haible.
60451
60452 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
60453
60454         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
60455         bug.  Deal with the different error behavior of Irix iconv.
60456
60457 2000-04-05  Paul Eggert  <eggert@twinsun.com>
60458
60459         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
60460         IRIX if the installer said otherwise.
60461
60462 2000-04-05  Jim Meyering  <meyering@lucent.com>
60463
60464         Portability tweaks required for ultrix4.3.
60465         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
60466         (jm_CHECK_DECLS): Add getutent to the list of functions.
60467         (_jm_DECL_HEADERS): Add utmpx.h.
60468         From John David Anglin.
60469
60470         * m4/strftime.m4: Back out the 2000-04-02 change.
60471         Instead of that change, simply undefine putenv in the test program.
60472
60473 2000-04-05  Jim Meyering  <meyering@lucent.com>
60474
60475         Portability tweaks required for ultrix4.3.
60476         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
60477         getutent.
60478         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
60479         * lib/canon-host.c: Declare strdup.
60480         * lib/path-concat.c: Likewise.
60481         From John David Anglin.
60482
60483 2000-04-04  Jim Meyering  <meyering@lucent.com>
60484
60485         Be more DOS 8.3-friendly.
60486         * lib/ref-add.sin: Renamed from ref-add.sed.in.
60487         * lib/ref-del.sin: Renamed from ref-del.sed.in.
60488         * lib/Makefile.am: Reflect renaming.
60489         Reported by Eli Zaretskii.
60490
60491         Use a temporary file name that won't clash with `charset.alias'
60492         in the DOS 8.3 name space.
60493         * lib/Makefile.am (charset_tmp): Define.
60494         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
60495         (uninstall-local): Likewise.
60496         Reported by Eli Zaretskii.
60497
60498 2000-04-03  Jim Meyering  <meyering@lucent.com>
60499
60500         * m4/gettext.m4: Fix typo in comment.
60501
60502         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
60503         textutils/configure.in).  Suggestion from Paul Eggert.
60504         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
60505
60506 2000-04-02  Paul Eggert  <eggert@twinsun.com>
60507
60508         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
60509         variable in the shell rather than using putenv, which isn't
60510         portable.  This avoids the configure-time inter-test dependency
60511         on the potentially-renamed putenv function.
60512
60513 2000-03-30  Paul Eggert  <eggert@twinsun.com>
60514
60515         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
60516         before checking struct stat.st_blksize, so that
60517         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
60518
60519 2000-03-29  Paul Eggert  <eggert@twinsun.com>
60520
60521         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
60522         since strftime.c uses HAVE_STRFTIME to decide whether to use
60523         the underlying strftime.
60524
60525 2000-03-29  Paul Eggert  <eggert@twinsun.com>
60526
60527         * lib/time/strftime.c (my_strftime): Make sure we call the system
60528         strftime, not ourselves, when invoking the underlying strftime.
60529
60530 2000-03-24  Jim Meyering  <meyering@lucent.com>
60531
60532         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
60533         (charset_alias): Define.
60534         (install-exec-local): Factor out common code.
60535         (uninstall-local): Split lines longer than 80.
60536         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
60537         (SUFFIXES): Define.
60538         (.sed.in.sed): New rule.  Don't redirect directly to $@.
60539         (CLEANFILES): Add ref-add.sed and ref-del.sed.
60540
60541 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
60542
60543         * lib/config.charset: Output a line containing "Packages using this
60544         file".
60545         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
60546         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
60547         ref-del.sed): New rules.
60548
60549 2000-03-17  Jim Meyering  <meyering@lucent.com>
60550
60551         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
60552         Otherwise, include <strings.h>
60553
60554 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
60555
60556         * lib/unicodeio.c (utf8_wctomb): New function.
60557         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
60558         format instead of in UCS-4 with platform dependent endianness.
60559
60560 2000-03-10  Jim Meyering  <meyering@lucent.com>
60561
60562         * m4/lib-check.m4: Look for getspnam in -lgen, too.
60563         From Marco Franzen.
60564
60565 2000-03-07  Paul Eggert  <eggert@twinsun.com>
60566
60567         * lib/savedir.c (savedir): Work even if directory size is
60568         negative; this can happen with some screwy NFS configurations.
60569
60570 2000-03-06  Jim Meyering  <meyering@lucent.com>
60571
60572         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
60573         if it's NULL (because we ran out of memory).  From Bruno Haible.
60574
60575 2000-03-05  Jim Meyering  <meyering@lucent.com>
60576
60577         * lib/localcharset.c ("path-concat.h"): Include.
60578         (get_charset_aliases): Use path_concat instead of ANSI string
60579         concatenation.
60580
60581         * lib/unicodeio.h (PARAMS): Define.
60582         Use it to guard prototype.
60583
60584 2000-03-04  Jim Meyering  <meyering@lucent.com>
60585
60586         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
60587         for lib/localcharset.c.
60588
60589 2000-03-04  Jim Meyering  <meyering@lucent.com>
60590
60591         * lib/Makefile.am (install-exec-local): Create $(libdir) before
60592         installing into it.
60593         (uninstall-local): Uncomment this rule so `make distcheck' works
60594         once again.
60595
60596         * lib/unicodeio.c (<errno.h>): Include it.
60597         (errno): Declare if not defined.
60598
60599         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
60600
60601         * lib/config.charset: New version, incorporating remarks from a linux
60602         i18n mailing list.  From Bruno Haible.
60603
60604 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
60605
60606         * m4/codeset.m4: New file.
60607         * m4/iconv.m4: New file.
60608         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
60609
60610 2000-03-03  Jim Meyering  <meyering@lucent.com>
60611
60612         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
60613
60614 2000-03-02  Jim Meyering  <meyering@lucent.com>
60615
60616         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
60617         the messages come out on separate lines.
60618
60619         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
60620         rather than jm_CHECK_DECLARATIONS.
60621         * m4/decl.m4: Remove now-unused file.
60622
60623         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
60624         geteuid.
60625
60626 2000-03-02  Jim Meyering  <meyering@lucent.com>
60627
60628         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
60629
60630 2000-03-01  Jim Meyering  <meyering@lucent.com>
60631
60632         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
60633         * lib/unicodeio.c: Likewise.
60634
60635 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
60636
60637         * lib/config.charset: New file.
60638         * lib/localcharset.c: New file.
60639         * lib/unicodeio.h, lib/unicodeio.c: New files.
60640         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
60641         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
60642         (noinst_HEADERS): Add unicodeio.h.
60643         (all-local, install-exec-local, charset.alias): New targets.
60644
60645 2000-02-28  Paul Eggert  <eggert@twinsun.com>
60646
60647         * lib/quotearg.c (ALERT_CHAR): New macro.
60648         (quotearg_buffer_restyled): Use it.
60649
60650 2000-02-27  Jim Meyering  <meyering@lucent.com>
60651
60652         * m4/check-decl.m4: Add getenv to the list.
60653
60654 2000-02-27  Jim Meyering  <meyering@lucent.com>
60655
60656         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
60657         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
60658
60659         * lib/backupfile.c: Guard inclusion of stdlib.h with
60660         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
60661         Declare malloc if needed.
60662
60663         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
60664         `#ifndef HAVE_DECL..'
60665         now that autoconf always defines the HAVE_DECL_ symbols.
60666         * lib/human.c: Likewise.
60667         * lib/same.c: Likewise.
60668         * lib/strtoumax.c: Likewise.
60669
60670         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
60671         declaration check was not run.
60672         * lib/hash.c: Likewise.
60673         * lib/human.c: Likewise.
60674         * lib/same.c: Likewise.
60675         * lib/strtoumax.c: Likewise.
60676
60677         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
60678         `.', then first look up the entire `.'-containing string as a login
60679         name.
60680
60681 2000-02-23  Jim Meyering  <meyering@lucent.com>
60682
60683         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
60684         in place of my hack.
60685
60686 2000-02-18  Paul Eggert  <eggert@twinsun.com>
60687
60688         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
60689         (textint): New typedef.
60690         (parser_control): Member year changed from int to textint.
60691         All uses changed.
60692         (YYSTYPE): Removed; replaced by %union with int and textint members.
60693         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
60694         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
60695         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
60696         (tSNUMBER, tUNUMBER): Now of type <textintval>.
60697         (date, number, to_year): Use width of number in digits, not its value,
60698         to determine whether it's a 2-digit year, or a 2-digit time.
60699         (yylex): Store number of digits of numeric tokens.
60700         Reported by John Kendall.
60701
60702         (parser_control): Changed from struct parser_control to typedef (for
60703         consistency).  All uses changed.
60704
60705         (tID): Removed; not used.
60706         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
60707
60708 2000-02-14  Paul Eggert  <eggert@twinsun.com>
60709
60710         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
60711         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
60712
60713 2000-02-12  Jim Meyering  <meyering@lucent.com>
60714
60715         * lib/userspec.c (ISDIGIT): Define it.
60716         (isdigit): Remove definition.
60717         (is_number): Use ISDIGIT, not isdigit.
60718         <libintl.h>: Include.
60719         (_ and N_): Define.
60720         (parse_user_spec): Mark translatable strings.
60721
60722 2000-02-10  Jim Meyering  <meyering@lucent.com>
60723
60724         With these changes, nanosleep.[ch] are finally enough like the other
60725         lib/* replacement files to compile on a few more losing systems.
60726
60727         * lib/nanosleep.h: Don't include config.h.
60728         Remove prototype from declaration of nanosleep.
60729         (PARAMS): Remove now-unneeded definition.
60730         * lib/nanosleep.c: #undef nanosleep.
60731         (rpl_nanosleep): Rename from nanosleep.
60732
60733 2000-02-10  Jim Meyering  <meyering@lucent.com>
60734
60735         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
60736         gnu_nanosleep to rpl_nanosleep.
60737
60738 2000-02-09  Jim Meyering  <meyering@lucent.com>
60739
60740         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
60741         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
60742
60743 2000-02-08  Akim Demaille  <akim@epita.fr>
60744
60745         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
60746         `[' and `]' and remove uses of `changequote'.
60747         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
60748         (AC_SYS_LARGEFILE): Likewise.
60749         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
60750         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
60751         of changequote.
60752         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
60753         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
60754         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
60755         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
60756
60757 2000-02-05  Jim Meyering  <meyering@lucent.com>
60758
60759         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
60760         Remove explicit use of AC_HEADER_TIME.  It is required by
60761         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
60762         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
60763         in autoconf whereby the expansion of the latter ended up preceding
60764         the expansion of its prerequisite, AC_HEADER_TIME.
60765         Reported by Volker Borchert.
60766
60767 2000-02-03  Jim Meyering  <meyering@lucent.com>
60768
60769         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
60770
60771 2000-02-03  Jim Meyering  <meyering@lucent.com>
60772
60773         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
60774         rather than with `#if HAVE_UTMPNAME'.
60775
60776 2000-02-02  Jim Meyering  <meyering@lucent.com>
60777
60778         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
60779         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
60780         Reported by Eli Zaretskii.
60781
60782 2000-02-01  Jim Meyering  <meyering@lucent.com>
60783
60784         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
60785
60786 2000-01-31  Jim Meyering  <meyering@lucent.com>
60787
60788         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
60789         functions.  Add the time.h and sys/time.h headers along with the
60790         AC_REQUIRE'ment of AC_HEADER_TIME.
60791
60792 2000-01-31  Jim Meyering  <meyering@lucent.com>
60793
60794         * lib/nanosleep.h (nanosleep): Guard declaration with
60795         `#if ! HAVE_DECL_NANOSLEEP'.
60796         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
60797         the declaration in that vendor's sys/timers.h.
60798         Reported by Christian Krackowizer.
60799
60800         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
60801         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
60802         (ISPRINT): Likewise.
60803         Reported by Tom Tromey.
60804
60805 2000-01-30  Jim Meyering  <meyering@lucent.com>
60806
60807         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
60808
60809         * m4/prereq.m4 (utmp_includes): Define.
60810         Check for ut_user and ut_name members in both struct utmpx
60811         and struct utmp.
60812
60813 2000-01-30  Jim Meyering  <meyering@lucent.com>
60814
60815         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
60816         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
60817         header files where only utmpx.ut_user is declared.
60818
60819         * lib/readutmp.h (UT_USER): Define.
60820
60821 2000-01-29  Jim Meyering  <meyering@lucent.com>
60822
60823         * m4/lib-check.m4: New file containing library-related checks from
60824         fileutils and sh-utils (textutils had none).
60825
60826 2000-01-28  Jim Meyering  <meyering@lucent.com>
60827
60828         * m4/perl.m4: Change format of warning message to look more like that
60829         from the missing script.  Suggestion from François Pinard.
60830
60831 2000-01-25  Jim Meyering  <meyering@lucent.com>
60832
60833         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
60834         well as time.h in the compile check.
60835         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
60836         Fix typo in cross-compiling case: s/yes/no/.
60837
60838 2000-01-23  Jim Meyering  <meyering@lucent.com>
60839
60840         * m4/jm-macros.m4: Move df-related tests here from
60841         fileutils/configure.in
60842
60843         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
60844         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
60845
60846         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
60847         s/space/ac_fsusage_space/.
60848         (jm_FILE_SYSTEM_USAGE): Take two parameters.
60849
60850         * m4/ftruncate.m4: New file (derived from part of
60851         fileutils/configure.in).
60852         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
60853         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
60854
60855         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
60856         AC_SUBST these here, rather than just in sh-util/configure.in, so
60857         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
60858         all the same.
60859         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
60860         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
60861         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
60862         (AC_SUBST(POW_LIBM)): Likewise.
60863         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
60864
60865 2000-01-23  Jim Meyering  <meyering@lucent.com>
60866
60867         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
60868         obstack.c.
60869
60870 2000-01-22  Jim Meyering  <meyering@lucent.com>
60871
60872         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
60873
60874         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
60875
60876         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
60877         configure.in
60878         (AC_CHECK_HEADERS): Likewise for sh-utils.
60879         (AC_CHECK_HEADERS): Likewise for textutils.
60880         Merge the three lists of headers.
60881
60882         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
60883         from fileutils' configure.in.
60884
60885         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
60886         code. Moved tests into their own function (_jm_DECL_HEADERS) in
60887         check-decl.m4.
60888
60889         * m4/check-decl.m4: Use #if rather than #ifdef.
60890         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
60891         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
60892         (_jm_DECL_HEADERS): Define new function.
60893         (jm_CHECK_DECLARATIONS): Require it.
60894
60895 2000-01-22  Jim Meyering  <meyering@lucent.com>
60896
60897         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
60898         [! HAVE_DECL_STRTOULL]: Declare strtoull.
60899         Required for some AIX systems.  Reported by Christian Krackowizer.
60900         [TESTING] (main): New function.
60901
60902         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
60903         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
60904         letters.
60905
60906         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
60907         iswprint.
60908
60909         * lib/strverscmp.c (ISDIGIT): Define.
60910         (strverscmp): Use ISDIGIT, not isdigit.
60911
60912 2000-01-19  Jim Meyering  <meyering@lucent.com>
60913
60914         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
60915         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
60916         defines `struct timespec' in <sys/time.h>
60917
60918         * m4/c-bs-a.m4: Remove uses of changequote altogether.
60919         Thanks to Akim for explaining.
60920
60921 2000-01-17  Paul Eggert  <eggert@twinsun.com>
60922
60923         * lib/nanosleep.c (nanosleep):
60924         Don't use SA_INTERRUPT to decide whether to call sigaction, as
60925         POSIX.1 doesn't require SA_INTERRUPT and some systems
60926         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
60927         it's been part of POSIX.1 since day 1 (in 1988).
60928
60929 2000-01-17  Jim Meyering  <meyering@lucent.com>
60930
60931         * lib/interlock: Remove unused file.  Reported by François Pinard.
60932
60933 2000-01-16  Paul Eggert  <eggert@twinsun.com>
60934
60935         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
60936         alert, backslash, formfeed, and vertical tab unnecessarily in
60937         shell quoting style.
60938
60939 2000-01-16  Jim Meyering  <meyering@lucent.com>
60940
60941         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
60942         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
60943         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
60944         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
60945
60946 2000-01-16  Jim Meyering  <meyering@lucent.com>
60947
60948         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
60949         because the latter didn't work.
60950
60951 2000-01-15  Jim Meyering  <meyering@lucent.com>
60952
60953         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
60954         (AC_REPLACE_FUNCS): Add memcpy and memset.
60955         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
60956         Add strpbrk.
60957         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
60958
60959 2000-01-12  Jim Meyering  <meyering@lucent.com>
60960
60961         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
60962         (jm_PREREQ): Use it.
60963         (jm_PREREQ_READUTMP): New macro.
60964         (jm_PREREQ): Use it.
60965
60966 2000-01-11  Paul Eggert  <eggert@twinsun.com>
60967
60968         Quote multibyte characters correctly.
60969         * m4/c-bs-a.m4: New file.
60970         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
60971         (jm_PREREQ): Use it.
60972
60973 2000-01-11  Paul Eggert  <eggert@twinsun.com>
60974
60975         * m4/uintmax_t.m4: Port to autoconf 2.13.
60976
60977 2000-01-08  Jim Meyering  <meyering@ascend.com>
60978
60979         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
60980         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
60981
60982 2000-01-04  Jim Meyering  <meyering@ascend.com>
60983
60984         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
60985         jm_STRUCT_DIRENT_D_TYPE.
60986         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
60987         jm_STRUCT_DIRENT_D_INO.
60988         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
60989         jm_STRUCT_UTIMBUF.
60990         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
60991         renamings.
60992         * m4/utime.m4: Likewise.
60993
60994         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
60995         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
60996
60997 2000-01-03  Paul Eggert  <eggert@twinsun.com>
60998
60999         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
61000         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
61001
61002 2000-01-02  Jim Meyering  <meyering@ascend.com>
61003
61004         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
61005         remember if this is necessary.
61006
61007 1999-12-26  Jim Meyering  <meyering@ascend.com>
61008
61009         * m4/jm-macros.m4: Use it here.
61010         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
61011
61012 1999-12-23  Jim Meyering  <meyering@ascend.com>
61013
61014         * m4/jm-macros.m4: Check for clock_gettime (moved from
61015         fileutils/configure.in)
61016         Check for gettimeofday.
61017
61018 1999-12-20  Jim Meyering  <meyering@ascend.com>
61019
61020         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
61021         autoconf-2.14a-1999-12-20.
61022
61023 1999-12-19  Jim Meyering  <meyering@ascend.com>
61024
61025         * m4/lstat-slash.m4: New file.
61026         * m4/jm-macros.m4: Use the new macro:
61027         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61028
61029 1999-12-07  Jim Meyering  <meyering@ascend.com>
61030
61031         * m4/perl.m4: Require that File::Compare be available, too.
61032         Too many systems seem to lack it.
61033
61034         * m4/strftime.m4: Add checks for most of the cpp macros tested in
61035         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
61036
61037 1999-11-18  Paul Eggert  <eggert@twinsun.com>
61038
61039         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
61040         problem with the QNX 4.25 shell, which doesn't propagate exit
61041         status of failed commands inside shell assignments.
61042
61043 1999-11-17  Jim Meyering  <meyering@ascend.com>
61044
61045         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
61046
61047 1999-11-07  Jim Meyering  <meyering@ascend.com>
61048
61049         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
61050
61051 1999-11-06  Jim Meyering  <meyering@ascend.com>
61052
61053         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
61054         * m4/jm-macros.m4 (jm_MACROS): Use it here.
61055
61056 1999-11-05  Jim Meyering  <meyering@ascend.com>
61057
61058         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
61059         configure.in of textutils, fileutils, and sh-utils into this one
61060         (shared between those packages) file.
61061         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
61062         AC_STRUCT_ST_BLKSIZE.
61063
61064 1999-11-03  Jim Meyering  <meyering@ascend.com>
61065
61066         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
61067         of AC_CHECK_TYPE checks includes unistd.h.
61068         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
61069         Suggestion from Akim Demaille.
61070
61071 1999-10-30  Jim Meyering  <meyering@ascend.com>
61072
61073         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
61074         m4-quoted string.
61075         * m4/ls-mntd-fs.m4: Likewise.
61076         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
61077         * m4/jm-winsz1.m4: Likewise.
61078
61079         * m4/const.m4: Remove file, since the fix made it into the experimental
61080         version of autoconf.
61081         * m4/mktime.m4: Likewise.
61082
61083         * m4/check-type.m4: Remove file, now that the latest version of
61084         AC_CHECK_TYPE takes a third arg to specify additional #includes.
61085
61086         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
61087         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
61088         AC_CHECK_TYPE.
61089
61090 1999-10-04  Jim Meyering  <meyering@ascend.com>
61091
61092         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
61093
61094 1999-09-22  Paul Eggert  <eggert@twinsun.com>
61095
61096         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
61097         2.95.1 bug with HP-UX 10.20.
61098
61099 1999-09-17  Jim Meyering  <meyering@ascend.com>
61100
61101         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
61102         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
61103         due to missing strdup (against sh-utils-2.0).
61104
61105 1999-08-29  Jim Meyering  <meyering@ascend.com>
61106
61107         * m4/jm-macros.m4: Require jm_BISON.
61108         * m4/bison.m4: New file.
61109
61110 1999-08-17  Paul Eggert  <eggert@twinsun.com>
61111
61112         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
61113         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
61114
61115 1999-08-05  Jim Meyering  <meyering@ascend.com>
61116
61117         * m4/getline.m4: Rename test file from conftestdata to conftest.data
61118         to avoid conflicts with `conftest' on 8+3 filesystems.
61119         Suggestion from Eli Zaretskii.
61120
61121 1999-08-04  Jim Meyering  <meyering@ascend.com>
61122
61123         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
61124         fileutils and sh-utils (textutils's getline test was inadequate).
61125         (AM_FUNC_GETLINE): Run this test.
61126         (AC_CHECK_FUNCS): Check for getdelim.
61127         Reported by Bob Proulx.
61128
61129 1999-08-02  Jim Meyering  <meyering@ascend.com>
61130
61131         * m4/jm-macros.m4: Add a comment.
61132
61133 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61134
61135         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
61136         <inttypes.h> defines strtoumax as a macro (and not as a
61137         function).
61138
61139 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61140
61141         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
61142         that we can shift, multiply and divide unsigned long long
61143         values; Ultrix cc can't do it.
61144
61145 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61146
61147         * m4/mktime.m4: New file, which is a preview of what should appear
61148         in the next public autoconf release.
61149
61150 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61151
61152         * m4/lfs.m4: Remove this file.
61153         * m4/largefile.m4: New file.  It contains the old contents of
61154         lfs.m4, except that all names with prefix AC_LFS have been
61155         changed to use the prefix AC_SYS_LARGEFILE instead, to be
61156         compatible with future autoconf versions.  Also, some minor m4
61157         quoting problems have been fixed.
61158
61159 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61160
61161         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
61162         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
61163         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
61164         and simplify the shell code.
61165
61166 1999-08-01  Jim Meyering  <meyering@ascend.com>
61167
61168         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
61169         m4.
61170
61171 1999-07-20  Jim Meyering  <meyering@ascend.com>
61172
61173         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
61174
61175 1999-07-15  Jim Meyering  <meyering@ascend.com>
61176
61177         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
61178
61179 1999-05-22  Jim Meyering  <meyering@ascend.com>
61180
61181         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
61182
61183 1999-05-20  Jim Meyering  <meyering@ascend.com>
61184
61185         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
61186         Add a colon after each `then' in case $4 is empty.
61187
61188 1999-05-16  Jim Meyering  <meyering@ascend.com>
61189
61190         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
61191
61192 1999-05-10  Jim Meyering  <meyering@ascend.com>
61193
61194         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
61195
61196         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
61197         AC_FUNC_MKTIME.
61198
61199 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
61200
61201         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
61202
61203 1999-05-04  Paul Eggert  <eggert@twinsun.com>
61204
61205         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
61206         not CPPFLAGS, so that linking works correctly in IRIX.
61207
61208 1999-04-30  Paul Eggert  <eggert@twinsun.com>
61209
61210         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
61211
61212 1999-04-20  Paul Eggert  <eggert@twinsun.com>
61213
61214         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
61215         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
61216         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
61217         jm_AC_TYPE_UNSIGNED_LONG_LONG.
61218         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
61219
61220         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
61221
61222 1999-04-20  Jim Meyering  <meyering@ascend.com>
61223
61224         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
61225         AC_REPLACE xstroull if necessary.  From Paul Eggert.
61226         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
61227
61228 1999-04-18  Jim Meyering  <meyering@ascend.com>
61229
61230         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
61231         * m4/jm-macros.m4: Use it.
61232
61233 1999-04-06  Jim Meyering  <meyering@ascend.com>
61234
61235         * m4/strftime.m4: Remove test for %f.
61236
61237 1999-03-29  Jim Meyering  <meyering@ascend.com>
61238
61239         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
61240         superset of the AC_TYPE_* checks in the textutils, fileutils,
61241         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
61242         AC_TYPE_PID_T.
61243
61244 1999-03-28  Jim Meyering  <meyering@ascend.com>
61245
61246         * m4/jm-macros.m4: Define GNU_PACKAGE here.
61247         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
61248         replaced e.g., in the *.sh files of the sh-utils.
61249
61250 1999-03-20  Jim Meyering  <meyering@ascend.com>
61251
61252         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
61253         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
61254         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
61255
61256 1999-03-19  Jim Meyering  <meyering@ascend.com>
61257
61258         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
61259
61260 1999-03-12  Jim Meyering  <meyering@ascend.com>
61261
61262         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
61263
61264 1999-03-07  Jim Meyering  <meyering@ascend.com>
61265
61266         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
61267         declared.
61268
61269 1999-02-17  Jim Meyering  <meyering@ascend.com>
61270
61271         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
61272         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
61273
61274 1999-02-07  Jim Meyering  <meyering@ascend.com>
61275
61276         * m4/group-member.m4: New file -- extracted from sh-utils'
61277         configure.in.
61278
61279         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
61280         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
61281
61282 1999-02-06  Jim Meyering  <meyering@ascend.com>
61283
61284         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
61285         * m4/fnmatch.m4: Likewise.
61286         * m4/getgroups.m4: Likewise.
61287         * m4/lstat.m4: Likewise.
61288         * m4/malloc.m4: Likewise.
61289         * m4/putenv.m4: Likewise.
61290         * m4/realloc.m4: Likewise.
61291         * m4/regex.m4: Likewise.
61292         * m4/stat.m4: Likewise.
61293         * m4/strftime.m4: Likewise.
61294         Suggestion from Alain Magloire.
61295
61296         * m4/chown.m4: Use `.$ac_objext', not `.o'.
61297         * m4/fnmatch.m4: Likewise.
61298         * m4/getgroups.m4: Likewise.
61299         * m4/getline.m4: Likewise.
61300         * m4/lstat.m4: Likewise.
61301         * m4/malloc.m4: Likewise.
61302         * m4/memcmp.m4: Likewise.
61303         * m4/putenv.m4: Likewise.
61304         * m4/realloc.m4: Likewise.
61305         * m4/regex.m4: Likewise.
61306         * m4/stat.m4: Likewise.
61307         * m4/strftime.m4: Likewise.
61308         Suggestion from Alain Magloire.
61309
61310         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
61311         an argument.
61312
61313         * m4/regex.m4: Add a run-time Test for proper operation of
61314         re_compile_pattern.
61315
61316 1999-01-31  Jim Meyering  <meyering@ascend.com>
61317
61318         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
61319
61320 1999-01-30  Jim Meyering  <meyering@ascend.com>
61321
61322         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
61323
61324         * m4/jm-mktime.m4: Make this a wrapper around the official
61325         AM_FUNC_MKTIME rather than my private copy, now that the official one
61326         is up to date.
61327         * m4/mktime.m4: Remove file.
61328
61329         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
61330         * m4/uptime.m4: Likewise.
61331         * m4/uintmax_t.m4: Likewise.
61332
61333 1999-01-28  Jim Meyering  <meyering@ascend.com>
61334
61335         * m4/jm-macros.m4: Use jm_AFS.
61336         * m4/afs.m4: New file (from fileutils' configure.in).
61337
61338         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
61339         * m4/chown.m4: Likewise.
61340         * m4/d-ino.m4: Likewise.
61341         * m4/d-type.m4: Likewise.
61342         * m4/fnmatch.m4: Likewise.
61343         * m4/getgroups.m4: Likewise.
61344         * m4/gettext.m4: Likewise.
61345         * m4/jm-mktime.m4: Likewise.
61346         * m4/jm-winsz2.m4: Likewise.
61347         * m4/lcmessage.m4: Likewise.
61348         * m4/ls-mntd-fs.m4: Likewise.
61349         * m4/malloc.m4: Likewise.
61350         * m4/memcmp.m4: Likewise.
61351         * m4/putenv.m4: Likewise.
61352         * m4/realloc.m4: Likewise.
61353         * m4/st_mtim.m4: Likewise.
61354         * m4/strftime.m4: Likewise.
61355
61356 1999-01-16  Jim Meyering  <meyering@ascend.com>
61357
61358         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
61359         (ARGMATCH_DIE_DECL): Define.
61360
61361 1999-01-12  Jim Meyering  <meyering@ascend.com>
61362
61363         * m4/Makefile.am.in: Rewrite to avoid using fmt.
61364         Reported by Lars Hecking.
61365
61366 1999-01-10  Jim Meyering  <meyering@ascend.com>
61367
61368         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
61369         gross kludge.
61370         * m4/inttypes_h.m4: Likewise.
61371         * m4/lstat.m4: Likewise.
61372         * m4/malloc.m4: Likewise.
61373         * m4/readdir.m4: Likewise.
61374         * m4/realloc.m4: Likewise.
61375         * m4/st_dm_mode.m4: Likewise.
61376         * m4/stat.m4: Likewise.
61377         * m4/utimbuf.m4: Likewise.
61378         * m4/utimes.m4: Likewise.
61379
61380         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
61381         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
61382         comments in config.h.in are meaningful.
61383
61384         * m4/jm-macros.m4: Require autoconf-2.13 here.
61385
61386         * m4/regex.m4: By default, don't use the included regex.c on systems
61387         with glibc 2.  Suggestion from Uli Drepper.
61388
61389 1999-01-02  Jim Meyering  <meyering@ascend.com>
61390
61391         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
61392
61393 1998-12-18  Jim Meyering  <meyering@ascend.com>
61394
61395         * m4/Makefile.am.in (Makefile.am): Simplify rule.
61396         Based on a suggestion from Lars Hecking.
61397
61398 1998-11-16  Paul Eggert  <eggert@twinsun.com>
61399
61400         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
61401
61402 1998-11-16  Jim Meyering  <meyering@ascend.com>
61403
61404         * m4/lfs.m4: Double-quote the `uname...` expression.
61405
61406 1998-11-14  Jim Meyering  <meyering@ascend.com>
61407
61408         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
61409         * m4/stat.m4: Likewise.
61410
61411 1998-11-03  Jim Meyering  <meyering@ascend.com>
61412
61413         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
61414         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
61415
61416 1998-10-18  Jim Meyering  <meyering@ascend.com>
61417
61418         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
61419
61420 1998-10-17  Jim Meyering  <meyering@ascend.com>
61421
61422         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
61423         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
61424         calls for those previously hard-coded headers.  Instead, take a new
61425         parameter.
61426         (jm_CHECK_DECLARATIONS): Reflect interface change.
61427         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
61428         (jm_CHECK_DECL_LOCALTIME_R): New macro.
61429
61430         * m4/mktime.m4: Test for spring-forward gap before long-running test.
61431
61432 1998-10-14  Jim Meyering  <meyering@ascend.com>
61433
61434         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
61435         instead of "TZ=America/Vancouver".  From Paul Eggert.
61436
61437 1998-10-11  Jim Meyering  <meyering@ascend.com>
61438
61439         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
61440         This adds a test for a recently added compatibility fix for mktime.c.
61441         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
61442
61443 1998-09-27  Jim Meyering  <meyering@ascend.com>
61444
61445         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
61446
61447         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
61448         ../configure.in, including a change from Gordon Matzigkeit to allow
61449         cross-compiling for the Hurd.
61450
61451         * m4/glibc.m4: New file/macro to test for the GNU C Library
61452         versions 1 and 2.  From Gordon Matzigkeit.
61453         Indent.
61454
61455 1998-09-21  Jim Meyering  <meyering@ascend.com>
61456
61457         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
61458
61459 1998-08-18  Paul Eggert  <eggert@twinsun.com>
61460
61461         Port nanosecond-resolution times to UnixWare 2.1.2 and
61462         pedantic Solaris 2.6.
61463
61464         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
61465         AC_STRUCT_ST_MTIM.
61466         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
61467         Generate name of ns member, instead of just 1 or undef.
61468         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
61469
61470 1998-08-15  Jim Meyering  <meyering@ascend.com>
61471
61472         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
61473         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
61474         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
61475         instead of jm_TYPE_SSIZE_T.
61476
61477 1998-08-12  Jim Meyering  <meyering@ascend.com>
61478
61479         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
61480
61481 1998-08-02  Jim Meyering  <meyering@ascend.com>
61482
61483         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
61484         in acconfig.h manually.
61485
61486 1998-07-31  Paul Eggert  <eggert@twinsun.com>
61487
61488         * m4/st_mtim.m4: New file.
61489
61490 1998-07-28  Jim Meyering  <meyering@ascend.com>
61491
61492         * m4/utimes.m4: Undef stat.
61493
61494 1998-07-25  Jim Meyering  <meyering@ascend.com>
61495
61496         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
61497         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
61498
61499 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
61500
61501         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
61502         uid and gid actually remain unchanged.
61503
61504 1998-07-07  Jim Meyering  <meyering@ascend.com>
61505
61506         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
61507
61508 1998-07-04  Jim Meyering  <meyering@ascend.com>
61509
61510         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
61511         to prove that this macro can be used in packages without regex.c.
61512
61513 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
61514
61515         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
61516         is to be used.
61517
61518 1998-07-03  Jim Meyering  <meyering@ascend.com>
61519
61520         * m4/gettext.m4: Add -lintl if it's found to be necessary.
61521
61522         * m4/gettext.m4: New file -- from gettext-0.10.35.
61523         * m4/lcmessage.m4: Likewise.
61524         * m4/progtest.m4: Likewise.
61525
61526         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
61527         * m4/jm-macros.m4: Require the new macro.
61528
61529 1998-06-29  Jim Meyering  <meyering@ascend.com>
61530
61531         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
61532         for the definition of NGROUPS (used in a system header included
61533         by sys/mount.h).
61534
61535 1998-06-28  Jim Meyering  <meyering@ascend.com>
61536
61537         * m4/ls-mntd-fs.m4: New file.
61538         * m4/fstypename.m4: New file.
61539
61540         * m4/jm-macros.m4: Require the new macro.
61541         * m4/jm-glibc-io.m4: New file.
61542
61543 1998-05-19  Jim Meyering  <meyering@ascend.com>
61544
61545         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
61546         * m4/lchown.m4: New file.
61547
61548         * m4/Makefile.am.in: New file.
61549         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
61550
61551 1998-05-14  Jim Meyering  <meyering@ascend.com>
61552
61553         * m4/Makefile.am (EXTRA_DIST): Add them.
61554         * m4/jm-macros.m4: New file.
61555         * m4/utimbuf.m4: New file.
61556
61557 1998-05-12  Jim Meyering  <meyering@ascend.com>
61558
61559         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
61560
61561 1998-05-11  Jim Meyering  <meyering@ascend.com>
61562
61563         * m4/isc-posix.m4: New file.
61564
61565 1998-05-10  Jim Meyering  <meyering@ascend.com>
61566
61567         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
61568
61569 1998-05-09  Jim Meyering  <meyering@ascend.com>
61570
61571         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
61572         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
61573         with automake.
61574
61575         * m4/ssize_t.m4: New file.
61576         * m4/mktime.m4: Remove file -- the new automake has this now.
61577
61578 1998-04-26  Jim Meyering  <meyering@ascend.com>
61579
61580         * m4/assert.m4: New file.
61581         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
61582
61583 1998-04-05  Jim Meyering  <meyering@ascend.com>
61584
61585         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
61586         (jm_PREREQ): Use it here.
61587
61588 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
61589
61590         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
61591         in acconfig.h.
61592
61593 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
61594
61595         * m4/prereq.m4: New file.
61596         * m4/error.m4: New file.
61597         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
61598
61599 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
61600
61601         * m4/getline.m4: Don't set am_cv_func_working_getline before the
61602         cache-check for the same variable -- that defeated the purpose of
61603         the test; the test program was never run.  This was a problem only
61604         on systems with losing getline functions -- HP-UX 10.20 is one.
61605         Reported by Bjorn Helgaas.
61606
61607 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
61608
61609         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
61610
61611 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
61612
61613         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
61614
61615         * m4/const.m4: New file.  Use an initializer in this declaration
61616         typedef int charset[2]; const charset x;
61617         Reported by Bob Glickstein.
61618
61619 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
61620
61621         * m4/chown.m4: Fix reversed types on -1 args to chown.
61622         From Kaveh Ghazi.
61623
61624 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
61625
61626         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
61627         Add lseek and memchr.
61628
61629         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
61630         T.E.Dickey <dickey@clark.net> said that some older preprocessors
61631         have a 20-character limit on names.
61632
61633 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
61634
61635         * m4/inttypes_h.m4: New file.
61636         * m4/uintmax_t.m4: New file.
61637         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
61638
61639
61640         -----
61641
61642         Local Variables:
61643         coding: utf-8
61644         End:
61645
61646         Copyright (C) 1997-2010 Free Software Foundation, Inc.
61647
61648         Copying and distribution of this file, with or without
61649         modification, are permitted provided the copyright notice
61650         and this notice are preserved.